This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:00:00,500 --> 00:00:02,000 | |
Connect | |
2 | |
00:00:02,000 --> 00:00:04,000 | |
Networking | |
3 | |
00:00:04,000 --> 00:00:05,100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package my.demo | |
import kotlin.text.* | |
fun main(args: Array<String>) { | |
for (arg in args) { | |
println(arg) | |
} | |
data class User(val name: String, val age: Int) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// chat | |
// | |
// Created by Paul Sweeney Jr on 8/01/21. | |
// | |
import SwiftUI | |
class BlobModel: ObservableObject { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>ASCII to Binary</title> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | |
<style> | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
func loadWebsite(url: URL?) { | |
let group = DispatchGroup() | |
group.enter() | |
let task = URLSession.shared.dataTask(with: url!) { data, response, error in | |
if let error = error { | |
print(error) | |
group.leave() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; helloworld.lisp | |
;;; by Paul Sweeney Jr | |
;;; | |
;; My first Hello World here! | |
;; | |
(format t "Hello, world! ~%") ; this is inline comment | |
;; functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let _ = require('lodash'); | |
let arr = [1, 5, 10]; | |
let arr2 = [1, 4, 10]; | |
let result = _.difference(arr, arr2); // 5 | |
let result2 = _.difference(arr2, arr); // 4 | |
let diffTogether = [...result, ...result2]; // [ 5, 4 ] | |
let newSet = new Set([...arr, ...arr2]); // Set(1, 4, 5, 10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before fixing TypeScript errors | |
public static registerCommand(context: vscode.ExtensionContext): vscode.Disposable { | |
const commands = vscode.commands.registerCommand(this.viewType, async () => { | |
// file chooser | |
let uri: vscode.Uri | undefined = await vscode.window.showOpenDialog() | |
this.createOrShow(uri[0]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convert(line) { | |
let timeMatch = /\1(\d\d):\2(\d\d),\3(\d+)\4([sm])/ | |
if(timeMatch.test(line)) { | |
let arr = timeMatch.exec(line) | |
let min = Number(arr[1]) | |
let sec = Number(arr[2]) | |
let duration = Number(arr[3]) | |
let time = arr[4] | |
let addMin = sec + duration > 59 ? 1 : 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timeCodeRegEx = /\1(\d\d):\2(\d\d),\3(\d+)\4([sm])/ | |
const isTimeCode = (str) => timeCodeRegEx.test(str) | |
const convertTime = (str) => { | |
let arr = timeCodeRegEx.exec(str) | |
return { | |
min: Number(arr[1]), | |
sec: Number(arr[2]), |
NewerOlder