Skip to content

Instantly share code, notes, and snippets.

View awarrenlove's full-sized avatar

Andrew Warren-Love awarrenlove

View GitHub Profile
@awarrenlove
awarrenlove / quartzy-example.py
Created August 1, 2022 17:42
Quartzy API example in Python
from getpass import getpass
import requests
headers = {
"Access-Token": getpass("Access Token --> ")
}
params = {
"page": 1
}

Keybase proof

I hereby claim:

  • I am awarrenlove on github.
  • I am awarrenlove (https://keybase.io/awarrenlove) on keybase.
  • I have a public key ASDJDmbCyyjBcQ6_V7tkSE7Kg7HeZHGA0qHo8gARatA3NQo

To claim this, I am signing this object:

@awarrenlove
awarrenlove / array_map_keys.php
Created June 29, 2018 15:32
PHP array_map_keys
<?php
function array_map_keys(
Closure $keys,
Closure $values,
array $array
): array {
$output = [];
foreach ($array as $value) {
@awarrenlove
awarrenlove / gist:b326edde1acf56a2cb0ddcba8a12c019
Created July 25, 2017 15:26
Bash Function to Create Directory and Switch Immediately
echo 'function mkcd() { mkdir -p $1; cd $1; }' >> ~/.profile && source ~/.profile
@awarrenlove
awarrenlove / python_attr.py
Created October 27, 2015 18:34
Python Attribute with Space
import sys
module = sys.modules[__name__]
setattr(module, 'this has a space', 'just_a_value')
#This raises a SyntaxError
#print(module.this has a space)
#This works as expected and writes 'just_a_value'