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
function easeExpo(beginValue, endValue, duration, offset) { | |
t = time - offset; | |
if (t < 0) return beginValue; | |
if (t > duration) return endValue; | |
if (beginValue.constructor == Array) { | |
x = 0; | |
y = 0; | |
z = 0; | |
if (beginValue.length == 2) { | |
x = easeExpo(beginValue[0], endValue[0], duration, offset); |
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 bash | |
DEFAULT_FAN=65 | |
DEFAULT_MEM=1500 | |
DEFAULT_GPU=150 | |
DEFAULT_POW=200 | |
echo "Setting up ${GPU_COUNT} GPU(s)..." | |
GPU_COUNT="$(nvidia-smi -L | wc -l)" |
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
/* eslint-disable */ | |
// REQUIRE STATEMENTS | |
const fs = require('fs'), | |
path = require('path'), | |
gulp = require('gulp'), | |
pixrem = require( 'gulp-pixrem' ), | |
log = require('fancy-log'), | |
newer = require('gulp-newer'), | |
runSequence = require('run-sequence'), | |
sass = require('gulp-sass'), |
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 python | |
import urllib2 | |
import json | |
import argparse | |
SRC_META = { | |
'whattomine': { | |
'url': "https://whattomine.com/coins.json", | |
'sort_key': 'profitability', |
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
''' | |
This fixes a RRM bug (v1.4.7) where saved RRM setups do not preserve a | |
module's 'pinned' status. | |
''' | |
import maya.cmds as cmds | |
import maya.mel | |
def RRM_fixPinBug(objs): | |
for obj in objs: | |
trans = cmds.xform(obj,q=True, r=True, translation=True) | |
maya.mel.eval("RRM_PinProxies(1, 0);") |
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/python | |
import os, sys, string, re, MacOS | |
from string import capwords | |
import fontforge as ff | |
from optparse import OptionParser | |
TEST = False | |
SKIP_FILES = ['.DS_Store', '.AppleDB', 'convert_font.log', 'Icon?'] | |
ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
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/python | |
import os, sys, string, re, MacOS | |
from string import capwords | |
import fontforge as ff | |
from optparse import OptionParser | |
SKIP_FILES = ['.DS_Store', '.AppleDB', 'convert_font.log', 'Icon?'] | |
class DirectoryWalker: |
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
#!/bin/env bash | |
ARG01="moderately $1" | |
ARG02="seriously $2" | |
sanity_check() { | |
local you=$1 | |
local me=$2 | |
echo "You are $you" | |
echo "I am $me" |
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 bash | |
################# | |
# Wacom buttons : | |
################# | |
# tablet identificators : | |
# xinput --list | grep '[w|W]acom' | |
DEVICE="Wacom Intuos4 4x6 pad" | |
STYLUS="Wacom Intuos4 4x6 stylus" |
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
@import 'variables'; | |
$divider-height: 100%; | |
@mixin make-column-dividers($breakpoints: $grid-breakpoints) { | |
// Common properties for all breakpoints | |
%col-divider { | |
position: absolute; | |
content: " "; | |
top: (100% - $divider-height)/2; |