Skip to content

Instantly share code, notes, and snippets.

@mbifulco
mbifulco / function.js
Created Aug 25, 2015
jquery dictionary
View function.js
//characters we want to replace:
/*
< with &lt;
> with &gt;
*/
var jsob =
@gnawlirpa
gnawlirpa / Mobile_Food_Schedule.csv
Created Aug 25, 2015
Mobile Food Schedule in SF
View Mobile_Food_Schedule.csv
We can't make this file beautiful and searchable because it's too large.
DayOrder,DayOfWeekStr,permit,PermitLocation,locationdesc,optionaltext,locationid,start24,end24,CNN,Addr_Date_Create,Addr_Date_Modified,block,lot,ColdTruck,Applicant,X,Y,Latitude,Longitude
0,Sunday,15MFF-0067,3119 ALEMANY BLVD,Set-up at 3101 Alemany: 7:00am-8:00pm,"Tacos, Burritos, Quesadillas, Tortas, Nachos, Hot Dogs,Soda, Water, Fruit Drinks",631815,07:00,20:00,2178101,06/07/2011,06/07/2011,7146,002,N,San Pancho's Tacos,5996010.34,2086972.975,37.71020189,-122.4555798
0,Sunday,15MFF-0020,301 EXECUTIVE PARK BLVD,10:10am-10:25am,"Cold Truck: Pre-packaged Sandwiches, Various Beverages, Salads, Snacks",626002,10:00,11:00,5374000,08/29/2011,08/29/2011,4991,240,Y,Golden Catering,6014761.541,2086930.261,37.71114281,-122.3907684
0,Sunday,15MFF-0020,101 EXECUTIVE PARK BLVD,10:00am-10:05am,"Cold Truck: Pre-packaged Sandwiches, Various Beverages, Salads, Snacks",626001,10:00,11:00,5372202,08/29/2011,08/29/2011,4991,241,Y,Golden Catering,6013626.819,2086973.714,37.7111991,-122.3946933
View preload.coffee
images = [
'http://cdn.discogs.com/yqU-8wqol13SCGfPg2sYy9gBjb4=/100x100/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-3996200-1351777283-1914.jpeg.jpg',
'http://cdn.discogs.com/U2oncEZe50hAlYSoFbVOkIf1Y0s=/fit-in/300x300/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-3578188-1440480186-6359.jpeg.jpg'
]
_preload = (src)->
new Promise (resolve, reject)->
image = document.createElement 'img'
image.src = src
image.onload = -> resolve image
@prafulmehrotra
prafulmehrotra / The Technical Interview Cheat Sheet.md
Last active Aug 25, 2015 — forked from TSiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
View chat.html
<div>
<div>
<ul>
<li ng-repeat="message in ctrl.room.messages">
{{message.author}}: {{ message.content }}
</li>
</ul>
</div>
View async_param.js
var async = require('async');
function copyFileToStructure(filename, done){
async.parallel([
async.apply(teste, filename , 'param'),
async.apply(teste, filename , 'param')
], function(result) {
console.log("poa");
console.log(done);
done();
View gist:ae70ce658b18783ab54a
.tc-panel.cerca-starter-report
.tc-panel-header
.tc-panel-header-title CERCA Starter
.tc-panel-header-actions
.btn.btn-info.mod-data-key
.tc-panel-subhead.mod-chart-key
.chart-key-container.mod-key-cerca-starter
.chart-key-item.mod-proficient
.chart-key-icon
.chart-key-title
View onsets_sart
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Generating Onsets SART"
]
},
{
View gist:06817516f352fd5bcc12
[jeffmc@origin ~]$ ip -a
Option "-a" is unknown, try "ip -help".
[jeffmc@origin ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
View gist:30f4ec3cb9806223b6f4
<>, both not included in range,
<=>, both included
<==, left not included,
==> right not included
infix operator <> {}
infix operator <=> {}
infix operator ==> {}
infix operator <== {}