Skip to content

Instantly share code, notes, and snippets.

View Surye's full-sized avatar

Vincent Castellano Surye

View GitHub Profile

Keybase proof

I hereby claim:

  • I am surye on github.
  • I am surye (https://keybase.io/surye) on keybase.
  • I have a public key whose fingerprint is 4BCD DA13 DD07 2A27 224A 256E E113 668F D5D4 9DC6

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am surye on github.
  • I am surye (https://keybase.io/surye) on keybase.
  • I have a public key whose fingerprint is 4BCD DA13 DD07 2A27 224A 256E E113 668F D5D4 9DC6

To claim this, I am signing this object:

#!/bin/env python
import random
from sys import argv
from functools import reduce
from collections import Counter
class PongSim:
skills = [[0,0],[0,0]]
#!/bin/env python
import random
from functools import reduce
from collections import Counter
class PongSim:
skills = [[0,0],[0,0]]
@Surye
Surye / vsprintf_issue.cpp
Created February 24, 2012 06:12
vsprintf issue
#include <cstdarg>
#include <string>
#include <iostream>
void debug(std::string c_fmt, ...);
int main() {
debug("Testing: %d", 12345); // Testing: -858993460
}
@Surye
Surye / MFPNetCarbs.user.js
Created February 1, 2012 04:14
Greasemonkey script for MFP Ketoers
// ==UserScript==
// @name MyFitnessPal Percentages and Net Carbs
// @version 1.1
// @namespace surye
// @description Adds display of Carb/Protein/Fat percentages to any daily food diary page. Also adds "Real Calories" calcalation based off 4/4/9 algorithm. Based on "MyFitnessPal Percentages", modified by Surye to add low carb features such as net carbs. Requires the following columns: Fat, Protein, Carbs, Fiber
// @include http://www.myfitnesspal.com/food/diary/*
// ==/UserScript==
/* side note - 5/30/65 Carbs/Protein/Fat is a good ratio for fat loss */
// ==UserScript==
// @name MyFitnessPal Percentages and Net Carbs
// @version 1.0.5
// @namespace surye
// @description Adds display of Carb/Protein/Fat percentages to any daily food diary page. Also adds "Real Calories" calcalation based off 4/4/9 algorithm. Based on "MyFitnessPal Percentages", modified by Surye
// @include http://www.myfitnesspal.com/food/diary/*
// ==/UserScript==
/* side note - 5/30/65 Carbs/Protein/Fat is a good ratio for fat loss */
// ==UserScript==
// @name MyFitnessPal Percentages and Net Carbs
// @version 1.0.5
// @namespace surye
// @description Adds display of Carb/Protein/Fat percentages to any daily food diary page. Also adds "Real Calories" calcalation based off 4/4/9 algorithm. Based on "MyFitnessPal Percentages", modified by Surye
// @include http://www.myfitnesspal.com/food/diary/*
// ==/UserScript==
/* side note - 5/30/65 Carbs/Protein/Fat is a good ratio for fat loss */