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 / 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);
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 / 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
*/
@jochemstoel
jochemstoel / alias
Created February 13, 2017 01:57 — forked from trsqxyz/alias
powershell
CommandType Name ModuleName
----------- ---- ----------
Alias % -> ForEach-Object
Alias ? -> Where-Object
Alias ac -> Add-Content
Alias asnp -> Add-PSSnapin
Alias cat -> Get-Content
Alias cd -> Set-Location
Alias chdir -> Set-Location
Alias clc -> Clear-Content
CommandType Name Version Source
----------- ---- ------- ------
Alias Add-ProvisionedAppxPackage 3.0 Dism
Alias Apply-WindowsUnattend 3.0 Dism
Alias Disable-PhysicalDiskIndication 2.0.0.0 Storage
Alias Disable-StorageDiagnosticLog 2.0.0.0 Storage
Alias Enable-PhysicalDiskIndication 2.0.0.0 Storage
Alias
@jochemstoel
jochemstoel / hosted_example.txt
Created May 4, 2017 19:04 — forked from makevoid/hosted_example.txt
JQuery DOM HighLighter (it's a basic "Inspect element" simple implementation to mimic what webkit inspector and firebug do)
http://uploads.makevoid.com/jquery_dom_highlighter.html