Skip to content

Instantly share code, notes, and snippets.

Jonathan El-Bizri Jon-Biz

  • San Francisco
View GitHub Profile
@Jon-Biz
Jon-Biz / gist:4395bdb32831e57a781fb99189d64e8a
Created Nov 9, 2016
Insert an external file into Twine
View gist:4395bdb32831e57a781fb99189d64e8a
(function ($) {
$(document.head)
.append('<script type="text/javascript" src="http://localhost:1234/twineAPI.js" />')
})(jQuery);
@Jon-Biz
Jon-Biz / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:5e1b5e1afdbb4a17c360
var UniversalCollection = require('../universal-collection')
, _ = require('lodash')
, stateHelper = require('../../models/item/state-helpers.js')
, getStateObject = require('../../models/item/getStateObject.js')
, ItemSupplierStateCollection
, checkStateHelper = function(where, doc){
return stateHelper[where](getStateObject(doc))
}
/**
View gist:90f72896c52ba2d63e3c
# Jonathan El-Bizri
## Web Engineer
Jonathan has been involved in technology ventures throughout his career as part of a number of successful start ventures. His first startup, Team TNT, developed video games. Later acquired by id software, it was the first corporation to be run and incorporated entirely over the internet.
In 1998, he joined Merchant Planet, later acquired by LinkExchange, which was to become Microsoft's first online credit card processing platform.
In 2001, he joined TellMe Networks, where he designed and developed interactive voice-based internet applications in javascript, php and VXML. His applications are still in use by Amazon, American Airlines, Microsoft and others.
In 2003, he joined Juniper Networks, lead development of a global streaming media and telecommunications portal, while managing and growing a ten-person, multidisciplinary development and media production team.
@Jon-Biz
Jon-Biz / gist:7425338
Created Nov 12, 2013
nodejitsu nodemailer issue package.json
View gist:7425338
{
"name": "server",
"version": "0.0.1-4",
"private": true,
"scripts": {
"start": "node app"
},
"dependencies": {
"express": "~3.3.4",
"jade": "~0.34.0",
@Jon-Biz
Jon-Biz / gist:5114452
Last active Dec 14, 2015
Jasmine-every example
View gist:5114452
var testcases = ["dataset_one"
,"dataset_two"
,"dataset_three"]
every(testcases,function(index, testcase){
describe("each Test Case",function(){
it("should be a string",function(){
expect(typeof testcase).toEqual("string");
})
})
@Jon-Biz
Jon-Biz / gist:5086093
Last active Dec 14, 2015
Testing Backbone js dom interactions
View gist:5086093
describe('displaying a model',function(){
var testdata = {"title":"The Title"
,"description":"Test Data"
,"content":"Test Content"}
, testmodel = new App.Data.PageModel(testdata)
, itemview;
beforeEach(function(){
$('<div id=domobject></div>').appendTo('body');
itemview = new App.Views.ItemView({el:$("#domobject")
View gist:4661215
beforeEach(function(){
// clone the Backbone Application 'App'
Data = App.module("Data");
Data.start();
var fakedata = [{"title":"Wine List"
,"description":"gallery"}];
Pages = new Data.PageCollection(fakedata);
@Jon-Biz
Jon-Biz / gist:4659516
Last active Dec 11, 2015
module start example
View gist:4659516
describe("A Page collection with fake data",function(){
var Data, Pages;
Data = App.module("Data");
Data.start();
beforeEach(function(){
var fakedata = [{"title":"Wine List"
@Jon-Biz
Jon-Biz / gist:4659457
Last active Dec 11, 2015
Module start example II
View gist:4659457
describe("A Page collection with fake data",function(){
var Data, Pages;
beforeEach(function(){
// clone the Backbone Application 'App'
var Appclone = jQuery.extend({}, App);
// access the module from the cloned app
You can’t perform that action at this time.