This file contains 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 main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"net/http" | |
"os" | |
"os/user" | |
"path/filepath" |
This file contains 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
autoload -U add-zsh-hook | |
load-devrc() { | |
if [[ -f .devrc && -r .devrc ]]; then | |
source .devrc | |
else | |
if typeset -f devrc-unset > /dev/null; then | |
devrc-unset | |
unset -f devrc-unset | |
fi | |
fi |
This file contains 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
sudo softwareupdate --fetch-full-installer | |
/Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall \ | |
--eraseinstall --agreetolicense --nointeraction |
This file contains 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 main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type MyInterface interface { | |
Foo() string | |
} |
This file contains 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
#!/usr/bin/env osascript -l JavaScript | |
ObjC.import("Cocoa"); | |
function run(argv) { | |
var app = $.NSApplication.sharedApplication; | |
var statusBarItem = $.NSStatusBar.systemStatusBar.statusItemWithLength($.NSVariableStatusItemLength); | |
var track = Application('Spotify').currentTrack | |
ObjC.registerSubclass({ | |
name: "ProgramDelegate", |
This file contains 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
#!/usr/bin/env node | |
// Usage: | |
// Login manually, saving your authenticated session in "data": | |
// $ ./fbpost --login | |
// | |
// Now you can post whatever you want via argument: | |
// $ ./fbpost "Hello world, this is a post!" | |
// | |
(async() => { | |
const puppeteer = require('puppeteer'); |
This file contains 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
var Generator = require("./tsgen") | |
ts = new Generator() | |
ts.decl("import", "electron", "from", ts.str("electron")) | |
ts.decl("import", "qrpc", "from", ts.str("qrpc")) | |
ts.commentBlock("Here is a function") | |
ts.func("register", [ts.var("api", "qrpc.API")], null, (ts) => { | |
ts.call("api.handle", ts.str("echo"), ts.lambda(ts.var("r", "qrpc.Responder"), ts.var("c", "qrpc.Call"), null, (ts) => { | |
ts.call("r.return", ts.inline(ts.call("c.decode"))) | |
})) |
This file contains 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
Process: Descript [12470] | |
Path: /Applications/Descript.app/Contents/MacOS/Descript | |
Identifier: com.descript.Descript | |
Version: 1.4.2 (1806260931) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Descript [12470] | |
User ID: 501 | |
Date/Time: 2018-06-28 19:42:29.774 -0500 |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
[ExecuteInEditMode] | |
public class FollowSceneCamera : MonoBehaviour { | |
private Vector3 lastPosition; | |
private Quaternion lastRotation; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ElevatorDoors : MonoBehaviour { | |
public GameObject doorLeft; | |
public GameObject doorRight; | |
public float speed = 20f; | |
public GameObject elevator; |