Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
int main (void)
{
long long int num, revNum;
short int digitCount;
revNum = 0;
scanf ("%lli", &num);
digitCount = 1;
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="♖ \[\033[33;1m\]\w \[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'

So, three Dev Bootcamp students including me decided to do a podcast, DevBootcast.com, while attending the program. There is video on the website and here's the podcast's mp3 feed.

We are all big into listening to podcasts and for once felt like we were doing something worth podcasting about. We would have also all over a podcast on these topics, back when we were still researching and considering Dev Bootcamp.

We just recorded our first episode and it covers mostly our experience across the first two weeks of the program and our individual decision processes which eventually led to us choosing to attend DBC.

We also plan on having guests and first few look like they’re going to be recent DBC grads that are ready to show off their final projects and thus show what can you might be able to accomplish after attending DBC. If anyone has any questions or topic suggestions please contact us on Twitter @devbootcast or at devbootcast@g

@knnyluk
knnyluk / str1.rb
Last active August 29, 2015 13:55
class Thing
def initialize(anml1, anml2)
@animal1 = anml1
@animal2 = anml2
end
def to_s
"animal1: #{@animal1}" + " animal2: #{@animal2}"
end
@knnyluk
knnyluk / 0.2.1-boggle_class_from_methods.rb
Last active December 31, 2015 13:59 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(grid)
@grid = grid
end
attr_reader :grid
def create_word(*coords)
coords.map { |coord| @grid[coord.first][coord.last]}.join("")
end
(Intermediate): Ranked Voting System
http://www.reddit.com/r/dailyprogrammer/comments/1r2mcz/112013_challenge_136_intermediate_ranked_voting/
A Ranked Voting System is a system that chooses a result based on a ranked-preference rather than a simple majority. A standard ranked ballot generally has multiple choices, only one of which one can be picked. A ranked ballot allows you to choose the order in which you prefer candidates. An example could be that you prefer choice B first, then choice C, and finally choice A.
There are some neat implications on how this differs from conventional voting systems, and is used in many different countries and states (check out the same article's list of current uses on the overall system; well worth a watch! The overall difference between the two system is that a more agreed-upon candidate could win during a heavily split election.
Your goal is to take a list of candidates and voter's ballots, implement this voting system (using the Instant-runoff rules), and print the