This file contains hidden or 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
| while [ 1 ]; do | |
| date=$(date "+%Y%m%dT%H%M%S") | |
| screencapture -x -R35,75,1366,768 ~/screenshots/"screen_${date}.png" | |
| read | |
| done |
This file contains hidden or 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 | |
| while true; do output=$(docker ps -a); clear; echo "$output"; sleep 1; done |
This file contains hidden or 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 | |
| // This code downloads all the PDF and audios from DW german course in the | |
| // following URL: http://rss.dw.com/xml/DKpodcast_audiotrainer_es | |
| import ( | |
| "fmt" | |
| rss "github.com/jteeuwen/go-pkg-rss" | |
| "github.com/kennygrant/sanitize" | |
| "github.com/yhat/scrape" |
This file contains hidden or 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
| //Reads a LDIF file and writes a tab-separated file with the given fields | |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "sort" | |
| "strings" |
This file contains hidden or 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
| //Creates a TCP server that echoes whatever it receives | |
| //In order to check it, you have to run this program, | |
| //connect via telnet to port 50000 and send some keystrokes | |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| ) |
This file contains hidden or 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" | |
| type motor struct { | |
| ruido string | |
| } | |
| func (m motor) hacerRuido() string { | |
| return fmt.Sprintf("Este motor hace: %s", m.ruido) |
This file contains hidden or 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" | |
| type motor struct { | |
| ruido string | |
| } | |
| func (n motor) hacerRuido() string { | |
| return fmt.Sprintf("Este motor hace: %s", n.ruido) |
This file contains hidden or 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" | |
| type motor struct { | |
| ruido string | |
| } | |
| func (n motor) hacerRuido() string { | |
| return fmt.Sprintf("Este motor hace: %s", n.ruido) |
This file contains hidden or 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" | |
| type empuñadura string | |
| func (e empuñadura) describe() string { | |
| return fmt.Sprintf("La empuñadura es de '%s'", e) | |
| } |
This file contains hidden or 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" | |
| type empuñadura string | |
| func (e empuñadura) describe() string { | |
| return fmt.Sprintf("La empuñadura es de '%s'", e) | |
| } |
NewerOlder