Skip to content

Instantly share code, notes, and snippets.

View abiduzz420's full-sized avatar
🐧
tinkering with compilery stuff

Uzair abiduzz420

🐧
tinkering with compilery stuff
View GitHub Profile

Mr. Jones, of the Manor Farm, had locked the hen-houses for the night, but was too drunk to remember to shut the pop-holes. With the ring of light from his lantern dancing from side to side, he lurched across the yard, kicked off his boots at the back door, drew himself a last glass of beer from the barrel in the scullery, and made his way up to bed, where Mrs. Jones was already snoring. As soon as the light in the bedroom went out there was a stirring and a fluttering all through the farm buildings. Word had gone round during the day that old Major, the prize Middle White boar, had had a strange dream on the previous night and wished to communicate it to the other animals. It had been agreed that they should all meet in the big barn as soon as Mr. Jones was safely out of the way. Old Major (so he was always called, though the name under

I

Soon after I arrived at St Cyprian's (not immediately, but after a week or two, just when I seemed to be settling into the routine of school life) I began wetting my bed. I was now aged eight, so that this was a reversion to a habit which I must have grown out of at least four years earlier. Nowadays, I believe, bed-wetting in such circumstances is taken for granted. It is normal reaction in children who have been removed from their homes to a strange place. In those days, however, it was looked on as a disgusting crime which the child committed on purpose and for which the proper cure was a beating. For my part I did not need to be told it was a crime. Night after night I prayed, with a fervour never previously attained in my prayers, 'Please God, do not let me wet my bed! Oh, please God, do not let me wet my bed!', but it made remarkably little difference. Some nights the thing happened, others not. There was no volition about it, no consciousness. You did not properly speaking do the deed: you merely wo

$ out/x64.debug/d8 --no-lazy-feedback-allocation --print-bytecode --allow-natives-syntax super-funny.js > super-funny-debug
[generated bytecode for function: ]
Parameter count 1
Register count 10
Frame size 80
0x5939701fae6 @ 0 : 12 00 LdaConstant [0]
0x5939701fae8 @ 2 : 26 f8 Star r3
0x5939701faea @ 4 : 61 34 01 f8 01 CallRuntime [NewScriptContext], r3-r3
0x5939701faef @ 9 : 16 f8 PushContext r3
$ out/x64.debug/d8 --print-bytecode --allow-natives-syntax super-funny.js > super-funny-debug
[generated bytecode for function: ]
Parameter count 1
Register count 10
Frame size 80
0x3d2217c9fae6 @ 0 : 12 00 LdaConstant [0]
0x3d2217c9fae8 @ 2 : 26 f8 Star r3
0x3d2217c9faea @ 4 : 61 34 01 f8 01 CallRuntime [NewScriptContext], r3-r3
0x3d2217c9faef @ 9 : 16 f8 PushContext r3

Keybase proof

I hereby claim:

  • I am abiduzz420 on github.
  • I am abiduzz420 (https://keybase.io/abiduzz420) on keybase.
  • I have a public key whose fingerprint is 9278 C716 E26D DA32 298D CA0F 2E98 E091 DCD5 5CC6

To claim this, I am signing this object:

@abiduzz420
abiduzz420 / GitCommitEmoji.md
Created July 23, 2019 10:42 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
FROM 32bit/ubuntu:16.04
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y flex bison build-essential csh openjdk-8-jdk \
libxaw7-dev wget \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /usr/class \
&& cd /usr/class \
$ stack build
Building all executables for `ormolu' once. After a successful build of all of them, only specified executables will be rebuilt.
ormolu-0.0.1.0: build (lib + exe)
Preprocessing library for ormolu-0.0.1.0..
Building library for ormolu-0.0.1.0..
[11 of 24] Compiling Ormolu.Printer.Meat.Type ( src/Ormolu/Printer/Meat/Type.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/Ormolu/Printer/Meat/Type.o )

/home/abiduzair/Documents/uzair/ormolu/src/Ormolu/Printer/Meat/Type.hs:36:3: error:
 Not in scope: data constructor ‘HsAppsTy’
  • Data Compressor From Scratch using may be Huffman-coding-based compressor.
  • Text Editor From Scratch which includes undo, redo.
  • Shell From Scratch kinda like a Unix shell with pipelines.
  • HTTP Server From Scratch serving static and dynamic content.
  • Malloc From Scratch: a simple memory allocator.
public GameState Negamax(GameState node, int depth, int α, int β, bool currentTurn) {
List<GameState> childNodes = new List<GameState>();
childNodes = node.GetAvailableChildStates();
if(depth == 0 || childNodes == null) {
color = currentTurn ? 1 : -1;
return color * node.EvaluateGameState();
}
// gamestate should have OrderMoves function which takes list of available child states and returns them in an order
childNodes = node.OrderMoves(childNodes);
value = -100000