This file contains hidden or 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 praw | |
| from collections import defaultdict | |
| reddit = praw.Reddit(user_agent='karma_scraper') | |
| reddit.login('username', 'password') | |
| subreddit = reddit.get_subreddit('combatfootage') | |
| response = subreddit.get_top(limit=1000) | |
| results = defaultdict(int) |
This file contains hidden or 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 praw | |
| from collections import defaultdict | |
| reddit = praw.Reddit(user_agent='karma_scraper') | |
| reddit.login('username', 'password') | |
| subreddit = reddit.get_subreddit('combatfootage') | |
| response = subreddit.get_top(limit=50) | |
| results = defaultdict(int) |
This file contains hidden or 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
| uptodatepronto: 383 | |
| purpleolive: 425 | |
| xxhamudxx: 353 | |
| chubachus: 658 | |
| chubachus: 431 | |
| zebrawaterfall: 363 | |
| skepticalasfuck: 498 | |
| purpleolive: 337 | |
| FaceTimE88: 455 | |
| USCAV19D: 1303 |
This file contains hidden or 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 praw | |
| from collections import defaultdict | |
| reddit = praw.Reddit(user_agent='karma_scraper') | |
| subreddit = reddit.get_subreddit('combatfootage') | |
| results = subreddit.get_top(limit=1000) | |
| out = defaultdict(int) | |
| for result in results: |
This file contains hidden or 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
| #include <iostream> | |
| #include <v8.h> | |
| #include "kohv.h" | |
| using namespace v8; | |
| int main(int argc, const char * argv[]) { | |
| Kohv::initialize(); |
This file contains hidden or 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
| struct Asset { | |
| cache: HashMap<~str, Gc<~Any>> | |
| } | |
| impl Asset { | |
| pub fn load<T>(path: Path) -> IoResult<@T> { | |
| let fc = FileContent::from(path); //temp | |
| let ret = fc.unwrap(); | |
| Ok(unsafe { cast::transmute(@ret) }) |
This file contains hidden or 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
| use std::str; | |
| mod bf; | |
| fn main() { | |
| let program = "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."; | |
| let output = bf::eval(program); | |
| match output { | |
| Ok(x) => { |
This file contains hidden or 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
| Game.conf = function(cfg) { | |
| cfg.window.width = 320; | |
| cfg.window.height = 240; | |
| cfg.window.title = "ouo!"; | |
| cfg.window.resizable = false; | |
| } | |
| Game.load = function() { | |
| log("Game.load"); |
This file contains hidden or 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
| sprite_map[someid] = AnimatedSprite(Asset::load<Texture>("mychar.png"), glm::vec4(0, 48, 16, 16), 0.1f, 5, 16); | |
| sprite_map[someid].update(delta); // calls Sprite::update(float); |
This file contains hidden or 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
| #include "game.h" | |
| Chunk::Chunk(int x, int y, int z) { | |
| memset(contents, 0, sizeof(contents)); | |
| count = 0; | |
| dirty = true; | |
| left = 0; | |
| right = 0; | |
| top = 0; |