I hereby claim:
- I am davidejones on github.
- I am davidejones (https://keybase.io/davidejones) on keybase.
- I have a public key ASB7TaUT5tnmGBniXy4NUfPeXwScYoJMjbXKt2GcpVNIJAo
To claim this, I am signing this object:
#!/bin/bash | |
BUCKET="my-bucket" | |
KEY="/foo/bar/baz.xml" | |
FILENAME=$(basename $KEY) | |
# | |
# { | |
# “ContentType”: “text/xml; charset=utf-8", | |
# “CacheControl”: “public, must-revalidate, proxy-revalidate, max-age=0", |
import argparse | |
from pprint import pprint | |
import requests | |
import pathlib | |
session = requests.Session() | |
def get_resources(options): |
import argparse | |
import hashlib | |
import logging | |
import tempfile | |
import boto3 | |
def md5(file_handle, block_size=4096): | |
""" |
I hereby claim:
To claim this, I am signing this object:
Invisible Man | |
gs2v2 codes that i have made the only code i didnt make was flat and holes. just thought id post them | |
p.s find the (m) code ureself | |
Never show balance meters | |
FEAE3986 BCA99B83 | |
Always show balance meters | |
FEAE399E BCA99B83 |
package main | |
import ( | |
"fmt" | |
"log" | |
"gopkg.in/yaml.v2" | |
) | |
var data = ` |
from cgi import FieldStorage | |
from io import BytesIO | |
def parse_into_field_storage(fp, ctype, clength): | |
fs = FieldStorage( | |
fp=fp, | |
environ={'REQUEST_METHOD': 'POST'}, | |
headers={ | |
'content-type': ctype, |
// Flattening | |
let arrays = [[1, 2, 3], [4, 5], [6]]; | |
const data = arrays.reduce((acc, item) => acc.concat(item)); | |
console.log(data); | |
// Your own loop | |
// Everything | |
// Dominant writing direction |
const range = (start, end, step=1) => { | |
const data = []; | |
for(let i=start; i <= end; i=i+step) { | |
data.push(i); | |
} | |
return data; | |
}; | |
console.log(range(3,6)); | |
console.log(range(1,100,10)); |