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
#!/usr/bin/env bash | |
# instq.sh | |
# Utility for querying and manipulating Zerodha instruments file | |
# Usage | |
# ----- | |
# | |
# Requirements: | |
# 1. Install jq |
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
import tweepy | |
import os | |
import logging | |
import re | |
def create_api(): | |
consumer_key = os.getenv("CONSUMER_KEY") | |
consumer_secret = os.getenv("CONSUMER_SECRET") | |
access_token = os.getenv("ACCESS_TOKEN") | |
access_token_secret = os.getenv("ACCESS_SECRET") |
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 ( | |
"encoding/json" | |
"strings" | |
"testing" | |
"github.com/stretchr/testify/require" | |
) |
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
live_loop :beat do | |
sample :bd_haus, rate: 1 | |
sleep 0.25 | |
sync :melody | |
end | |
notes = [] | |
delays = [] | |
notes = [:G4, :G4, :D5, :C5, :As4, :A4, :A4, :C5, :As4, :A4] |
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" | |
"testing" | |
"github.com/Knetic/govaluate" | |
"github.com/google/cel-go/cel" | |
"github.com/google/cel-go/checker/decls" | |
"github.com/google/cel-go/common/types" |
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 ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"strconv" | |
"github.com/rhnvrm/lyric-api-go" |
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" | |
"github.com/tinylib/msgp/msgp" | |
) | |
//go:generate msgp |
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
from numpy import random | |
import logging | |
import datetime | |
import os | |
from functools import reduce | |
import os | |
import multiprocessing | |
import tqdm |
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
echo '{ | |
"authors": [ | |
"PHID-USER-jbsqsep23tcxn5l3ob3y" | |
],"status":"status-open" | |
}' | arc call-conduit differential.query | \ | |
python3 -c "import sys, json; | |
r = json.load(sys.stdin)['response']; | |
l = [(x['uri'], x['statusName'], x['title']) for x in r]; | |
display = \"{}\t{}\t{}\" | |
print(\"My Open Diffs:\") |
NewerOlder