Skip to content

Instantly share code, notes, and snippets.

View danse's full-sized avatar

frances danse

  • Internet
View GitHub Profile
// Gruntfile with the configuration of grunt-express and grunt-open. No livereload yet!
module.exports = function(grunt) {
// Load Grunt tasks declared in the package.json file
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Configure Grunt
grunt.initConfig({
// grunt-express will serve the files from the folders listed in `bases`
set tabstop=2
set shiftwidth=2
function e(a) {
return '"'+a+'"';
}
/*
> convert([{a: 1, b: 2}, {a: 3, b:4}]);
'"a","b"\n"1","2"\n"3","4"'
> convert([{a: 1, b: 2}, {a: 3, b:4}]);
'"a","b"\n"1","2"\n"3","4"'
*/
function convert(j) {
spitting
drizzling
raining
pouring - lashing
@danse
danse / engines.md
Last active December 18, 2015 18:58
my opinion about handlebars and dust for our application
area dust handlebars
community ✘ company biased wide community (i would say that it's the mainstream solution) [1]
features ✘ rich reduced [2]
learning curve ✘ looks easy looks easier (for me)
escaping pipes [3] {{{}}} and then?
variable delimiter {} {{}}
if @if cond="" :else /if, if it works #if else /if
subtemplates ✘ oh yeah maybe, if we really need it... [4]
documentation ✘ go find it, fragmented under your tips, see community
@danse
danse / jobs in Berlin.md
Last active December 17, 2015 12:49
My two cents about jobs in Berlin

Find your (job) way in Berlin

Since several people ask me about directions for a job in Berlin, here i write the few things i know and which helped me to find a job (as a developer).

Places (web or not)

The principal site for me was Berlin startup jobs: http://berlinstartupjobs.com/

I actually found my current job on the careers page for Berlin:

/**
* SVG inspired by Quine's paradox
*/
svg {
display: block;
margin: 40px auto;
font: 83px sans-serif;
}
@danse
danse / dabblet.css
Created April 23, 2013 17:04
Untitled
.container {
width: 500px;
}
.content {
display: inline;
margin-left: 20px;
}
@danse
danse / gist:5444272
Created April 23, 2013 14:59
REST interfaces
http://www.restapitutorial.com/lessons/restfulresourcenaming.html
frameworks for java:
http://restlet.org/
@danse
danse / gist:5444101
Last active December 16, 2015 13:48
Json serialization tools
http://stackoverflow.com/questions/3792315/javascript-to-java-using-json/3794212#3794212
http://stackoverflow.com/questions/7539954/java-json-serialization-best-practice
https://code.google.com/p/google-gson/
http://wiki.fasterxml.com/JacksonHome
http://software.danielwatrous.com/restful-java-servlet-serializing-tofrom-json-with-jackson/