Skip to content

Instantly share code, notes, and snippets.

View gordey4doronin's full-sized avatar

Gordey Doronin gordey4doronin

  • GitHub Staff
  • Munich, Germany
  • 12:43 (UTC +01:00)
View GitHub Profile
@gordey4doronin
gordey4doronin / fix-libv8-mac.txt
Last active November 12, 2019 06:11 — forked from fernandoaleman/fix-libv8-mac.txt
Fixing libv8 and therubyracer on Mac
brew install v8-315
gem install libv8 -v '3.16.14.19' -- --with-system-v8
gem install therubyracer -v '0.12.3' -- --with-v8-dir=/usr/local/opt/[email protected]
bundle install
@gordey4doronin
gordey4doronin / tslint-ban-config.json
Created April 10, 2017 09:06 — forked from ChrisMBarr/tslint-ban-config.json
Configuration for TSLint's "ban" rule for modern Angular applications
"ban": [
true,
[ "angular", "each", "Don't rely on angular to perform loops. Either use a 'for of' loop or the native 'array.forEach': https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_each" ],
[ "jQuery", "each", "Don't rely on jQuery to perform loops. Either use a 'for of' loop or the native 'array.forEach': https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_each" ],
[ "$", "each", "Don't rely on jQuery to perform loops. Either use a 'for of' loop or the native 'array.forEach': https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_each" ],
[ "_", "each", "Don't rely on Underscore to perform loops. Either use a 'for of' loop or the native 'array.forEach': https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_each" ],
[ "_", "forEach", "Don't rely on Underscore to perform loops. Either use a 'for of' loop or the native 'array.forEach': https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_
@gordey4doronin
gordey4doronin / filedownloader.js
Last active April 20, 2016 09:23 — forked from DavidMah/filedownloader.js
File Download requests using jquery/POST request with psuedo ajax
// Takes an URL and object to pass to the server.
// Sends to the server. The server can respond with binary data to download.
jQuery.download = function(url, object) {
// Build a form
var form = $('<form></form>').attr('action', url).attr('method', 'post');
var keyValuePairs = jQuery.param(object).split('&').map(function(x) {
var splitted = x.split('=');
return {
key: decodeURIComponent(splitted[0]),