I hereby claim:
- I am ghandic on github.
- I am ghandic (https://keybase.io/ghandic) on keybase.
- I have a public key ASDbdBfxeu8VOoUIB6o2bf6aqRQW2wgegm6F55WEQk3vUwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from bs4 import BeautifulSoup | |
from datetime import datetime | |
def get_most_recent_git_change_for_file(url): | |
""" | |
Parameters: | |
---------- | |
url: str, the url to where the github file is stored | |
import numpy as np | |
import pandas as pd | |
from faker import Factory | |
from multiprocessing import Pool, cpu_count | |
faker = Factory.create() | |
def create_fake_data(data): | |
data['full name'] = data['id'].map(lambda _:faker.name()) | |
data['date of birth'] = data['id'].map(lambda _:faker.date_between('-100y', 'now')) |
// Simply run this executable with the file url inside github and it will find the most recent blame on the file | |
// Env: | |
// docker run -it golang:1.8 | |
// Install: | |
// mkdir -p $GOPATH/src/github.com/user/latest_blame | |
// curl https://gist.githubusercontent.com/ghandic/dcfd6ac55cdc1a20e1bd12f3e7429f88/raw/latest_blame.go > $GOPATH/src/github.com/user/latest_blame/latest_blame.go | |
// go get github.com/anaskhan96/soup | |
// go install github.com/user/latest_blame | |
// Use: | |
// latest_blame --url https://github.com/ghandic/confluenceapi/blob/master/README.md |
docker rmi -f $(docker images -f "dangling=true" -q) |
hi -v '?' | awk '{print $1}' | xargs -I{} say -v {} Hello my name is {} |
import plistlib | |
import glob | |
import json | |
import os | |
app_urls=[] | |
for app in glob.glob('/Applications/*.app'): | |
urls=[] | |
for pl in glob.glob(os.path.join(app, 'contents/Info.plist')): | |
try: |
FAST_CALLS_N=200 | |
FAST_CALLS_URL=http://0.0.0.0:8686/api/v1/scores | |
seq $FAST_CALLS_N | xargs -Iz curl -X GET $FAST_CALLS_URL |
targetBuddyPhone='+44765979706' | |
targetMessage='This is a automated message' | |
osascript <<EOF | |
tell application "Messages" | |
set targetService to 1st service whose service type = iMessage | |
set targetBuddy to buddy "$targetBuddyPhone" of targetService | |
send "$targetMessage" to targetBuddy | |
end tell | |
EOF |
import imageio | |
from typing import NamedTuple | |
import cv2 | |
import numpy as np | |
LabeledGIFState = NamedTuple('LabeledGIFState', [('image', np.ndarray), ('label', str)]) | |
class GifSettings(object): | |
red = [255, 0, 0] |