Skip to content

Instantly share code, notes, and snippets.

View drey7925's full-sized avatar
🦀
hehe rust go brrrr

drey7925

🦀
hehe rust go brrrr
  • Google
  • NYC
  • 12:15 (UTC -04:00)
View GitHub Profile
@drey7925
drey7925 / gist:4731037
Created February 7, 2013 13:50
Pascals triangle in progress
import java.util.Arrays;
public class pascals {
public static void main(String[] args) {
// TODO Auto-generated method stub
pascalsTri(9, 4);
}
public static int[] pascalsRow(int[] nums) {
@drey7925
drey7925 / gist:4769987
Created February 12, 2013 13:47
Pascals
import java.util.Arrays;
//Andrei Akhmetov
public class pascals {
public static void main(String[] args) {
// TODO Auto-generated method stub
pascalsTri(20);
}
SELECT Professors.*, Courses.* WHERE ProfessorId=(
SELECT ProfessorId FROM Professors
LEFT OUTER JOIN Courses
ON Professors.ProfessorId = Courses.ProfessorId)
@drey7925
drey7925 / AbstractIntConstructable.java
Created April 19, 2014 01:17
Constructor references to defeat erased types
public abstract class AbstractIntConstructable {
abstract public int intResult();
protected int contained;
protected int result;
protected abstract void populate(int i);
public AbstractIntConstructable(int i){
this.populate(i);
}
}
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@drey7925
drey7925 / joy.h
Created November 11, 2014 00:15
RobotC advanced joystick driver
#include "JoystickDriver.c"
#pragma systemFile
#ifndef JOYSTICK_DRIVER_LOADED
#define JOYSTICK_DRIVER_LOADED
#define SET_BIT(NUM, BIT) NUM |= 1 << BIT
#define CLR_BIT(NUM, BIT) NUM &= ~(1 << BIT)
#define TOGGLE_BIT(NUM, BIT) NUM ^= 1 << BIT
#define ISSET_BIT(NUM, BIT) ((NUM & (1 << BIT))!=0)
#define LONGPRESS_TIME 1000
@drey7925
drey7925 / keybase.md
Created December 4, 2014 21:52
Keybase

Keybase proof

I hereby claim:

  • I am rarkenin on github.
  • I am hexafraction (https://keybase.io/hexafraction) on keybase.
  • I have a public key whose fingerprint is 839C DDB7 C78D 8051 F552 C78B DA17 C890 5E05 FAB9

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am rarkenin on github.
  • I am hexafraction (https://keybase.io/hexafraction) on keybase.
  • I have a public key whose fingerprint is 0155 DE82 CBE9 4CAD E1DA B517 280C 8692 2441 321B

To claim this, I am signing this object:

Verifying that +hexafraction is my openname (Bitcoin username). https://onename.io/hexafraction

Keybase proof

I hereby claim:

  • I am hexafraction on github.
  • I am hexafraction (https://keybase.io/hexafraction) on keybase.
  • I have a public key whose fingerprint is 0155 DE82 CBE9 4CAD E1DA B517 280C 8692 2441 321B

To claim this, I am signing this object: