Skip to content

Instantly share code, notes, and snippets.

View cdl's full-sized avatar
💭
I may be slow to respond.

Colby Ludwig cdl

💭
I may be slow to respond.
View GitHub Profile
@cdl
cdl / .vimrc
Created December 7, 2015 20:21
"""""""""""""""""""""""""""""
" Files, backups, undo, etc.
"""""""""""""""""""""""""""""
set nocompatible
set encoding=utf8
set ffs=unix,dos,mac
set nobackup
set nowb
set noswapfile
@cdl
cdl / plugin.js
Last active January 30, 2016 02:41
import Nimble from 'nimble';
export default Nimble.Plugin.extend({
/**
* request: Returns a Promise that resolves with a search response, or rejects with an error.
* @attr term – The search term given.
**/
request(term, function() {
// ... return the promise
// march 1 at 2:34pm
var date = moment('1456868040000', 'x');
// get start of day
var start = date.startOf('day');
start.format('LT LL'); // => 12:00 AM March 1, 2016
// You'd think this'd still be 2:34PM but nope.
@cdl
cdl / main.js
Last active March 18, 2016 04:07
(function(){
console.log("Beep boop.");
})();
# ????? what the fuck?????? this is possible????
squares = [value ** 2 for value in range(1, 11)]
print(squares)
@cdl
cdl / Vagrantfile
Last active August 21, 2016 21:39
Ruby & PostgreSQL Vagrantfile. Constants at the top are meant to be configured on a per-project basis, with defaults that are explained in comments above each of them.
# Ruby + PostgreSQL Vagrantfile
# Written by Colby Ludwig, @cdl
# Vagrantfile for setting up a base Ruby + PostgreSQL environment on
# Ubuntu 14.04 with the latest deps. Sets up the following:
# - rbenv for installing Ruby with the default `vagrant` user
# - shares the current directory for the project to ~/{dir-name}
# - sets up Postgres with a given database name and password (user is `postgres`)
# - forwards given ports
#
pyenv install 2.7.13
pyenv shell 2.7.13
pip install twisted
brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt
brew install pyside
mkdir -p /Users/colby/.local/lib/python2.7/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/colby/.local/lib/python2.7/site-packages/homebrew.pth
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0375_EXS_GuitarsVintageStrat.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0597_LTPChordTrainer.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0509_EXS_StringsEnsemble.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0484_EXS_OrchWoodwindClarinetSolo.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0554_AppleLoopsDiscoFunk2.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0375_EXS_GuitarsVintageStrat.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0597_LTPChordTrainer.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0509_EXS_StringsEnsemble.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0484_EXS_OrchWoodwindClarinetSolo.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2016/MAContent10_AssetPack_0554_AppleLoopsDiscoFunk2.pkg
{
"dependencies": {
"com.unity.collab-proxy": "1.2.16",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.vscode": "1.2.0",
"com.unity.test-framework": "1.1.13",
"com.unity.textmeshpro": "2.0.1",
"com.unity.timeline": "1.2.14",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",