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 ( | |
"bytes" | |
"fmt" | |
) | |
func main() { | |
var buffer bytes.Buffer |
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
@api.model | |
def create(self, vals): | |
if vals: | |
vals.update({ | |
'seq_id': self.env['ir.sequence'].get('seq.obj.name') | |
}) | |
return super(PurchaseOrder, self).create(vals) |
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
x<-rnorm(1000) | |
hx<-hist(x,breaks=100,plot=FALSE) | |
plot(hx,col=ifelse(abs(hx$breaks) < 1.669,4,2)) |
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
# MOV | |
MOV UP DOWN | |
MOV UP ACC | |
MOV UP LEFT | |
MOV UP RIGHT | |
MOV LEFT ACC | |
MOV RIGHT DOWN | |
MOV LEFT RIGHT | |
... |
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
# Show groupsets | |
gcloud alpha genomics readgroupsets list 10473108253681171589 | |
# Read genome | |
gcloud alpha genomics reads list "CMvnhpKTFhDQhvHLiNGqic0B" | |
# Example web https://gabrowse.appspot.com |
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
#Copy in your .bashrc | |
export WORKON_HOME=$HOME/.virtualenvs | |
cd_venv(){ | |
builtin cd "$@" | |
if [ -e .venv ]; then | |
. .venv | |
else | |
SEARCHING_VENV=$(basename "$PWD") | |
DEST_VENV=$WORKON_HOME/$SEARCHING_VENV |
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
#copy in your .bashrc | |
curl -s wttr.in/madrid > wttr ; head -n 7 wttr; rm wttr |
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
DATE=`date +%Y_%m_%d_%H_%M_%S` | |
wget http://myodooserver.com:8069/web/database/backup --post-data='token=1&backup_db=myodooserver_com&backup_format=zip&backup_pwd=welcome' -O backup$DATE.zip |
NewerOlder