Skip to content

Instantly share code, notes, and snippets.

View newswim's full-sized avatar
🦬
Hi

Dan Minshew newswim

🦬
Hi
View GitHub Profile
<!-- Grid Wall Init -->
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/freewall.js"></script>
<script>
$(function() {
$(".filter-label").click(function() {
$(".filter-label").removeClass("active");
var filter = $(this).addClass('active').data('filter');
if (filter) {
@newswim
newswim / gist:532610bc9706ad1ddae9
Last active August 29, 2015 14:26
Handling those pesky .DS_Store files

Reveal hidden files:

defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder

Prevent DS files from being created:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true
@newswim
newswim / zoningAmendments.md
Last active August 29, 2015 14:26
Gas Well Development __ Denton, Tx __ Zoning Amendments to Section 35.5

08/04/15 version

Zoning Amendments to Section 35.5

Amend Subchapter 35.5, Zoning Districts and Limitations, as follows:

A. Amend Section 35.5.1, Rural Districts, subsection 2, Permitted Uses, by substituting the term “Gas Well Development,” as defined in Section 35.22.1, for the industrial land use category “Gas Wells”. B. Amend Section 35.5.2, Neighborhood/Residential, subsection 2, Permitted Uses, by

parallels@ubuntu:~/Documents/savi-reboot/packages/npm-container$ sudo npm install reboot
/
> reboot@0.0.1 install /home/parallels/Documents/savi-reboot/packages/npm-container/node_modules/reboot
> node-gyp rebuild
make: Entering directory `/home/parallels/Documents/savi-reboot/packages/npm-container/node_modules/reboot/build'
CXX(target) Release/obj.target/reboot_bindings/src/reboot.o
make: g++: Command not found
make: *** [Release/obj.target/reboot_bindings/src/reboot.o] Error 127
make: Leaving directory `/home/parallels/Documents/savi-reboot/packages/npm-container/node_modules/reboot/build'
@newswim
newswim / velocity output
Created September 8, 2015 20:22
Velocity output
* VELOCITY_DEBUG=1 meteor
[[[[[ ~/Documents/dev/savi/meteor ]]]]]
=> Started proxy.
=> Started MongoDB.
W20150908-15:20:34.480(-5)? (STDERR) { [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
W20150908-15:20:34.481(-5)? (STDERR) { [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
W20150908-15:20:34.482(-5)? (STDERR) { [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
I20150908-15:20:34.890(-5)? [velocity] adding velocity core
return controllableSourceTypes.indexOf(this.type) > -1;
}
/*
Current Selected Outputs: ItemSelection.getSelection()
var televisions = Devices.find({_id:{$in:ItemSelection.getSelection()}, type:Drivers.enums.types.Television},{fields:{name:1,rank:1})
var speakers = Devices.find({_id:{$in:ItemSelection.getSelection()}, type:Drivers.enums.types.Speaker},{fields:{name:1,rank:1})
var tvSourceIds = _.intersection(_.pluck(televisions,'sources'))
var speakerSourceIds = _.intersection(_.pluck(speakers,'sources'))
@newswim
newswim / test_examples.js
Created September 12, 2015 19:37
The insanity of Cucumber
module.exports = function () {
this.Given(/^I have created a landing page with this markdown$/, function (markdown, callback) {
this.server.call(
‘page/create’, {
path: ‘/‘,
markdown: markdown
}).then(function() {
setTimeout(callback, 3000);
@newswim
newswim / output.md
Created September 17, 2015 16:20
Installing Perfschool (a workshopper project)

Daniels-MacBook-Pro:basic_filter dm$ npm install -g perfschool \

contextify@0.1.14 install /usr/local/lib/node_modules/perfschool/node_modules/jsdom/node_modules/contextify node-gyp rebuild

CXX(target) Release/obj.target/contextify/src/contextify.o SOLINK_MODULE(target) Release/contextify.node

phantomjs@1.9.18 install /usr/local/lib/node_modules/perfschool/node_modules/webshot/node_modules/phantomjs node install.js

@newswim
newswim / console.sh
Created October 16, 2015 19:03
Console dump after installing ShopNx following install of app dependencies
Last login: Fri Oct 16 13:21:25 on ttys000
Daniels-MacBook-Pro:~ dm$ cd Documents/test_cases/shopnx/
Daniels-MacBook-Pro:shopnx dm$ npm install
npm WARN deprecated jsonwebtoken@4.2.2: Critical vulnerability fix in v5.0.0. See https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/
npm WARN deprecated jws@2.0.0: Security update: Versions below 3.0.0 are deprecated.
npm WARN deprecated find-file@0.1.4: Use the globby package instead
npm WARN deprecated CSSselect@0.7.0: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
> phantomjs@1.9.18 install /Users/dm/Documents/test_cases/shopnx/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
@newswim
newswim / npm_install_dump.sh
Created October 17, 2015 20:03
Dump following npm install || ShopNx
Daniels-MacBook-Pro:shopnx dm$ npm install
npm WARN deprecated jsonwebtoken@4.2.2: Critical vulnerability fix in v5.0.0. See https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/
npm WARN deprecated jws@2.0.0: Security update: Versions below 3.0.0 are deprecated.
npm WARN deprecated find-file@0.1.4: Use the globby package instead
npm WARN deprecated CSSselect@0.7.0: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
> utf-8-validate@1.2.1 install /Users/dm/Documents/test_cases/111shopnx/shopnx/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild