Skip to content

Instantly share code, notes, and snippets.

@yahelc
yahelc / savedhar.harp
Created November 2, 2015 16:30 — forked from anonymous/savedhar.harp
Anonymous HAR saved from harfiddle.com
onInputData({
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2015-11-02T16:22:37.316Z",
@yahelc
yahelc / README.md
Last active December 14, 2015 03:59 — forked from gmarik/README.md

About

minimal example of using [phantomjs] with [qunit]

$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.

Installation

@yahelc
yahelc / jQuery-geo.js
Last active December 10, 2015 21:48 — forked from anonymous/jQuery-geo.js
(function($){
$.geo = function(callback){
if(!$.geo.data){
$.ajax({
cache: true,
url: '//www.google.com/jsapi',
dataType: "script",
success: function(){
@yahelc
yahelc / states_hash.json
Created October 21, 2012 00:46 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
"DC": "District Of Columbia",
@yahelc
yahelc / caveatPatchor.js
Created December 15, 2011 16:45
Sample caveatPatchor.js file for use in Propane 1.1.2 and above: Plus YouTube and MP3 Support
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@yahelc
yahelc / sv_performance.php
Created November 1, 2011 19:09 — forked from douglasback/sv_performance.php
Passes Query Count and Template Load Time in a GA Non-Interaction Event. Sent at window.onload to minimize latency.
{if member_group == '1'}
<script>
jQuery(window).load(function(){
_gaq.push(["_trackEvent", "EE Perf", location.pathname, "{total_queries} queries", parseInt({elapsed_time},10), true]);
});
</script>
{/if}
@yahelc
yahelc / jsfiddle-jquery-defaults.user.js
Created September 8, 2011 13:36 — forked from mathiasbynens/jsfiddle-defaults.user.js
Userscript that enables jQuery-friendly defaults for jsFiddle.
// ==UserScript==
// @name Sensible defaults for jsFiddle.
// @author Mathias Bynens <http://mathiasbynens.be/>
// @modified-by Yahel Carmon
// @link http://mths.be/bde
// @match http://jsfiddle.net/*
// ==/UserScript==
if(window.location.pathname === "/") //only on new Fiddles
{