Skip to content

Instantly share code, notes, and snippets.

View thanpolas's full-sized avatar

Thanos Polychronakis thanpolas

View GitHub Profile
@thanpolas
thanpolas / gist:4727303
Last active December 12, 2015 06:09
Grunt Task for node
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-watch');
// Project configuration.
grunt.initConfig({
@thanpolas
thanpolas / gist:4706309
Created February 4, 2013 11:49
nodejs handlebars + layoutmanager + backbone
requirejs = require('requirejs'),
LayoutManager = require("backbone.layoutmanager"),
hbsCompiled;
requirejs(['handlebars-helpers'], function(){
hbsCompiled = require('../static/js/templates/hbsCompiled');
var hand = require('Handlebars');
});
LayoutManager.configure({
@thanpolas
thanpolas / gist:4595043
Last active December 11, 2015 11:38
node.js :: Checks if the define process is running
/**
* Checks if the define process is running
* @param {string} process The process.
* @param {function(boolean)} The result of the operation.
* @return {void}
*/
function isRunning(process, cb) {
var checkCommand = 'ps x|grep ' + process + '|grep -v grep|awk \'{print $1}\'';
var execOptions = {};
@thanpolas
thanpolas / dabblet.css
Created December 17, 2012 16:22 — forked from anonymous/dabblet.css
Untitled
body {
background: blue;
padding:0;
}
header {
height: 200px;
background-color: red;
margin: 0;
display:block;
overflow: hidden;
@thanpolas
thanpolas / dabblet.css
Created December 17, 2012 15:58
Untitled
header {
width: 100%;
height: 200px;
background-color: red;
margin: 0;
display:block;
}
header div {
margin-top:50px;
@thanpolas
thanpolas / dabblet.css
Created December 16, 2012 22:46
Untitled
.container > p {
background-color: yellow;
min-height: 150px;
box-shadow: inset 0 5px 10px 1px rgba(0, 0, 0, 0.45), 0 5px 10px 1px rgba(0, 0, 0, 0.25);
}
@thanpolas
thanpolas / dabblet.css
Created December 16, 2012 17:26
Untitled
.container > p:last-child {
background-color: yellow;
}
@thanpolas
thanpolas / dabblet.css
Created December 12, 2012 14:00
Untitled
.container {
width: 100%;
}
.col1 {
width: 200px;
float: left;
margin-left: 20px;
background-color: #ddd;
}
@thanpolas
thanpolas / dabblet.css
Created December 12, 2012 14:00
Untitled
.container {
width: 100%;
}
.col1 {
width: 200px;
float: left;
margin-left: 20px;
background-color: #ddd;
}
@thanpolas
thanpolas / dabblet.css
Created December 11, 2012 12:55
Untitled
.codeblock {
width: 600px;
height: 200px;
background-color: yellow;
display: block;
}
.lineno {
background-color: #ddd;
width: 60px;
}