Skip to content

Instantly share code, notes, and snippets.

meow

rw glued

meow
Block or report user

Report or block glued

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@glued
glued / deno.ts
Last active May 13, 2020
denoland
View deno.ts
console.log("Welcome to Denos5 🦕");
View deno.ts
console.log("Welcome to Deno 🦕");
@glued
glued / theme.js
Last active Oct 8, 2019
Check for OS Dark Theme in the browser
View theme.js
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
View deep-copy-decorator.ts
function DeepCopy() {
return function(target: any, key: string) {
let value = target[key];
return Object.defineProperty(target, key, {
configurable: true,
get: () => value,
set: val => {
value = JSON.parse(JSON.stringify(val));
},
});
View .babelrc
{
"presets": ["es2015", "stage-0"]
}
@glued
glued / ThreejsExportScript.mel
Last active Aug 29, 2015
Maya exporter mel script modified because it doesnt save settings
View ThreejsExportScript.mel
// ThreeJsExportScript.mel
// Author: Sean Griffin
// Email: sean@thoughtbot.com
global proc int ThreeJsExportScript(string $parent, string $action, string $settings, string $callback)
{
if ($action == "post")
{
setParent $parent;
columnLayout -adj true;
@glued
glued / Threejs_maya
Last active Aug 29, 2015
Modified THREEJS Maya plugin
View Threejs_maya
__author__ = 'Sean Griffin'
__version__ = '1.0.0'
__email__ = 'sean@thoughtbot.com'
import sys
import os.path
import json
import shutil
@glued
glued / raf.js
Created Jul 4, 2015
ES2015 requestAnimationFrame polyfill
View raf.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
/*
to use just create a file raf.js
import './utils/raf';
*/
@glued
glued / gist:f7b2def1c4edd48dce44
Created Feb 16, 2015
Intel Galileo Notes ( outdated )
View gist:f7b2def1c4edd48dce44

Intel Galileo Notes 12.13.2013

###1. Load distro onto MicroSD card The default linux distro from Intel is missing GCC / make which is required by many NPM modules but... A guy from intel has a [Nice Tutorial][1] which adds the dev tools to the Yocto distro or [download his custom image][2]

###2. SSH into your galileo ssh root@someaddress

You can’t perform that action at this time.