Skip to content

Instantly share code, notes, and snippets.

@josephj
josephj / gulpfile.coffee
Last active August 29, 2015 14:08
Development tools for developer portal project
################
# Dependencies
################
gulp = require 'gulp'
watch = require 'gulp-watch'
connect = require 'gulp-connect'
open = require 'gulp-open'
path = require 'path'
exec = require('child_process').exec
################
@josephj
josephj / apache.conf
Last active July 4, 2016 02:28
Inject livereload.js from server setting. Also use https://github.com/jaytaph/htrouter
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|</body>|<script src=\"//localhost:35729/livereload.js\"></script>\n</body>|i"
gulp = require 'gulp'
livereload = require 'gulp-livereload'
watch = require 'gulp-watch'
coffee = require 'gulp-coffee'
exec = require('child_process').exec
gulp.task 'watch', ->
watch glob: "app/public/.phrozn/**/*.twig", (files) ->
console.log "Executing 'phr up'"
exec 'cd app/public;phr up'
@josephj
josephj / .editorconfig
Last active August 29, 2015 14:05
For work
[*]
end_of_line = LF
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
max_line_length = 120

Keybase proof

I hereby claim:

  • I am josephj on github.
  • I am josephj (https://keybase.io/josephj) on keybase.
  • I have a public key whose fingerprint is 077D D0C5 7213 FEBF 7FD9 DCFD 1E92 4FAD 21DD FFC6

To claim this, I am signing this object:

{
"directory" : "app/media/components"
}
# A sample Gemfile
source "https://rubygems.org"
gem 'guard'
gem 'guard-livereload'
# A sample Gemfile
source "https://rubygems.org"
gem 'guard'
gem 'guard-livereload'
{
"indent_size": 4,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"jslint_happy": true,
"preserve_newlines": true,
"space_in_paren": false,
"keep_function_indentation": true
}
@josephj
josephj / index.html
Created April 7, 2014 10:08
A Pen by josephj.
<div id="chess-board"></div>