Skip to content

Instantly share code, notes, and snippets.

View jochemstoel's full-sized avatar
💭
Dematerializing

Jochem Stoel jochemstoel

💭
Dematerializing
View GitHub Profile
@jochemstoel
jochemstoel / gist:481c9f9aeca53d457b65
Created July 22, 2015 08:36
3d buttons bootstrap
.btn3d {
transition:all .08s linear;
position:relative;
outline:medium none;
-moz-outline-style:none;
border:0px;
margin-right:10px;
margin-top:15px;
}
.btn3d:focus {
@jochemstoel
jochemstoel / stringify.js
Created October 17, 2015 21:22 — forked from cowboy/stringify.js
JavaScript: like JSON.stringify but handles functions, good for creating arbitrary .js objects?
var stringify = function(obj, prop) {
var placeholder = '____PLACEHOLDER____';
var fns = [];
var json = JSON.stringify(obj, function(key, value) {
if (typeof value === 'function') {
fns.push(value);
return placeholder;
}
return value;
}, 2);
/*
* @package acquire
* @version 0.2
* @author Jochem Stoel (http://jochemstoel.github.io/)
* @url http://jochemstoel.tumblr.com/post/134786730189/javascript-browser-require-ajax
* @license Don't involve me.
*/
function acquire($lib, $fn)
{
using Mono.CSharp;
class X {
static void Main ()
{
var a = new
Evaluator (new CompilerContext (new CompilerSettings (), new ConsoleReportPrinter ()));
a.Run ("System.Console.WriteLine (true);");
}
}
@jochemstoel
jochemstoel / Sublime Text 3 Build 3103 License Key - CRACK
Created September 11, 2016 03:15
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@jochemstoel
jochemstoel / postjson.js
Created November 2, 2016 04:01 — forked from JacobHsu/postjson.js
#nodejs #npm - post json with node.js (npm request )
var request = require('request');
var options = {
uri: 'https://www.googleapis.com/urlshortener/v1/url',
method: 'POST',
json: {
"longUrl": "http://www.google.com/"
}
};
@jochemstoel
jochemstoel / Open Graph meta tags
Created November 3, 2016 20:24 — forked from Ahrengot/Open Graph meta tags
Open Graph meta tags for web pages
<!-- Open Graph Protocol: http://developers.facebook.com/docs/opengraph/ -->
<!-- Required -->
<meta property="og:title" content="PAGE_TITLE"/>
<meta property="og:type" content="TYPE"/>
<meta property="og:url" content="FULL_URL"/>
<meta property="og:image" content="FULL_IMGAGE_URL_MIN_50x50PX"/>
<!-- Optional -->
<meta property="og:site_name" content="SITE_NAME"/>
@jochemstoel
jochemstoel / Program.cs
Created November 17, 2016 23:25 — forked from takekazuomi/Program.cs
Mono.CSharp sample code
using Mono.CSharp;
namespace ConsoleApplication5 {
class Program {
void Run() {
var settings = new CompilerSettings ();
var evaluator = new Evaluator(settings, new Report(new ConsoleReportPrinter()));
evaluator.Run(@"System.Console.WriteLine(""Hello"");");
}
@jochemstoel
jochemstoel / httpStatusCodes.js
Created December 28, 2016 13:29 — forked from marlun78/httpStatusCodes.js
An HTTP Status Codes object
/**
* HTTP Status Codes
* Copyright (c) 2012, marlun78
* MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83
*
* Taken from: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
* Visual Studio find regex: ^(\d{3}) ([^\r\n]+)\r\n
* Visual Studio replace regex: '$1': '$2', //
* Notes wrapped in parens moved manually
*/
@jochemstoel
jochemstoel / replace-wp-dashboard.php
Created January 2, 2017 20:59 — forked from wpscholar/replace-wp-dashboard.php
Replace the default WordPress dashboard with a custom one
<?php
/**
* Plugin Name: Replace WordPress Dashboard
* Description: Replaces the default WordPress dashboard with a custom one.
* Author: Micah Wood
* Author URI: http://micahwood.me
* Version: 0.1
* License: GPL3
*/