Skip to content

Instantly share code, notes, and snippets.

View Export Selected Layers To Files.jsx
#target photoshop
var doc = app.activeDocument;
function cTID(s) { return app.charIDToTypeID(s); };
function sTID(s) { return app.stringIDToTypeID(s); };
View LineGraph.cs
using System.Collections.Generic;
using UnityEngine;
public class LineGraph : MonoBehaviour {
class Point {
public int id;
public Vector3 pos;
readonly List<List<Point>> links = new List<List<Point>>();
View vscode-settings.json
"workbench.colorTheme": "Monokai",
"git.autofetch": true,
"window.zoomLevel": 1,
"editor.tokenColorCustomizations": {
"[Monokai]": {
"comments": "#74705E",
"strings": "#E6DB73",
"numbers": "#AE81FF",
"functions": "#FD971E",
View Test.cs
using UnityEngine;
public class Test : MonoBehaviour {
public TpAtlas atlas;
public TpSprite sprite;
void OnEnable() {
var text = Resources.Load<TextAsset>("ui").text;
atlas = JsonUtility.FromJson<TpAtlas>(text);
var size = atlas.size;
Kailang / Monokaii.json
Created Apr 11, 2018
My single favorite color scheme for all time.
View Monokaii.json
"description":"A smooth, dusky scheme.",
"originator":"Xamarin Inc. (",
{"name": "Background(Read Only)", "color":"#252620" },
{"name": "Search result background", "color":"#005F60" },
{"name": "Search result background (highlighted)", "color":"#007F80" },
{"name": "Fold Square", "color":"#74705E", "secondcolor":"#272821" },
View lib.hs
module Lib where
import Data.HashMap.Strict as H (HashMap, empty, fromList, insert, lookup, union)
--- Data Types
--- ----------
--- ### Environments and Results
type Env = H.HashMap String Val
View TestK.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
public class TestK : MonoBehaviour {
public Transform headTrans, lHandTrans, rHandTrans;
void OnDrawGizmosSelected() {
if (OVRManager.tracker == null) return;
View corpController.js
var debug = require('debug')('gskse:corpController');
var Friend = getModel('friend');
var Corp = getModel('corp');
var News = getModel('news');
var Order = getModel('order');
var Stock = getModel('stock');
var Report = getModel('report');
var sharp = require('sharp');
View matchOrder.js
var matchOrder = function(corp) {
var self = this;
self.corp = corp;
debug('corp [%s] [%s]', self.corp.symbol,;
return Promise.all([
corp: self.corp._id,
action: 'buy',
type: 'limit',
View trade.js'/trade', function(req, res, next) {
req.body.quantity = parseInt(req.body.quantity);
var self = this;
self.corp = res.locals.corp,
self.friend = res.locals.friend;
friend: self.friend._id,