Skip to content

Instantly share code, notes, and snippets.

@benkutil
benkutil / server.js
Created June 9, 2015 16:55
http-proxy
var http = require('http'),
httpProxy = require('http-proxy');
//
// Create your proxy server and set the target in the options.
//
var apiProxy = new httpProxy.createProxyServer({
target: {
host: 'https://api.ppmroadmap.com/v1.2'
}
});
@benkutil
benkutil / main.js
Created May 11, 2015 20:20
Surface Example - placeInfo
placeInfo = function placeInfoF () {
$(".about").colorbox({transition:"fade", width:"75%", height:"75%", fixed:true, onLoad: function() {
$('#cboxClose').remove();
var theDiv = document.getElementById('hanatarash');
if(theDiv.innerHTML == '') {
return;
}
@benkutil
benkutil / pseudo.js
Created April 27, 2015 20:30
pseudo code for loading multiple ajax items
infoLoaded = function infoLoadedF () {
// insert video
var videoHTML = '<iframe id="ytplayer" type="text/html" width="640" height="390"
src="http://www.youtube.com/embed/' + SITE.videoID + '?autoplay=1&origin=http://example.com"
frameborder="0"/>';
document.getElementById('youtube-video').innerHTML(videoHTML);
// insert script
var scriptText = '';
@benkutil
benkutil / 2015-02-06-crashlog.txt
Created February 6, 2015 14:59
Markly App Crash Logs
Process: Markly [57274]
Path: /Applications/Markly1.0.0.app/Contents/MacOS/Markly
Identifier: com.marklyapp.Markly
Version: 1.0.0 (613)
Code Type: X86-64 (Native)
Parent Process: launchd [55331]
Responsible: Markly [57274]
User ID: 1026
Date/Time: 2015-02-06 09:58:35.605 -0500
@benkutil
benkutil / abbriviations.md
Created October 18, 2014 03:01
CSS Abbreviations

Taken from MCSS

a - link <a> tag ac - action add - additional aft - after aux - auxillary

b - body | bottom bg - background

Keybase proof

I hereby claim:

  • I am benkutil on github.
  • I am benkutil (https://keybase.io/benkutil) on keybase.
  • I have a public key whose fingerprint is EB23 5A0A 5940 2799 3C39 6737 7856 8154 089F 326F

To claim this, I am signing this object: