docker rmi $(docker images -q -f dangling=true)
docker volume rm $(docker volume ls -qf dangling=true)
// 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 |
### 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) |
const $ = require('jquery'), | |
_ = require('lodash'), | |
ReactDOM = require('react-dom'); | |
/** | |
* jQueryUI Tooltip Mixin Helper | |
*/ | |
export default { | |
//tooltipOptions: { | |
// "input[title]": { |
I hereby claim:
To claim this, I am signing this object:
//Sample using LiquidCrystal library | |
#include <LiquidCrystal.h> | |
/******************************************************* | |
This program will test the LCD panel and the buttons | |
Mark Bramwell, July 2010 | |
********************************************************/ |
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 |
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: