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 | |
curl -O https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/1978/1978-06-\[19-30\].gif; | |
curl -O https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/1978/1978-\[07-12\]-\[01-31\].gif; | |
for i in {1979..2020} | |
do | |
curl -O https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/$i/$i-\[01-12\]-\[01-31\].gif | |
done |
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
Homebrew build logs for kde-mac/kde/kf5-solid on macOS 10.14.3 | |
Build date: 2019-03-15 11:14:01 |
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
#define STRING "/home/httpd/grades.txt" | |
#define STRLEN 22 | |
#define ARGV (STRLEN+1) | |
#define ENVP (ARGV+4) | |
.globl main | |
.type main, @function | |
main: |
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
POST /index.php?zone=cpzone#PORTAL_ACTION# HTTP/1.1 | |
Host: 10.2.0.1:8002 | |
Content-Type: application/x-www-form-urlencoded | |
Content-Length: 91 | |
auth_user=#########&auth_pass=UPRrp###&redirurl=http%3A%2F%2Fwww.uprrp.edu&accept=Continue |
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
def ksack(M1, s): | |
sack = [] | |
i = len(M1)-1 | |
j = len(M1[0])-1 | |
while (j != 0 and i >= 0): | |
if (j != M1[i][j][1] and j >= s[i]): | |
sack.append(i) | |
j = M1[i][j][1] | |
i -= 1 | |
else: |
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
def bsDo(v, s, i, j): | |
global M1 | |
if (i == 0 and j >= s[0]): | |
return v[0] | |
if (i == 0 and j < s[0]): | |
return 0 | |
if (j < s[i]): | |
return bsDo(v, s, i-1, j) | |
notstolen = bsDo(v, s, i-1, j) | |
stolen = bsDo(v, s, i-1, j-s[i]) + v[i] |
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
# Just sending around another array with the indexes | |
# and transforming it in the samw ways as the input | |
def mergesort(A,P): | |
n = len(A) | |
if n == 1: | |
return A,P | |
A1,P1 = mergesort(A[0:n//2],P[0:n//2]) | |
A2,P2 = mergesort(A[(n//2):],P[(n//2):]) | |
return merge(A1,A2,P1,P2) |
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
Homebrew build logs for opam on macOS 10.12.1 | |
Build date: 2016-10-25 23:34:49 |