Skip to content

Instantly share code, notes, and snippets.

View brianleroux's full-sized avatar
💚
You are now aware that you are breathing

Brian LeRoux brianleroux

💚
You are now aware that you are breathing
View GitHub Profile
@brianleroux
brianleroux / harp-mod-request.md
Created October 12, 2013 20:53
fantasizing about some future integrations. - bringing harp some awareness of smart directories to build concat/min into convention - browserify for harp would be sweet - topcoatify does not yet exist but increasingly we something like it should exist - next www can just 'disappear' as that it becomes a build artifact
|- node_modules/
|- src/
|   |
|   |- index.js/ <----------- uses browserify so anything in node_modules is game for require()
|   |  |- index.js
|   |  '- foo.coffee
|   |
|   |- index.css/ <---------- uses topcoatify so anything in node_modules is game. how import/etc works needs consideration

| | |- index.css

@brianleroux
brianleroux / gruntfile.js
Created August 27, 2013 17:35
calling `npm test` from `grunt test`
var shell = require('shelljs')
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
})
grunt.registerTask('default', 'My "default" task description.', function() {
grunt.log.writeln('Currently running the "default" task.');
@brianleroux
brianleroux / index.js
Created August 7, 2013 00:47
requirebin sketch
// require something
var c = require('caesar-cipher')
var d = c.encrypt(13, 'Hello world')
alert(d)
alert(c.decrypt(13, d))

opening remarks junk

  • bathrooms are downstairs
  • use the hasth tag #pgday
  • thank you to all our sponsors: google, micrsoft, intel, mozilla, blackberry, adobe,
  • thank you to icenium and telerik wifi is phonegap/phonegap
  • power at all tables
  • if shit fucks up it is likely joe mccann's fault
  • it wouldn't be a phonegap day without beer so we're tapping the kegs at lunch
var exec = function exec (action, args, win, fail) { cordova.exec(win, fail, action, args) }

TODO

  • remove build directory
  • create topcoat-design-assets repo for psd and related design assets
  • make sure docs folder only adds but does not clobber if we add contributers.txt to it
  • remove release folder
  • generated grunt task should clobber/produce css/font/img dir into root
  • src dir should be removed and cleaned after generated build (?)
  • tasks need to move to npm modules
  • leave test as is for now
@brianleroux
brianleroux / network.js
Created November 22, 2012 12:06
network connection api example
var states = {}
states[navigator.connection.UNKNOWN] = 'Unknown connection'
states[navigator.connection.ETHERNET] = 'Ethernet connection'
states[navigator.connection.WIFI] = 'WiFi connection'
states[navigator.connection.CELL_2G] = 'Cell 2G connection'
states[navigator.connection.CELL_3G] = 'Cell 3G connection'
states[navigator.connection.CELL_4G] = 'Cell 4G connection'
states[navigator.connection.NONE] = 'No network connection'
@brianleroux
brianleroux / .bash_profile
Created September 29, 2012 12:28
fuck eclipse
# android business
export PATH=$PATH:~/Repo/android-sdk-macosx/tools
export PATH=$PATH:~/Repo/android-sdk-macosx/platform-tools
@brianleroux
brianleroux / seb-pixel-phones.html
Created September 29, 2012 11:03
dont judge me
<script src=cordova-2.0.0.js></script>
<script src=powermanagement.js></script>
<script>
document.addEventListener("deviceready", function() {
startGeolocating();
cordova.require('cordova/plugin/powermanagement').acquire(
function() { console.log( 'hooray power mgmt' ); },
function() { console.log( 'oh no! power mgmt fuct' ); }
);
}, true);