Skip to content

Instantly share code, notes, and snippets.

View richardj's full-sized avatar
🏠
Working from home

Richard richardj

🏠
Working from home
  • The Netherlands
  • 04:19 (UTC +02:00)
View GitHub Profile
'world': 1,
'continent': 3,
'country': 7,
'region': 8,
'city': 11,
'village': 13,
'district': 15,
'block': 17,
'street': 19
@richardj
richardj / Vacature backend developer
Last active July 4, 2016 13:16
Vacature backend developer
Wij zijn op zoek naar een ervaren (backend) programmeur die ons kan helpen het laatste gedeelte van onze product te realiseren.
Wij: is een team van een designer, een UX’er en een front-end developer.
Je zal nauw samenwerken met onze front-end developer die dedicated op het project werkzaam is (volledige Fte). De werkzaamheden kan je deels vanuit huis doen en deels op locatie met onze front-end developer in Utrecht.
Waar zijn we naar op zoek?
Een all-round developer met focus op backend development in een PHP omgeving, en dan het liefst nog eentje die het leuk vindt om in een start-up omgeving te werken.
Je moet kennis hebben van:
@richardj
richardj / array.js
Last active June 22, 2016 12:04
Best way to check if array exists and if not create on to unshift into
if (!someObject.someArray) {
someObject.someArray = [];
}
someObject.someArray.unshift(item);
@richardj
richardj / stories.js
Created January 15, 2016 10:19
when calling {{ storyDetail }} in my template it will not update (it is initiated earlier as an empty object just for testing sake. The log displays the correct value (object).
this.getStory = function(id) {
storyService.getStory(id)
.then(function(data) {
if (data !== undefined) {
$scope.storyDetail = data;
console.log($scope.storyDetail);
}
else {
console.log("something went wrong with the data");
}
execute pathogen#infect()
" set tabs to 2 spaces"
set smartindent
set expandtab
set tabstop=2
set shiftwidth=2
" set linenumbering
@richardj
richardj / gulpfile.js
Created October 14, 2015 13:08 — forked from torgeir/gulpfile.js
Example gulpfile.js
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
@richardj
richardj / index.html
Created March 26, 2015 08:54
JS Bin - My Template // source http://jsbin.com/yoquha
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin - My Template</title>
<style id="jsbin-css">
*, *:before, *:after {
box-sizing: border-box;
}
@richardj
richardj / gist:6e2464f064f6ba7953fa
Created February 2, 2015 14:16
Easy CSS item divider
:not(:last-child):after {
content: " | ";
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
html {
font-family: sans-serif;
}
@richardj
richardj / start.sh
Created October 15, 2014 06:07
start.sh with --rebuild flag
#!/bin/bash
while test $# -gt 0; do
case "$1" in
--rebuild)
cd assets/jscss && bower update && cd -
cd assets/jscss && npm update && cd -
break
;;
esac