Skip to content

Instantly share code, notes, and snippets.

Array.prototype.map = function() {}
Array.prototype.select = function() {}

Keybase proof

I hereby claim:

  • I am tal on github.
  • I am tal (https://keybase.io/tal) on keybase.
  • I have a public key whose fingerprint is F4A2 A992 2844 D7D2 9FE4 89BD 79F9 E82F D6D6 1C15

To claim this, I am signing this object:

_prepare_environment: function _prepare_environment() {
var env = this.options.env || {};
delete this.options.env;
this.env = _.bind(function() {
return _.clone(env);
});
},
/**
* Path Set
* @author Tal Atlas <me@tal.by>
*
* A libary for storing and generating paths for an application based on params.
* If jquery is avaialable it will encode the params using jQuery.param()
*
* ps = new PathSet({
* root: '/',
* group: '/groups/:id(.:format)',
<!--
Copyright (C) 2014 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
callableWithNmaed = (fn) ->
fn_s = fn.toString()
if m = fn_s.match(/function[\w\s]*\((.*?)\)/)
arg_names = m[1].split(/[\s,]+/)
(args) ->
call_args = for arg_name in arg_names
args[arg_name]
@tal
tal / Macros.h
Created August 23, 2014 23:36 — forked from steipete/Macros.h
#ifndef NS_DESIGNATED_INITIALIZER
#if __has_attribute(objc_designated_initializer)
#define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer))
#else
#define NS_DESIGNATED_INITIALIZER
#endif
#endif
for (var i = 0; i < 10; i += 1) {
setTimeout(function() {
console.log(i);
}, 0);
}
@tal
tal / facebook groups.html
Created November 19, 2014 15:14
This si the base 64 decoded version of the homepage link facebook groups made: http://hastebin.com/icumureqeh.hs
<!DOCTYPE HTML>
<html>
<head id="htmlHead">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="apple-mobile-web-app-capable" content="no" />
<title>The Maderas Villagers</title>
<link rel="apple-touch-icon-precomposed" href="data:image/png;base64,/9j/4AAQSkZJRgABAQAAkACQAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAACQAAAAAQAAAJAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAHigAwAEAAAAAQAAAHgAAAAA/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/AABEIAHgAeAMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQ
@tal
tal / charlist.json
Created January 8, 2015 17:24
Mask characcters with lookalikes
{
"A": "Α",
"a": "α",
"B": "Β",
"C": "Ç",
"c": "ç",
"D": "Đ",
"d": "ԁ",
"E": "Ε",
"e": "ė",