Skip to content

Instantly share code, notes, and snippets.

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

Richard Macarthy rjmacarthy

🎮
The Tetris effect
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 / 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 / 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);
@rjmacarthy
rjmacarthy / callapply
Created February 4, 2015 17:32
Call and Apply Javascript
http://jsfiddle.net/ejd0g5ms/
@rjmacarthy
rjmacarthy / jasmine
Last active August 29, 2015 14:15
Jasmine Playground
http://jsfiddle.net/wzAyL/260/