Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| { | |
| "cmd": ["nasm", "-f", "bin", "${file}", "-o", "${file_path}/${file_base_name}.COM"], | |
| "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
| "working_dir": "${file_path}" | |
| } | |
| // syntax for cmdline building : http://www.nasm.us/xdoc/2.10.06/html/nasmdoc2.html#section-2.1 | |
| // syntax for sublime build system : http://sublimetext.info/docs/en/reference/build_systems.html (outdated)? | |
| // replace nasm and update switches as needed.. ;ie.. fasm etc | |
| // ${file} refers to the current saved file.. ${file_path} etc.. |
| --- | |
| --- Usare la nuova versione su https://github.com/carlok/comuni_sql | |
| --- | |
| CREATE TABLE IF NOT EXISTS regioni ( | |
| id int(11) NOT NULL auto_increment, | |
| nome varchar(100) NOT NULL, | |
| PRIMARY KEY (id) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| sys_rb_usr=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
| sdk_rb_usr=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
| sudo cp -r $sdk_rb_usr/include $sys_rb_usr/include |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| /* responsive break points - customise to suit or add more */ | |
| $break-small: 480px; | |
| $break-medium: 768px; | |
| $break-large: 940px; | |
| $break-x-large: 1140px; | |
| /* how to use: | |
| @include devices(mobile) { - targets a single device | |
| body { |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns on recent CPU
L2 cache reference ........................... 7 ns 14x L1 cache
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs 4X memory
| var IE = (function() { | |
| if (document.documentMode) { | |
| return document.documentMode; | |
| } else { | |
| for (var i = 7; i > 4; i--) { | |
| var div = document.createElement("div"); | |
| div.innerHTML = "<!--[if IE " + i + "]><span></span><![endif]-->"; | |
| if (div.getElementsByTagName("span").length) { |
| #!/usr/bin/env ruby | |
| require 'cinch' # gem install cinch --no-ri --no-rdoc | |
| require 'askwiki' # gem install askwiki --no-ri --no-rdoc | |
| bot = Cinch::Bot.new do | |
| configure do |c| | |
| c.server = "irc.freenode.org" | |
| c.nick = "Ask_wikipedia" | |
| c.channels = ["#cinch-bots"] |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.