sudo apt-get install python3-pip
sudo pip3 install virtualenv
const bip39 = require("bip39"); | |
const bip32 = require("ripple-bip32"); | |
const ripple = require('ripplelib') | |
const sign = require('ripple-sign-keypairs') | |
var mnemonic = 'novel matter final only nice cheese address cradle civil crash great flame struggle consider crowd surface purpose saddle mango endless mixed trial tape wrap' | |
// Or generate: | |
// mnemonic = bip39.generateMnemonic() | |
console.log('mnemonic: ' + mnemonic) |
# Get YouTube ID from various YouTube URL | |
# Ruby port from JavaScript version: https://gist.github.com/takien/4077195/ | |
def get_youtube_id(url) | |
id = '' | |
url = url.gsub(/(>|<)/i,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/) | |
if url[2] != nil | |
id = url[2].split(/[^0-9a-z_\-]/i) | |
id = id[0]; | |
else |
class VideoEmbedUrlGenerator | |
REGEX_ID = %r{(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/|vimeo\.com\/)([a-zA-Z0-9_-]{8,11})}.freeze | |
REGEX_PROVIDER = /(youtube|youtu\.be|vimeo)/.freeze | |
def initialize(url) | |
@url = url | |
end | |
def construct_iframe | |
'<iframe '\ |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
brew cask install ngrok
The easiest way to use ngrok to tunnel into your localhost is if your local project is running on a specific port (e.g. not using named vhosts). You just run ngrok http [port number]
.
You can quickly boot up a local webserver using ruby. cd
into the project's root directory and run ruby -run -e httpd . -p [port number]
.
for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。
/Applications/Beyond Compare.app/Contents/MacOS
BCompare
to BCompare.bak
BCompare
, and chmod a+u BCompare
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@