Skip to content

Instantly share code, notes, and snippets.

View DigitalCoder's full-sized avatar

Emmanuel DEILLER DigitalCoder

  • France
View GitHub Profile
@DigitalCoder
DigitalCoder / CSS Gooey Menu (Version 2).markdown
Created September 2, 2015 15:22
CSS Gooey Menu (Version 2)
@DigitalCoder
DigitalCoder / yahoo_exchange_rates_jsonp.html
Created December 11, 2016 23:00 — forked from henrik/yahoo_exchange_rates_jsonp.html
JavaScript to get currency exchange rates from Yahoo Finance as JSONP. No XHR!
Get exchange rate as JSONP via YQL.
YQL Console: http://developer.yahoo.com/yql/console
Query (USD to SEK): select rate,name from csv where url='http://download.finance.yahoo.com/d/quotes?s=USDSEK%3DX&f=l1n' and columns='rate,name'
Example code:
<script type="text/javascript">
@DigitalCoder
DigitalCoder / function_invocation.js
Created April 11, 2017 11:10 — forked from myshov/function_invocation.js
11 Ways to Invoke a Function
console.log(1);
(_ => console.log(2))();
eval('console.log(3);');
console.log.call(null, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);
Function.prototype.apply.call(console.log, null, [9]);
Function.prototype.call.call(console.log, null, 10);