https://nvie.com/posts/a-successful-git-branching-model/
git checkout develop
git checkout -b new-feature
# PR to merge new-feature
https://nvie.com/posts/a-successful-git-branching-model/
git checkout develop
git checkout -b new-feature
# PR to merge new-feature
import { useState } from 'react'; | |
export function useCounter(initial = 0) { | |
const [count, setCount] = useState(initial); | |
return [count, () => setCount(count + 1)]; | |
} |
var AWS = require('aws-sdk'); | |
AWS.config.region = 'your aws region'; | |
AWS.config.update({ | |
accessKeyId: "your access id", | |
secretAccessKey: "your secret access key", | |
}); | |
var sns = new AWS.SNS(); | |
var params = { |
var AWS = require('aws-sdk'); | |
AWS.config.update({ | |
accessKeyId: '{AWS_KEY}', | |
secretAccessKey: '{AWS_SECRET}', | |
region: '{SNS_REGION}' | |
}); | |
var sns = new AWS.SNS(); |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
int equilibrium (int A[], int n){ | |
int sum = 0; | |
int solution = -1; | |
int leftSum = 0; | |
int rightSum = 0; | |
// Calculate the sum of all P in A | |
for (int i = 0; i < n; i++) | |
sum += A[i]; | |
// Try to find an equilibrium -> if yes return the first one | |
for (int i = 0; i < n; i++){ |
def fizzbuzz(fizz,buzz,fizzbuzz,counter) | |
if fizzbuzz == 15 | |
print("fizzbuzz ") | |
fizzbuzz = 0 | |
fizz = 0 | |
buzz = 0 | |
elsif fizz == 3 | |
print("fizz ") | |
fizz = 0 | |
elsif buzz == 5 |
准备: | |
libxml2 2.6.18 or above from http://www.xmlsoft.org/ | |
libxslt 1.1.x or above from http://www.xmlsoft.org/ | |
先查看当前系统中是否有安装libxml2,libxslt这两个库,如果没有请到下面的网站中去下载安装 | |
# sudo apt-get install libxml2-dev | |
# sudo apt-get install libxslt1-dev | |
由于安装pgAdmin3需要wxGTK,所以也要下载wxGTK | |
wxGTK 2.8.x from http://www.wxwidgets.org/ |