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 | |
# This has to be run from main | |
git checkout main | |
# Update our list of remotes | |
git fetch | |
git remote prune origin | |
# Remove local fully merged branches | |
git branch --merged main | grep -v 'main$' | xargs git branch -d |
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 fileinput | |
import collections | |
line_number = 0 | |
instructions = [] | |
labels = {} | |
opcodes = {"ADD": "0000", "INP": "0100", "PRINT": "0101", "STOP": "0110", | |
"LW": "1100", "SW": "1101", "BZ":"1001", ".word": ""} | |
registers = {"$t0": "0", "$t1": "1"} | |
post_address_set = collections.defaultdict(list) |
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
server = grpc.server( | |
futures.ThreadPoolExecutor(max_workers=10), | |
options=( | |
('grpc.keepalive_time_ms', 10000), | |
('grpc.keepalive_timeout_ms', 5000), | |
('grpc.keepalive_permit_without_calls', True), | |
('grpc.http2.max_pings_without_data', 0), | |
('grpc.http2.min_time_between_pings_ms', 10000), | |
('grpc.http2.min_ping_interval_without_data_ms', 5000), | |
) |
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
### Keybase proof | |
I hereby claim: | |
* I am xiamx on github. | |
* I am xiamx (https://keybase.io/xiamx) on keybase. | |
* I have a public key whose fingerprint is B166 3264 BF6A CB3F 3231 2585 D3A1 BDB2 C2D9 31EB | |
To claim this, I am signing this object: |
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
CC=gcc | |
CC_FLAGS=-g -O2 -c | |
OBJECTS=q1.o q2.o q3.o q4.o q5.o | |
all:$(OBJECTS) | |
$(CC) q1.o -lm -o q1 | |
$(CC) q2.o -lm -o q2 | |
$(CC) q3.o -lm -o q3 | |
$(CC) q4.o -lm -o q4 | |
$(CC) q5.o -lm -o q5 |
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 a1posted; | |
import java.math.BigInteger; | |
import java.util.LinkedList; | |
import java.util.Random; | |
import java.util.Arrays; | |
//import java.lang.Character; | |
public class PowerfullTester { | |
public static void testCase(int[] first, |
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 a1posted; | |
import java.math.BigInteger; | |
public class Tester { | |
public static void main(String[] args) throws Exception { | |
/* For the sake of readability, we define number coefficients for | |
this Tester file to be in the usual human readable order: |
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
// ==UserScript== | |
// @name LoU Tweak Turbo | |
// @description Adds incredible functionalities to Lord of Ultima, by turbo-charging LoU Tweak v1.6.0 | |
// @namespace SachinM | |
// @include http://prodgame*.lordofultima.com/*/index.aspx* | |
// @version 0.3.7 | |
// @require http://sizzlemctwizzle.com/updater.php?id=80532&days=1 | |
// ==/UserScript== | |
/* |
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
--- | |
categories: General Stuff | |
date: 201/04/06 15:25:00 | |
title: Just a test | |
keywords: test, another test, more "tests" | |
--- | |
Some text here |