- Add this file to
/path/to/prefs/filetypes/ - Restart IDE
This page will help you find the correct directory.
| import './mixins'; | |
| import stampit from 'stampit'; | |
| import is from 'check-more-types'; | |
| import {camelCase, forEach, mapValues, assign} from 'lodash'; | |
| const checks = [ | |
| is.stamp, | |
| is.array, | |
| is.map, | |
| is.weakMap, |
/path/to/prefs/filetypes/This page will help you find the correct directory.
| compare("map/filter/reduce", function() { | |
| var arr = [{ | |
| foo: true, | |
| bar: 'a' | |
| }, { | |
| foo: false, | |
| bar: 'b' | |
| }, { | |
| foo: false, | |
| bar: 'c' |
| server { | |
| listen 80; | |
| server_name your_server_name; | |
| access_log /var/log/nginx/access.log; | |
| location / { | |
| proxy_pass http://localhost:1880; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; |
This is a note to myself about what I need to do to setup a Raspbian box.
pi and pw is raspberry. osmc/osmc if OSMC.apt-get updateapt-get dist-upgrade -yapt-get install nfs-kernel-server openvpn software-properties-common vim git dnsutils -ysoftware-properties-common for adding PPAsapt-key adv --keyserver keyserver.ubuntu.com --recv-keys 249AD24Capt-add-repository because the Deluge PPA only has Ubuntu builds| { | |
| "extends": "semistandard", | |
| "parser": "babel-eslint", | |
| "plugins": [ | |
| "lodash3", | |
| "no-class", | |
| "mocha-only", | |
| "prototype-chain" | |
| ], | |
| "rules": { |
| function encodeuri { | |
| local string="${@}" | |
| local strlen=${#string} | |
| local encoded="" | |
| for (( pos = 0; pos < strlen; pos ++ )); do | |
| c=${string:$pos:1} | |
| case "$c" in | |
| [-_.~a-zA-Z0-9]) o="${c}" ;; | |
| *) printf -v o '%%%02x' "'$c" |
| temp = {} | |
| function getTemp(pin, addr) | |
| return function(callback) | |
| ow.reset(pin) | |
| ow.select(pin, addr) | |
| ow.write(pin, 0x44, 1) | |
| local data | |
| tmr.alarm(5, 1000, 0, function() | |
| ow.reset(pin) |
| 'use strict'; | |
| var minimatch = require('minimatch'), | |
| transformify = require('transformify'), | |
| through2 = require('through2'); | |
| var tx = transformify(stubber); | |
| function stubber() { | |
| return 'module.exports = function() {};'; |