- Update HISTORY.rst
- Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
struct Value { | |
let num: Int | |
init(_ n: Int) { num = n } | |
} | |
let a = [Value(3), Value(2), Value(1), Value(4), Value(5)] | |
let min1: Value = a.reduce(Value(Int.max)) { | |
($0.num < $1.num) ? $0 : $1 |
import Foundation | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely() | |
/** | |
* Paste all the code from the following file | |
- https://github.com/lingoer/SwiftyJSON/blob/master/SwiftyJSON/SwiftyJSON.swift | |
**/ |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
import os | |
def filterAlpha(a): | |
return a.isalpha() | |
def generate(size) : | |
# files = ['desolation-row.txt', 'english.txt', 'storm-of-swords.txt', 'communist-manifesto.txt'] | |
f = open('english.txt', 'r') | |
o = open('english'+str(size)+'.txt', 'w') | |
lines = f.readlines() |