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
{ | |
"permissions": { | |
"allow": [ | |
"Bash(go build:*)", | |
"...", | |
"Bash(git checkout:*)", | |
"Bash(git branch:*)", | |
"Bash(git merge:*)", | |
"Bash(git commit:*)", | |
"Bash(git push:*)", |
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" | |
"strings" | |
) | |
func parseSpanishList(input string) []string { | |
input = strings.TrimSpace(input) | |
parts := strings.Split(input, " y ") |
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" | |
func fibonacci(n int) int { | |
f := make([]int, n+2) | |
f[0], f[1] = 0, 1 | |
for i := 2; i <= n; i++ { | |
f[i] = f[i-1] + f[i-2] | |
} |
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 | |
# exit on most errors | |
set -e | |
function to_fav() { | |
if [ $# -eq 0 ]; then | |
echo "Usage: to_fav <image_file>" | |
exit 1 | |
fi |