atom backup
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/sh | |
output=$(tmutil listlocalsnapshots /) | |
output_list=($output) | |
for x in "${output_list[@]:4}"; do | |
echo "Deleting $x" | |
sudo tmutil deletelocalsnapshots $(cut -d '.' -f 4 <<<"$x") | |
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
'.source.go': | |
'package': | |
'prefix': 'pack' | |
'body': 'package $1' | |
'return': | |
'prefix': 'ret' | |
'body': 'return $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
#!/usr/bin/env bash | |
/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron --force-gpu-rasterization |
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
#!/usr/bin/env bash | |
set -ex | |
# This script builds archiver for most common platforms. | |
export CGO_ENABLED=0 | |
cd cmd/archiver | |
GOOS=linux GOARCH=386 go build -o ../../builds/archiver_linux_386 | |
GOOS=linux GOARCH=amd64 go build -o ../../builds/archiver_linux_amd64 |
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
{ | |
"profiles": [ | |
{ | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": { | |
"application" : "right_option", | |
"left_option": "left_command", | |
"left_command": "left_option", | |
"right_command": "right_option", |
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/sh | |
# credo checks before commit | |
mix credo | |
CREDO_RES=$? | |
if [ $CREDO_RES -ne 0 ] | |
then | |
exit $CREDO_RES | |
fi |
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
/* | |
* This project is intended to be used as an acceptance test *and* a | |
* documentation example. If you change this file, please be sure that it | |
* renders appropriately in the generated documentation | |
*/ | |
buildscript { | |
repositories { jcenter() } | |
dependencies { | |
/* here to make sure that our dependencies get loaded in properly under |
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 models | |
type mockPersistor struct { | |
} | |
func NewMockPersistor() Persistance { | |
return mockPersistor{} | |
} | |
func (p mockPersistor) PersistAndFind(sn StrokeNear) ([]Stroke, error) { |
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 models | |
import ( | |
"fmt" | |
. "github.com/onsi/ginkgo" | |
. "github.com/onsi/gomega" | |
"gopkg.in/mgo.v2/bson" | |
) |
NewerOlder