This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stability ratings: 0-5 | |
0 - Deprecated. This feature is known to be problematic, and changes are | |
planned. Do not rely on it. Use of the feature may cause warnings. Backwards | |
compatibility should not be expected. | |
1 - Experimental. This feature was introduced recently, and may change | |
or be removed in future versions. Please try it out and provide feedback. | |
If it addresses a use-case that is important to you, tell the node core team. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ac_add_options --enable-debug | |
ac_add_options --enable-dmd | |
# NB: ccache disabled for comparitive build time testing. | |
#ac_add_options --with-ccache=/usr/bin/ccache | |
MOZ_MAKE_FLAGS="-j12" | |
export LD="/usr/bin/gold" | |
# For gcc-6.3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# From http://stackoverflow.com/questions/352098/how-to-pretty-print-json-script | |
# To install paste this into a file named prettyjson that lives in your PATH | |
# e.g. | |
# sudo touch /usr/bin/prettyjson | |
# sudo open -t /usr/bin/prettyjson | |
# paste this file and save | |
# sudo chmod +x /usr/bin/prettyjson | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
""" | |
Prints data from zmq PULL socket to stdout | |
""" | |
import zmq | |
import sys | |
def get_socket(host, port): | |
context = zmq.Context() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package protocol | |
import ( | |
"fmt" | |
"log" | |
) | |
// pubsub | |
type Broker struct { | |
Send map[string]*chan *Message |
$ ssh -A vm
$ git config --global url."[email protected]:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "[email protected]:"]
insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SmartButton extends HTMLButtonElement { | |
constructor() {} | |
} | |
let sb = new SmartButton(); | |
document.body.appendChild(sb); | |
/* | |
I get the below error: | |
TypeError: Failed to execute 'appendChild' |