I hereby claim:
- I am ecabuk on github.
- I am ecabuk (https://keybase.io/ecabuk) on keybase.
- I have a public key whose fingerprint is 7EBF 2BBA 347B 7464 4901 57A7 B44E F10E 14CD 343D
To claim this, I am signing this object:
class Node: | |
freq = None | |
left = None | |
right = None | |
letter = None | |
def __init__(self, freq, left=None, right=None, letter=None): | |
self.freq = freq | |
self.left = left | |
self.right = right |
//Sample using LiquidCrystal library | |
#include <LiquidCrystal.h> | |
/******************************************************* | |
This program will test the LCD panel and the buttons | |
Mark Bramwell, July 2010 | |
********************************************************/ |
I hereby claim:
To claim this, I am signing this object:
const $ = require('jquery'), | |
_ = require('lodash'), | |
ReactDOM = require('react-dom'); | |
/** | |
* jQueryUI Tooltip Mixin Helper | |
*/ | |
export default { | |
//tooltipOptions: { | |
// "input[title]": { |
### Add / Update a key-value pair in the URL query parameters ### | |
updateUrlParameter = (uri, key, value)-> | |
# Remove the hash part before operating on the uri | |
i = uri.indexOf('#') | |
hash = if i == -1 then '' else uri.substr(i) | |
uri = if i == -1 then uri else uri.substr(0, i) | |
re = new RegExp("([?&])" + key + "=.*?(&|$)", "i") | |
separator = if uri.indexOf('?') != -1 then "&" else "?" | |
if uri.match(re) |
Use the following command to install unrar:
sudo install -c -o $USER unrar /bin
$USER is a default environment variable in the bash shell which contains your username.
Sudo requires you to enter your user password. It’s the same password you use when you log in to Mac OS X. To install rar you can use the same command:
sudo install -c -o $USER rar /bin
Do a test-run to see if the installation went properly. In your terminal now enter from any location you want:
// similar behavior as an HTTP redirect | |
window.location.replace("http://stackoverflow.com"); | |
// similar behavior as clicking on a link | |
window.location.href = "http://stackoverflow.com"; | |
//http://stackoverflow.com/a/506004/629760 |