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
import requests | |
import string | |
url = 'http://x.com/' | |
endpoints = string.ascii_lowercase + string.ascii_uppercase | |
for e in endpoints: | |
new_url = url + e | |
r = requests.post(new_url) | |
print('{}\t{}({})'.format(new_url, r.text, r.status_code)) |
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
<html> | |
<div id="chart"></div> | |
<script> | |
data = [ | |
{month: 1, lemons: 12, limes: 23}, | |
{month: 2, lemons: 58, limes: 8} | |
]; | |
var svgWidth = 400; | |
var svgHeight = 400; |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<div id="chart"></div> | |
<script> | |
const url = 'https://gist.githubusercontent.com/mbostock/5429c74d6aba68c52c7b39642c98deed/raw/50a5157a1d920191b0a7f636796ee721047cbb92/us-population-state-age.csv'; | |
const colors = ['#CACF85', '#8CBA80', '#658E9C', '#4D5382', '#514663', '#828C51', '#335145', '#071E22', '#1D7874']; | |
const svgHeight = 400; | |
const svgWidth = 1080; |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<div id="graph"></div> | |
<script> | |
var prices = [{'Date': '1993-01-29', 'AdjClose': '27.357281'}, {'Date': '1993-02-01', 'AdjClose': '27.551851'}, {'Date': '1993-02-02', 'AdjClose': '27.610189'}, {'Date': '1993-02-03', 'AdjClose': '27.902090'}, {'Date': '1993-02-04', 'AdjClose': '28.018848'}, {'Date': '1993-02-05', 'AdjClose': '27.999353'}, {'Date': '1993-02-08', 'AdjClose': '27.999353'}, {'Date': '1993-02-09', 'AdjClose': '27.804783'}, {'Date': '1993-02-10', 'AdjClose': '27.843691'}, {'Date': '1993-02-11', 'AdjClose': '27.979933'}, {'Date': '1993-02-12', 'AdjClose': '27.765852'}, {'Date': '1993-02-16', 'AdjClose': '27.065388'}, {'Date': '1993-02-17', 'AdjClose': '27.045967'}, {'Date': '1993-02-18', 'AdjClose': '27.026466'}, {'Date': '1993-02-19', 'AdjClose': '27.123787'}, {'Date': '1993-02-22', 'AdjClose': '27.221056'}, {'Date': '1993-02-23', 'AdjClose': '27.201637'}, {'Date': '1993-02-24', 'AdjClose': '27.551851'}, {'Date': '1993-02-25', 'AdjClo |
I hereby claim:
- I am matts80 on github.
- I am mattselph (https://keybase.io/mattselph) on keybase.
- I have a public key whose fingerprint is 02C5 E943 F8F6 DF6D 8207 0265 EA43 E31C 6AD5 92B2
To claim this, I am signing this object:
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
Date Open High Low Close Adj Close Volume | |
1993-01-29 43.9687 43.9687 43.75 43.9375 27.357281 1003200 | |
1993-02-01 43.9687 44.25 43.9687 44.25 27.551851 480500 | |
1993-02-02 44.2187 44.375 44.125 44.3437 27.610189 201300 | |
1993-02-03 44.4062 44.8437 44.375 44.8125 27.90209 529400 | |
1993-02-04 44.9687 45.0937 44.4687 45 28.018848 531500 | |
1993-02-05 44.9687 45.0625 44.7187 44.9687 27.999353 492100 | |
1993-02-08 44.9687 45.125 44.9062 44.9687 27.999353 596100 | |
1993-02-09 44.8125 44.8125 44.5625 44.6562 27.804783 122100 | |
1993-02-10 44.6562 44.75 44.5312 44.7187 27.843691 379600 |
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" | |
func partition(n []int) int { | |
low := 0 | |
tail := low - 1 | |
high := len(n) - 1 |
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" | |
"os" | |
"strconv" | |
) | |
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
import sys | |
from pathlib import Path | |
from os.path import getsize | |
if __name__ == '__main__': | |
paths = sys.argv[1:] | |
for path in paths: | |
sizes = {} |
NewerOlder