Skip to content

Instantly share code, notes, and snippets.

View goatandsheep's full-sized avatar
⛸️
carving my own path

Kemal Ahmed goatandsheep

⛸️
carving my own path
View GitHub Profile
void sort_vectors(const short *v[], int type);
-1-terminated vector of shorts: -1 denotes out of bounds?
so the vector is of length n+1, when you have n elements,
where the n+1th element is -1
no negative elements
short: 16-bits
long: 32-bits
@goatandsheep
goatandsheep / doge-usd.js
Last active August 29, 2015 13:57
When finished, this Tampermonkey/Greasemonkey script should be able to convert any page from Dogecoins to USD
// ==UserScript==
// @name doge-usd
// @namespace
// @version 2014.03.16
// @description converts pages wit dogecoin 2 USD. 4 u/thatmudkipguy. so birthday. much happy.
// @include *
// @grant GM_xmlhttpRequest
// @grant GM_log
// @grant GM_setValue
// @grant GM_getValue
; Kemal Ahmed
; 2014-04-18
%include "asm_io.inc"
%define array[ebp+0x8]
%define size[ebp+0xC]
segment .data
@goatandsheep
goatandsheep / Voting.md
Last active August 29, 2015 14:02
Voting shouldn't be this magnificent

In Reda's perfect world:

A limo driver arrives at his front door step and 3 men run up to his door to ring the doorbell.

"Door's open!" Reda yells. The men open the door, run up the stairs and carry him on their shoulders in such a way that he's still in a sitting position. Before they take him out of his bedroom, the limo driver has brought up a cloth napkin draped over his right arm, as well as a glass (pre-filled with ice) resting on a plate in his right hand. His left hand has an open bottle of champagne imported from Napa Valley.

Reda sips his champagne and slaps the right chauffeur every time the drink spills because his left hand is carrying the glass and this is no time for equality.

When he gets to the hall, a red carpet has been strewn out and the scent of freshly-picked lavender can be smelled as flowers have been strewn over the sides of the carpet. Fountains are on either side, the paparazzi blinding you, and security has been called to check for snipers. Those fluffy, squishy, red railings s

Erganized

First slide

  • Back-ground image: an actual event, e.g. concert
  • Slogan instead of "Sign up to be the first to try it"
    • Sign up should probably be closer to the end, after the description of the product
    • Maybe it could say "Relevant, nearby, and categorized. Events re-imagined."
@goatandsheep
goatandsheep / EBR.md
Last active August 29, 2015 14:14
Environmental Bill of Rights Ontario

Environmental Bill of Rights Workshop

2014-11-05 Hamilton Library (Central Branch), Ontario, Canada

Link to bill

This recording was made with permission.

@goatandsheep
goatandsheep / CE sucks.md
Last active August 29, 2015 14:16
Criticism of Collective Evolution

Tesla had some amazing inventions in his lifetime, including a machine that could use radio waves from outer space to produce enough electricy to power the planet. However, many of them were lost and will probably never be found. I've tried to do a lot of research on this, but a lot of today's perpetual motion machines are bunk. I've been following Collective-evolution and a lot of the things they post there sound phenominal, but are not true. A lot of these Tesla wannabees are actually people who have cited people with degrees from degree mills (i.e. didn't actually study, just paid for it) and their retracted papers.

See this article

It cites a number of sources at the bottom. All of them were written from the same circlejerk of friends, including Thomas Bearden, who earned his degree from a diploma mill:

@goatandsheep
goatandsheep / Lecture.md
Last active August 29, 2015 14:17
2015-03-24

ADDI: add immediate

module branch(input[7:0] registers, output branch);
	assign branch = (registers == 8'b00);
endmodule

MOVR register

module temp_reg(

reg[7:0] temp;

@goatandsheep
goatandsheep / mosaic.md
Created March 29, 2015 21:55
MOSAIC McMaster needs to be fixed
@goatandsheep
goatandsheep / keybase.md
Created March 30, 2015 16:44
My keybase verification

Keybase proof

I hereby claim:

  • I am goatandsheep on github.
  • I am goatandsheep (https://keybase.io/goatandsheep) on keybase.
  • I have a public key whose fingerprint is 500F 7306 7910 1372 E5FB 1EBE 3D05 FF7F 04E6 A4B9

To claim this, I am signing this object: