Skip to content

Instantly share code, notes, and snippets.

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

Victor Bjelkholm victorb

🏄‍♂️
𝓢𝓾𝓻𝓯𝓲𝓷𝓰 - 𝓽𝓱𝓮 - 𝓬𝔂𝓫𝓮𝓻𝓼𝓹𝓪𝓬𝓮
View GitHub Profile
@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>
// ==UserScript==
// @name Redditpedia
// @namespace reddit
// @description reddit + Pokedex = Redditpedia!
// @include http://*.reddit.com/*
// @match http://*.reddit.com/*
// @version 1.0
// ==/UserScript==
/*! jQuery v1.7.1 jquery.com | jquery.org/license */
@victorb
victorb / ex3.py
Created August 27, 2012 00:59
Övning 3
# -*- coding: utf-8 -*-
# Skriver ut
print "I will now count my chickens:"
# Räknar ut "hens"
print "Hens", 25 * 30 / 6
# Räknar ut "roosters"
print "Roosters", 100 - 25 * 3 % 4
@victorb
victorb / normalize.css
Created August 28, 2012 22:45
normalize.css
/*! normalize.css v1.0.0 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/*
* Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
*/
@victorb
victorb / Eric Mayer CSS Reset
Created November 6, 2012 20:53
Eric Mayer CSS Reset
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@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 / restful_guidelines.md
Last active December 14, 2015 18:19
RESTful guidelines
Verb Path Action Used for
GET /photos index display a list of all photos
GET /photos/new new return an html form for creating a new photo
POST /photos create create a new photo
GET /photos/:id show display a specific photo
GET /photos/:id/edit edit return an html form for editing a photo
PUT /photos/:id update update a specific photo
DELETE /photos/:id destroy delete a specific photo
(function (a) {
String.prototype.trim === a && (String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, "")
}), Array.prototype.reduce === a && (Array.prototype.reduce = function (b) {
if (this === void 0 || this === null) throw new TypeError;
var c = Object(this),
d = c.length >>> 0,
e = 0,
f;
if (typeof b != "function") throw new TypeError;
@victorb
victorb / index.html
Last active December 20, 2015 11:59
s
<html>
<head>
<title></title>
</head>
<body>
<center>
För example på hur man använder XKeyscore (övervakningsprogram från NASA) med Sverige som exempel.
""The XKeyscore program also allows an analyst to learn the IP addresses of every person who visits any website the analyst specifies."
<img src="http://i.imgur.com/CqdMPh3.jpg"></img>