1) Create branch
- master branch的任何一個commit都要是可以發佈的正式版本。
- branch命名盡量口語化以敘述句為主。(ex. account-auth, frontend-page, backend-add-post)
2) Add commits
- 描述修正、增加/更改功能使用祈使句,如:fix, add/change。
1) Create branch
2) Add commits
// ==UserScript== | |
// @name Workflowy markdown tags with images -> images | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://workflowy.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
<!-- HEAD SECTION --> | |
<!-- IE Edge Meta Tag --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!-- Viewport --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gitlfsserver | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
############################################## | |
## Example 1 - play a note | |
play 60 | |
############################################## | |
## Example 2 - play 4 random notes | |
4.times do | |
play rrand_i(60, 90) | |
sleep 0.5 |
I was curious about making retro gaming sounds using Sonic Pi. A couple of months and a lot of Googling later, here's the original Mario Bros theme as it was heard on the NES console.
I'm (just about) old enough to remember rushing home from school to play this game at Philip Boucher's house, sitting cross-legged in front of the TV till my feet got pins and needles. Working out how to recreate it for Sonic Pi was a lot of fun!
#Tomtom rhythms found on wikipedia https://en.wikipedia.org/wiki/Rhythm_in_Sub-Saharan_Africa#/media/File:Standard_pattern,_six_beats.png | |
#form the basis of this piece coded for Sonic PI by Robin Newman, December 2017 | |
l1=(ring 1,0,1,0,1,0,1,0,1,0,1,0) | |
l2=(ring 0,1,0,1,0,1,0,1,0,1,0,1) | |
l3=(ring 0,1,0,0,1,1,0,1,0,1,0,1) | |
l4=(ring 1,0,1,0,1,1,0,1,0,1,0,1) | |
l=(ring l1,l2,l3,l4) | |
set :kill,0 #initialise kill flag |
live_loop :m do | |
sleep 1 | |
end | |
live_loop :a do | |
sync :m | |
sample :ambi_dark_woosh | |
sleep 4 | |
end |