Skip to content

Instantly share code, notes, and snippets.

@Rapptz
Rapptz / stats.md
Last active October 29, 2018 05:29
Statistics for /r/smashbros

/r/smashbros Statistics

  • Statistics processed at 2015-05-26T23:02:47.304000
  • Total number of posts processed: 100
  • Average score: 112.40 (± 252.79)

Overview

Stat Video Self Video Self Giflike Self Image Tweet Self Tweet Misc Self Misc
@Rapptz
Rapptz / strawpoll_bot.py
Created April 27, 2015 20:33
A strawpoll bot for /u/-anti
#!/usr/bin/env python
import praw
import requests
### configuration
username = '...'
password = '...'
subreddit = '...'
# use {url} to get the strawpoll url
@Rapptz
Rapptz / stdout
Created April 18, 2015 20:43
Semantic Versioning Parsing -- http://semver.org/
0 out of 10 failed parsing
0 out of 31 tests incorrectly passed parsing
@Rapptz
Rapptz / cpack.md
Last active August 29, 2015 14:19
C++ Package Manager Dream Requirements

cpack

Name of the thing. Should probably be renamed.

Wishlist

  • Must be able to install from a central repo à la npm and friends, and from any git repo.
  • The dependencies must not be recursively cloned à la npm
  • Must be able to upgrade and delete packages
  • Must use a sane configuration format, i.e. JSON.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SSCCE</title>
<link href='//fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'>
<style>
body {
font-family: "Raleway";
color: #222;
import os
import sys
from collections import Counter
if len(sys.argv) < 2:
print('needs at least two arguments, <char set> <files>...')
characters = sys.argv[1]
counter = Counter()

Reasons I use Linux:

  1. Fast filesystem. It's about ~45x faster than NTFS for me and add an SSD to that and you have quite fast r/w speeds.
  2. Package manager allows me to install software and tools insanely easily.
  3. Work stations allows me to have multiple desktops in a single screen and switch through them seamlessly.
  4. Theming support is really simple and if you don't like it you can just choose another Desktop Environment to use.
  5. Directory structure is suitable for dependencies when programming and makes it a breeze (/usr/lib and /usr/include)
  6. The terminal is much more powerful than silly cmd.exe and I have ncurses support as well.
  7. GDB has a -tui mode that I can use for better debugging.
  8. Relates to #4 but everything is customisable and you can choose something if you don't like it (similar to Android)
@Rapptz
Rapptz / gist:ac9decf72a65622a5c33
Last active August 29, 2015 14:17
Hypest Tournaments (and from before Hypest)
Date: Wednesday, August 20, 2014
URL: http://redditsmash.challonge.com/pmreddit1
Name: Project M Wifi - /r/smashbros
Participants: 26
Completed? True
Date: Sunday, August 24, 2014
URL: http://redditsmash.challonge.com/redditmeleewc
Name: Melee Netplay (WC) - /r/smashbros
Participants: 11
@Rapptz
Rapptz / run1.txt
Created March 9, 2015 00:51
Smashbros memes?
In submission...
194 :: /r/smashbros State of the Sub - March 2015 - Let's discuss how to make...
Hyes! was found in comment ID cp6whqe by redditor "TheCyclops"
The comment score was 17
In submission...
194 :: /r/smashbros State of the Sub - March 2015 - Let's discuss how to make...
DAE? was found in comment ID cp73q9n by redditor "Mmeaninglessnamee"
The comment score was 12
danny@debian:~$ sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.5 20
update-alternatives: using /usr/bin/clang++-3.5 to provide /usr/bin/clang++ (clang++) in auto mode
danny@debian:~$ clang++ -v
Debian clang version 3.5.0-9 (tags/RELEASE_350/final) (based on LLVM 3.5.0)