Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| [General] | |
| loglevel = notify | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| # dns-server = 119.29.29.29,223.5.5.5,114.114.115.115 | |
| # external-controller-access = [email protected]:6155 | |
| # ipv6 = true | |
| // REMEMBER TO CHANGE THE external-controller-access' PASSWORD |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body.loading #splash { | |
| opacity: 1; | |
| } | |
| #splash { | |
| position: absolute; | |
| top: 0; |
| // ------------ | |
| // counterStore.js | |
| // ------------ | |
| import { | |
| INCREMENT_COUNTER, | |
| DECREMENT_COUNTER | |
| } from '../constants/ActionTypes'; | |
| const initialState = { counter: 0 }; |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| dir="." #Set the default temp dir | |
| tmpA1="$dir/spectrumhist_1_$$.png" | |
| tmpB1="$dir/spectrumhist_1_$$.cache" | |
| trap "rm -f $tmpA1 $tmpB1; exit 0" 0 #remove temp files | |
| trap "rm -f $tmpA1 $tmpB1; exit 1" 1 2 3 15 #remove temp files | |
| if [ $# -eq 2 ] | |
| then | |
| colors=$2 | |
| else | |
| colors=8 |
| import Data.Maybe | |
| import Data.Char (toLower) | |
| wds = zip "pvwdgazxubqfsnrhocitlkeymj" ['a'..'z'] | |
| translate x = case lookup x wds of | |
| Nothing -> x | |
| Just v -> v | |
| main = putStrLn (map translate "Wxgcg txgcg ui p ixgff, txgcg ui p epm. I gyhgwt mrl lig txg ixgff wrsspnd tr irfkg txui hcrvfgs, nre, hfgpig tcm liunz txg crt13 ra 'ixgff' tr gntgc ngyt fgkgf.") |
| #!/bin/bash | |
| cat all.json | | |
| # curl 'http://www.khanacademy.org/api/v1/videos/localized/all' | | |
| jq -r ' | |
| [ | |
| .[] | | |
| { | |
| title, | |
| en_id:.youtube_ids["en"], |