This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"math/cmplx" | |
) | |
func Cbrt(x complex128) complex128 { | |
z := complex128(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := 1.0 | |
for i := 1; i <= 10; i++ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $HOME | |
git clone git@github.com:satyrius/dotfiles.git .dotfiles | |
cd .dotfiles | |
for f in $(ls); do df="../.$f"; rm $df; ln -s "$(pwd)/$f" $df; done; | |
cd $HOME | |
rm .README.dm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install python --framework | |
mkdir ~/Library/Frameworks/ | |
cd ~/Library/Frameworks/ | |
ln -s /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework . | |
brew install -v https://gist.github.com/satyrius/1635076/raw/vim.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for v in $(xargs --null --max-args=1 < /proc/1/environ); do export $v; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
docker ps -a -q | xargs docker rm | |
docker images | grep '^<none>' | awk '{print $3}' | xargs docker rmi |
NewerOlder