Skip to content

Instantly share code, notes, and snippets.

@Francesco149
Francesco149 / shige-skins.md
Last active March 31, 2024 14:53
Shigetora / Cookiezi skin compilation
@juderosen
juderosen / debug.txt
Created February 26, 2014 00:46
Here's that debug log
Bringing machine 'default' up with 'virtualbox' provider...
[default] VirtualBox VM is already running.
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
@colindean
colindean / Gemfile
Last active June 2, 2017 11:33
Simple DNSSD FTPS client/server written as an example of a secure file transfer system of peer-to-peer nature with autodiscovery, ala https://pay.reddit.com/r/ruby/comments/1y13h4/secure_peertopeer_in_ruby/
source 'https://rubygems.org'
gem 'dnssd'
gem 'double-bag-ftps'
gem 'ftpd'
@juderosen
juderosen / git-wars.md
Last active April 25, 2024 15:16
Git Wars: GitHub vs Bitbucket

Git Wars: GitHub vs Bitbucket

Introduction

Now, you might think the answer I'm going to give you is already obvious because I'm using GiHub right now, but it's not. Both GitHub and Bitbucket offer great Git services, but each has its own features and pricing plans. In the following... thing, I'm going to compare the two and then offer a final solution that should work for most people.

TL;DR: Both. Use GitHub for open source and public repos (you'll spend most of your time here) and Bitbucket for private repos. But, sign up for GitHub first, then import account into Bitbucket. Also, check comments for updates. P.S. I personally prefer GitHub.

Interface and Functionality

@juderosen
juderosen / loops.rb
Last active January 2, 2016 15:59
Various infinite loops in Ruby
# Loop
i = 0
loop do
i+=1
puts "To infinity and beyond! (#{i})"
end
# While
i = 0
while true do
@robertmesserle
robertmesserle / boggle-solver.js
Last active June 20, 2023 09:21
Optimized Boggle Board Solver
var board = [
[ 'a', 'b', 'c', 'd' ],
[ 'a', 'f', 's', 'j' ],
[ 'd', 'e', 'a', 't' ],
[ 'g', 'u', 'n', 'f' ]
];
var dictionary = [ 'fab', 'fad', 'san', 'fan', 'fade', 'fed', 'seat', 'dab', 'bad' ];
var Solver = function ( board, dictionary ) {
@Burgestrand
Burgestrand / README.md
Created February 3, 2012 23:20
A ruby script to construct magnet links out of .torrent files

Magneto

It reads your torrents. Spit out magnet URIs.

Example Usage

$ ./magneto.rb magneto.rb.torrent

Results in:

@IvanTorresEdge
IvanTorresEdge / prime_numbers_sieve_eratosthenes.rb
Created February 2, 2012 06:45
Find prime numbers using Sieve of Eratosthenes algorithm (Ruby)
#!/usr/bin/env ruby
n = 2..1000
o = []
p = []
for i in n
next if o.include? i
ii = i * 2
while ii <= n.last do