Skip to content

Instantly share code, notes, and snippets.

View rjmacarthy's full-sized avatar
🎮
The Tetris effect

rj rjmacarthy

🎮
The Tetris effect
  • The Wilderness
  • 18:38 (UTC)
View GitHub Profile
@rjmacarthy
rjmacarthy / Concat and Minify Grunt
Last active August 29, 2015 14:09
Grunt concatination and minification helpers...
/******
Concatinate css and js
*******/
concat: {
js: {
src: 'src/js/*.js',
dest: 'dest/js/concat.js'
},
css: {
@rjmacarthy
rjmacarthy / nginxconfig
Created December 4, 2014 09:10
Node.js Nginx Configuration
upstream app_website {
server 127.0.0.1:3000; // Port your node app is running on
}
# the nginx server instance
server {
listen 80;
server_name website.com;
return 301 http://www.website.com;
}
@rjmacarthy
rjmacarthy / expressgeneratorstart
Last active August 31, 2015 13:08
Start express generator
Windows
-------
DEBUG=appname:* npm start
Linux
-------
Terminal 1
node-inspector
@rjmacarthy
rjmacarthy / Grunt file SASS
Created December 15, 2014 12:58
Grunt File SASS
module.exports = function(grunt) {
grunt.initConfig({
sass: {
dist: {
options: {
includePaths: require('node-bourbon').includePaths,
includePaths: require('node-neat').includePaths
},
files: {
'public/css/style.css': 'public/scss/style.scss'
@rjmacarthy
rjmacarthy / bourbonGrunt
Last active August 29, 2015 14:11
Grunt SASS
var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
sass: {
dist: {
options: {
includePaths: require('node-refills').includePaths
},
files: {
@rjmacarthy
rjmacarthy / SassPackageJson
Created December 16, 2014 16:59
SASS Package.json
{
"name": "bitcointestnetfaucet",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"express": "~4.9.0",
"body-parser": "~1.8.1",
@rjmacarthy
rjmacarthy / nodegypwindows
Created December 23, 2014 16:53
node gyp windows
npm install <package> --msvs_version=<.net version>
@rjmacarthy
rjmacarthy / calcpricefiddle
Last active August 29, 2015 14:13
Calcular Price Fiddle
http://jsfiddle.net/v7tmu6ss/3/
@rjmacarthy
rjmacarthy / recactcounter
Created January 14, 2015 15:08
React Example
http://jsfiddle.net/kb3gN/8968/
@rjmacarthy
rjmacarthy / knockoutsample.js
Last active August 29, 2015 14:14
Knockout Sample With Initial Value
var ViewModel = {
inputValue : ko.observable()
};
ko.applyBindings(ViewModel);
var value = $('#text').data('value');
ViewModel.inputValue(value);