- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
- Using
classNameinstead ofclass
- Install plugin RegReplace
- Install plugin Chain Of Command
| # Optimized for writes, sort on read | |
| # LVC | |
| redis.hset("bonds|1", "bid_price", 96.01) | |
| redis.hset("bonds|1", "ask_price", 97.53) | |
| redis.hset("bonds|2", "bid_price", 95.50) | |
| redis.hset("bonds|2", "ask_price", 98.25) | |
| redis.sadd("bond_ids", 1) | |
| redis.sadd("bond_ids", 2) |
| // Выборка смыканий из базы | |
| `SELECT time, type, duration, rnum, den | |
| FROM (SELECT time, type, duration, | |
| row_number() over(ORDER BY time ASC) rnum, | |
| ((select count(*) from clamps where device_id = ${deviceId}) / 200) den | |
| FROM clamps | |
| WHERE clamps.device_id = ${deviceId} | |
| AND (clamps.time BETWEEN '${s}' AND '${e}') | |
| ORDER BY time ASC) full_clamps |
| ;; Define a "base type" of Dog | |
| (defrecord Dog [breed]) | |
| ;; Define a "sub type" of TrainedDog | |
| (defrecord TrainedDog [dog word]) | |
| ;; The interface that both Dog and TrainedDog will implement | |
| (defprotocol Talker | |
| (bark [_]) | |
| (speak [_]) |
| diff --git a/client/app/bundles/app/startup/ClientApp.jsx b/client/app/bundles/app/startup/ClientApp.jsx | |
| index f8cb40c..0d0cc1e 100644 | |
| --- a/client/app/bundles/app/startup/ClientApp.jsx | |
| +++ b/client/app/bundles/app/startup/ClientApp.jsx | |
| @@ -1,6 +1,6 @@ | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| -import Router from 'react-router'; | |
| +import {Router} from 'react-router'; | |
| import { browserHistory, hashHistory } from 'react-router'; |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => { | |
| return [1, 2, 3]; |
| clamps": [ | |
| { | |
| "type": "acl", | |
| "ts": 1421571216000 | |
| }, | |
| { | |
| "type": "fail", | |
| "ts": 1421589087000 | |
| }, | |
| { |
| var RTCPeerConnection = null; | |
| var getUserMedia = null; | |
| var attachMediaStream = null; | |
| var reattachMediaStream = null; | |
| var webrtcDetectedBrowser = null; | |
| var webrtcDetectedVersion = null; | |
| function trace(text) { | |
| if (text[text.length - 1] === "\n") { | |
| text = text.substring(0, text.length - 1); |
Welcome!
For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.
Starring this gist will give me an idea of how many people consider this list useful.