Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
ResetParams(Manual= false) { | |
global | |
Small := 1 | |
Big := 10 | |
LastHeading := 0 | |
Heading := 0 | |
MaxHeading := 359 | |
LastRange := 0 | |
Range := 0 |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> |
# Thanks to Dark_Helmet | |
# http://www.linuxquestions.org/questions/linux-newbie-8/can-i-specify-an-exact-filename-in-%27locate%27-205840/#post1053288 | |
function flocate | |
{ | |
if [ $# -gt 1 ] ; then | |
display_divider=1 | |
else | |
display_divider=0 | |
fi |
var event = function(id, year, month) { | |
var zeroMonth = (function(month) { | |
var mo = "" + month; | |
return (mo.length < 2) ? "0" + mo : mo; | |
})(month), | |
randomDate = (function(from, to) { | |
var num = "" + Math.floor(Math.random() * (to - from + 1) + from); | |
return (num.length < 2) ? "0" + num : num; | |
})(1, 28), | |
dateString = "" + year + "-" + zeroMonth + "-" + randomDate + "T00:00:00Z"; |
#!/bin/bash | |
function beginIssuePull { | |
# Get info for pull request | |
echo "Please specify the following:\n" | |
read -e -p "GitHub username: " USERNAME | |
read -e -p "Issue number: " ISSUE | |
read -e -p "Fork branch name: " FORKBRANCH | |
read -e -p "Destination branch name (e.g. master): " DESTBRANCH | |
read -e -p "Destination repository (<original_user>/<repo_name>): " DESTREPO |