Skip to content

Instantly share code, notes, and snippets.

Code wins arguments

Alexander frontenddeveloping

Code wins arguments
View GitHub Profile
ALF-er /
Last active Apr 29, 2020
ReactJS Conf 2016

Disclaimer 1: Первую которая "про то чего мы достигли" я таки пропустил.

Disclaimer 2: Многие доклады смотрелись и отчёты писались в состоянии алкогольного опьянения.

1. Ben Alpert - What Lies Ahead

Сейчас посмотрел Ben Alpert - What Lies Ahead она про то какие идеи они имеют о дальнейшем развитии. И они делят на UX-идеи и DX-идеи. В UX у них:

dbankier / gulpfile.js
Created Jul 6, 2015
Nativescript with Jade, SCSS and Babel
View gulpfile.js
// modified from this:
// all sources
var babelSrc = [ 'src/**/*.js', '!src/tns_modules', '!src/tns_modules/**', '!src/node_modules', '!src/node_modules/**' ];
var jadeSrc = [ 'src/**/*.jade' ];
var sassSrc = [ 'src/**/*.scss' ];
var resources = [ 'src/{App_Resources,tns_modules,node_modules}/**', 'src/package.json'];
// Which emulator to run?
WebReflection / gist:24c4c475bdeb59405e87
Last active Feb 15, 2016
setTimeout and setInterval extra arguments
View gist:24c4c475bdeb59405e87

Every single JavaScript engine supports standard timers *

These accept one or more extra argument by specs

for(var i = 0; i < 2; i++) {
  setTimeout(function (i) {
  }, 0, i); // <== see this?
sergejmueller /
Last active Sep 17, 2021
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
Last active Sep 5, 2016
Front-Trends 2014 extended review with links and stuff

The whole content comes "as is".
All commentaries refer to author's impression.
Some inconsistency possible as well.
The few details (mainly useful links) were added while transcribing notes.

lttlrck / gist:9628955
Created Mar 18, 2014
rename git branch locally and remotely
View gist:9628955
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
frontenddeveloping / javascript-tabs.html
Last active Feb 13, 2018
My example can open many links in tabs, not in new windows. Why need this and do not use Because there is the problem - if you call once it will open new tab or window(it depends of browser), if will call two or more times - first will open like tab/window and all next in the new window only. The individual b…
View javascript-tabs.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Open 3 tabs</title>
<script src=""></script>
<div id="hidden_div"></div>
mztriz / Fix Cygwin Issues with Ruby
Created Oct 8, 2012
No such file or directory — /cygdrive/c/Ruby193/bin/gem (LoadError)
View Fix Cygwin Issues with Ruby
Add the following to your .bashrc (change path as necessary):
alias ruby='/cygdrive/c/Ruby193/bin/ruby'
alias gem='/cygdrive/c/Ruby193/bin/gem.bat'
alias irb='/cygdrive/c/Ruby193/bin/irb.bat'
sym3tri / ES5 Newnewss
Created Apr 20, 2012
New features of ES5 summarized
View ES5 Newnewss
- Trailing commas are ok
- No reserved words for property names
- NaN, Infinity, undefined : are all constants
- parseInt() defaults to radix 10
- /regexp/ produces new reg ex object every time
- JSON.parse(), JSON.stringify()
- Function.prototype.bind
- String.prototype.trim
- Array.prototype.every, filter, forEach, indexOf, lastIndexOf, map, reduce, reduceRight, some,
scottjehl / hideaddrbar.js
Created Aug 31, 2011
Normalized hide address bar for iOS & Android
View hideaddrbar.js
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl,
* MIT License
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){