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 refdiff.examples; | |
import java.io.File; | |
import refdiff.core.RefDiff; | |
import refdiff.core.diff.CstDiff; | |
import refdiff.core.diff.Relationship; | |
import refdiff.parsers.go.GoPlugin; | |
public class RefDiffExampleGo { |
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
class Binance: | |
def __init__(self, key, secret, test=False): | |
self.exchange = ccxt.binance({ | |
'apiKey': key, | |
'secret': secret, | |
'enableRateLimit': True, | |
}) | |
self.test = test | |
def buy(self, symbol, amount): |
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" | |
"net/http" | |
"net/http/httputil" | |
"net/url" | |
) | |
func main() { |
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
id.cifraclub.com.br { | |
log stdout | |
# Mkcert - https://github.com/FiloSottile/mkcert | |
tls ./yourwebsite.com.br.pem ./yourwebsite.com.br-key.pem | |
proxy / https://yourwebsite.com { | |
transparent | |
header_upstream X-Marotagem true | |
header_upstream Host "yourwebsite.com.br" | |
} |
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
"terminal.integrated.fontFamily": "Source Code Pro for Powerline", | |
"git.autofetch": false, | |
"go.formatTool": "goimports", | |
"go.lintOnSave": "off", | |
"go.gotoSymbol.includeImports": true, | |
"go.docsTool": "gogetdoc", | |
"go.useLanguageServer": true, | |
"go.gocodeAutoBuild": true, | |
"go.buildOnSave": "package", | |
"go.useCodeSnippetsOnFunctionSuggest": true, |
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 | |
ROOT_DIR=/var/www/project | |
GIT_WORK_TREE=$ROOT_DIR git checkout -f | |
cd $ROOT_DIR | |
./post-receive |
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
inFile, _ := os.Open(path) | |
defer inFile.Close() | |
scanner := bufio.NewScanner(inFile) | |
scanner.Split(bufio.ScanLines) | |
for scanner.Scan() { | |
line := fscanner.Text() | |
} |
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
# List of files filtered by other file | |
git ls-files | grep -Fv -f ignore.txt |
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
version: '3.1' | |
services: | |
mysql: | |
image: mysql:5.7 | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
depends_on: |
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
query { | |
repository(owner: "rodrigo-brito", name: "json-to-go-map"){ | |
ref(qualifiedName: "master") { | |
target { | |
... on Commit { | |
id | |
history(first: 10, since: "2017-09-10T20:58:37.000-03:00") { | |
edges { | |
node { | |
messageHeadline |
NewerOlder