I hereby claim:
- I am aliasgwynplaine on github.
- I am gwynplaine (https://keybase.io/gwynplaine) on keybase.
- I have a public key ASAM2UU7lTSssX9W3t7-24sMTLj8PPF12ej0Qo_IgJDQLwo
To claim this, I am signing this object:
| /* | |
| * buf is meant to be initialized with | |
| * size at most sz. There are some things | |
| * you may want to change before using | |
| * this. | |
| */ | |
| char * getstr(char * buf, size_t sz) { | |
| char * p; | |
| char c; | |
| p = fgets(buf, sz, stdin); |
| #!/bin/bash | |
| for file in *; do | |
| if [ -f "$file" ]; then | |
| filename=$(md5sum $file | cut -f 1 -d ' ') | |
| mv $file $filename | |
| echo $file >> $filename.names | |
| fi | |
| done |
| #!/bin/bash | |
| if [ $# -lt 2 ]; then | |
| echo "No args passed" | |
| echo "-s <src-folder>" | |
| exit 1 | |
| fi | |
| while getopts s:d: flag | |
| do |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| trap ctrl_c INT | |
| function ctrl_c () { | |
| echo -e "\n\n[*] Exiting...\n" | |
| exit | |
| } | |
| for i in $(seq 1 255); do |
| #ifndef _DEBUG_H | |
| #define _DEBUG_H | |
| #ifdef _DEBUG | |
| #define debug(fmt, args...) \ | |
| do { \ | |
| printf("%s %s %d: " fmt "\n", __FILE__, __FUNCTION__, __LINE__, ## args); \ | |
| } while (0) |
| # -*- coding: utf-8 -*- | |
| import sys | |
| def check(queen, n, i) : | |
| for f in range(len(queen)) : | |
| if f == n or queen[f] == i: | |
| return False | |
| if f - queen[f] == n - i : | |
| return False | |
| if f + queen[f] == i + n: |
| # -*- coding: utf-8 -*- | |
| import matplotlib.pyplot as plt | |
| from random import random | |
| from time import time | |
| class Node : | |
| def __init__(self, val, nxt=None) : | |
| self.value = val | |
| self.next = nxt |
| # -*- coding: utf-8 -*- | |
| import requests | |
| import threading | |
| import sys | |
| import json | |
| from queue import Queue | |
| from time import time | |
| target_url = '' # Must include get parameter for the original case. |