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 me.comexpert.fish; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.util.Random; | |
/** |
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
public class Math { | |
int[] stack=new int[1024]; | |
{ | |
stack[0]=1; | |
stack[1]=1; | |
} | |
int pointer=2; | |
public Math(String[] args) { | |
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
using System; | |
namespace Math | |
{ | |
public class Math | |
{ | |
int[] stack=new int[1024]; | |
int pointer=2; | |
public Math () |
This file has been truncated, but you can view the full file.
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
1+1+1+1 = 4 | |
1+1+1+5 = 8 | |
1+1+1+9 = 12 | |
1+1+1+13 = 16 | |
1+1+1+17 = 20 | |
1+1+1+21 = 24 | |
1+1+1+25 = 28 | |
1+1+2+4 = 8 | |
1+1+2+8 = 12 | |
1+1+2+12 = 16 |
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
# Custom class for errorcodes | |
class ERR | |
def self.ERR; -1 end | |
def self.OK; 0 end | |
def self.EXIT; 1 end | |
def self.UNKNOWN; 2 end | |
def self.EMPTY_STACK; 3 end | |
def self.get x | |
case x |
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
# Custom class for errorcodes | |
class ERR | |
def self.ERR; -1 end | |
def self.OK; 0 end | |
def self.EXIT; 1 end | |
def self.UNKNOWN; 2 end | |
def self.EMPTY_STACK; 3 end | |
def self.get x | |
case x |
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
cd git | |
git clone [email protected]:C-Bouthoorn/SpeedProgramming.git | |
cd .. | |
mkdir lighttpd | |
cp ./git/SpeedProgramming/lighttpd/* . |
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
;; ---- HELP ---- | |
;; rax [64x] CPU cache — temporary register. `syscal` uses this | |
;; rdi [64x] CPU cache — 1st argument. | |
;; rsi [64x] CPU cache — 2nd argument. | |
;; rdx [64x] CPU cache — 3rd argument. | |
;; syscall [all] Call a system function. ID gotten from `rax` | |
;; - See: https://github.com/torvalds/linux/blob/097f70b3c4d84ffccca15195bdfde3a37c0a7c0f/include/linux/syscalls.h |
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
;; ---- HELP ---- | |
;; Important functions: | |
;; syscall Call a system function. ID from `rax`, output to `rax` | |
;; - See: https://github.com/torvalds/linux/blob/097f70b3c4d84ffccca15195bdfde3a37c0a7c0f/include/linux/syscalls.h | |
;; - See: http://blog.rchapman.org/post/36801038863/linux-system-call-table-for-x86-64 | |
;; | |
;; - Examples: | |
;; * 0 sys_read: Read a value |
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 | |
latest=`curl -i "https://github.com/atom/atom/releases/latest" 2>/dev/null | grep "Location: " | cut -d' ' -f2 ` | |
downloadurl=`echo -n "$latest" | sed 's/tag/download/g' | sed 's/$/\/atom-amd64.deb/g' | tr -d '\r'` | |
version=`echo "$latest" | grep -Eo "v([0-9]+\.){1,}([0-9]+)"` | |
# Check if file exists | |
if [ -e .atom-version ]; then | |
curver=`cat .atom-version` | |
else |
OlderNewer