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
#include <stdio.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <errno.h> | |
typedef struct pair{ | |
int alpha; | |
int beta; |
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
#!/usr/bin/env python3 | |
import abc | |
import math | |
import random | |
class Point(metaclass=abc.ABCMeta): | |
def __init__(self, coordinate): | |
if not isinstance(coordinate, float) and not isinstance( |
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
x1 | x2 | y | |
---|---|---|---|
0 | 0 | 0 | |
0 | 0 | 0 | |
0 | 0 | 1 | |
0 | 0 | 1 | |
0 | 0 | 1 | |
0 | 0 | 1 | |
0 | 0 | 1 | |
0 | 0 | 1 | |
0 | 0 | 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
all: | |
./id3.py data.csv | |
graph: | |
./graph.py data.csv |
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
#!/usr/bin/python | |
import subprocess | |
# decode_hashcode into even blocks such that the | |
# the sum of those are the final hash code | |
def decode_hashcode(hashcode, iterations): | |
decoded = [] | |
if hashcode % iterations == 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
#!/bin/sh | |
echo -e '\033]0;'YouTube MP3 Downloade'\007' | |
clear | |
echo Enter the number of threads: | |
read threads | |
echo Enter the link of the playlist you want to download: | |
read link | |
number=$(youtube-dl -s -f -1 $link | grep -Po '(?<=1 of ).*') | |
for ((i=0; i<$threads; i++)) | |
do |
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
#!/bin/bash | |
# DEFAULTS | |
BRANCH=master | |
BUILDWIN=true | |
BUILDUNIX=true | |
while [[ $# > 0 ]] | |
do | |
key="$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
# It will omit the DWARF symbol table during the build process. | |
go build -o gobin -ldflags=-w | |
# The -s ldflag will omit the symbol table and debugging information when building your executable. | |
go build -o gobin -ldflags=-s | |
# Compress bin with UPX | |
upx gobin |
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" | |
"io" | |
"net" | |
"os" | |
) | |
const ( |
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
all: | |
nasm -f elf64 foo.asm -o foo.o | |
ld -o foo foo.o |
NewerOlder