Skip to content

Instantly share code, notes, and snippets.

View victorb's full-sized avatar
🏄‍♂️
𝓢𝓾𝓻𝓯𝓲𝓷𝓰 - 𝓽𝓱𝓮 - 𝓬𝔂𝓫𝓮𝓻𝓼𝓹𝓪𝓬𝓮

Victor Bjelkholm victorb

🏄‍♂️
𝓢𝓾𝓻𝓯𝓲𝓷𝓰 - 𝓽𝓱𝓮 - 𝓬𝔂𝓫𝓮𝓻𝓼𝓹𝓪𝓬𝓮
View GitHub Profile
@victorb
victorb / twc.js
Created September 9, 2015 12:38 — forked from ivarvong/twc.js
(function() {
/**
* @param {number} meta
* @param {number} child
* @return {?}
*/
function addImage(meta, child) {
meta = meta || 1;
child = child || 0;
/** @type {Image} */
@victorb
victorb / gist:4181764
Last active May 7, 2017 10:09 — forked from davatron5000/gist:2254924
Static Site Generators

This is an updated fork of the gist located here: https://gist.github.com/2254924

Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.

Ruby

@victorb
victorb / replify
Created August 19, 2016 17:18 — forked from danielrw7/ replify
replify - Create a REPL for any command
#!/bin/sh
command="${*}"
printf "Initialized REPL for [%s]\n" "$command"
printf "%s> " "$command"
read -r input
while [ "$input" != "" ];
do
eval "$command $input"
printf "\n%s> " "$command"
@victorb
victorb / introrx.md
Created January 4, 2016 09:47 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@victorb
victorb / index.html
Created November 4, 2015 11:31 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/vogubu
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body, html {
margin: 0;
padding: 0;
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body, html {
margin: 0;
padding: 0;
@victorb
victorb / html5_template.html
Created March 26, 2012 13:14 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>
@victorb
victorb / form.json
Last active September 3, 2015 10:03 — forked from qustavo/form.json
{
"title": "Sandbox - Boilerplate",
"design_id": "wEdZrLDpiJ",
"fields": [
{
"type": "short_text",
"question": "This is a ShortTextField, What's your name? [ _Edit this text & press Build_ ]",
"description": "I'm sure you have a great name! ← [ _Edit this text & press Build_ ]",
"required": true
},
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id="form_here"></div>
<script id="jsbin-javascript">
console.clear();