(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.
| #!/bin/bash | |
| # Settings | |
| DATE=`/bin/date "+%Y-%m-%d_%H-%M"` #Datestamp | |
| DBHOST="127.0.0.1" | |
| BACKUPDIR="/home/dunice/work/mongobackup" | |
| DBNAME="webunch" | |
| DOWEEKLY=7 #Day of week for backup (now - sunday) | |
| DOMONTHLY="01" #Day of month for backup (now - 01) | |
| # USERNAME="admin" # |
| var log = require('cllc')(); | |
| var tress = require('tress'); | |
| var needle = require('needle'); | |
| var cheerio = require('cheerio'); | |
| var fs = require('fs'); | |
| var sCookie = 'http://www.puntolis.it/storelocator/defaultsearch.aspx?idcustomer=111'; | |
| var sProv = 'http://www.puntolis.it/storelocator/buildMenuProv.ashx?CodSer=111'; | |
| var sLoc = 'http://www.puntolis.it/storelocator/buildMenuLoc.ashx?CodSer=111&ProvSel=%s'; | |
| var sMarker = 'http://www.puntolis.it/storelocator/Result.aspx?provincia=%s&localita=%s&cap=XXXXX&Servizio=111'; |
| angular.module('utilsModule').filter("megaNumber", () => { | |
| return (number, fractionSize) => { | |
| if(number === null) return null; | |
| if(number === 0) return "0"; | |
| if(!fractionSize || fractionSize < 0) | |
| fractionSize = 1; | |
| var abs = Math.abs(number); |
| <?php | |
| //(js -> php) code. letter by letter | |
| global $n, $i, $id; | |
| $n = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN0PQRSTUVWXYZO123456789+/="; | |
| $id = 12345; //YOUR USER ID | |
| $i = [ | |
| 'v' => function($e) { | |
| return strrev($e); |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| 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 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
(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.
| { | |
| "name": "webpack-sass", | |
| "version": "1.0.0", | |
| "scripts": { | |
| "start": "webpack-dev-server --open --mode development", | |
| "build": "webpack -p" | |
| }, | |
| "devDependencies": { | |
| "babel-core": "^6.26.0", | |
| "babel-loader": "^7.1.4", |
| <%@ taglib tagdir="/WEB-INF/tags/util" prefix="util" %> | |
| <%-- tag should be placed to Web-inf/tags/util/toJson.tag --%> | |
| <script id="scheduleData" type="json-data"><util:toJson source="${schedule}"/></script> |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0-modified | 20110126 | |
| License: none (public domain) | |
| */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, |