Skip to content

Instantly share code, notes, and snippets.

View nucleardreamer's full-sized avatar
🚀
obviously jammin'

Flynn Joffray nucleardreamer

🚀
obviously jammin'
View GitHub Profile
@nucleardreamer
nucleardreamer / iosbuild.sh
Created December 21, 2015 21:10 — forked from reqshark/iosbuild.sh
libmill iOS cross-compile for 32 bit (armv7) and 64 bit (arm64) iOS, and i386 and x86_64 simulators
# Copyright (c) 2015 Bent Cardan
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom
# the Software is furnished to do so, subject to the following conditions:
// this is just to install git
sudo apt-get install git
// get in there
cd /to/your/project/folder
// this sets up the git folder, which is located in that directory in .git, it keeps track of all your changes and settings
git init
// this adds all changed files to a changeset. nothing happens here except for that you are saying you want to track these changes. the period after add means everything in that directory
var _ = require('underscore'),
util = require('util');
// intercept stdout, passes thru callback
// also pass console.error thru stdout so it goes to callback too
// (stdout.write and stderr.write are both refs to the same stream.write function)
// returns an unhook() function, call when done intercepting
module.exports = function interceptStdout(callback) {
var old_stdout_write = process.stdout.write,
old_console_error = console.error;

Keybase proof

I hereby claim:

  • I am nucleardreamer on github.
  • I am nucleardremaer (https://keybase.io/nucleardremaer) on keybase.
  • I have a public key whose fingerprint is 5237 C963 C340 D9A7 8223 31E1 CC03 8B5E D082 5EA7

To claim this, I am signing this object:

var path = require('path'),
gulp = require('gulp'),
stylus = require('gulp-stylus'),
nib = require('nib'),
mincss = require('gulp-minify-css'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
watch = require('gulp-watch'),
clean = require('gulp-clean'),
nodemon = require('gulp-nodemon'),
<?php
// Group detection by IP address
//
// [Region Abbreviation, Military/Government]
// Force Varnish to NEVER Cache this page
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
// JSON Headers
(function(D) {
/**
* Constructor
*/
var VariableHeightLayoutManager = function(){}
// Shorthand prototype storage (might trim down code for many functions)
var fn = VariableHeightLayoutManager.prototype;
• Install Xcode (https://developer.apple.com/xcode/)
• Install Command line tools from Xcode
Xcode => Preferences => Downloads => Components => Command Line Tools
• Install node.js
Download and install Node.js v 0.10.12 (http://nodejs.org/dist/v0.10.12/node-v0.10.12.pkg)
INSERT INTO movies ('id','mediatype','description','title','date','type','licenseurl','downloads','week','month','num_reviews','avg_rating','identifier','subject','format','collection','oai_updatedate') VALUES ('','movies','You can find more information regarding this film on <a href="http://www.imdb.com/title/tt0029532/" rel="nofollow">its IMDb page</a>.','Secret Valley','1937-01-01T00:00:00Z','MovingImage','http://creativecommons.org/licenses/publicdomain/','10264','1','1','3','2','secret_valley','["western"]','["512Kb MPEG4","Animated GIF","Archive BitTorrent","MPEG2","Metadata","Ogg Video","Thumbnail"]','["feature_films","moviesandfilms"]','["2004-06-18T21:40:30Z","2004-09-20T21:21:42Z","2012-07-31T06:24:31Z","2010-02-06T15:03:17Z"]')
@nucleardreamer
nucleardreamer / gist:6704080
Last active December 23, 2015 22:29
ipad media blocks
/* iPad in portrait & landscape */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) { /* STYLES GO HERE */}
/* iPad in landscape */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) { /* STYLES GO HERE */}