Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
rails new unicorn

Nik Saiful Anuar sanikkenway

💻
rails new unicorn
View GitHub Profile
View flickr_photoid_to_shortcode.php
<?php
$photoid = <photoid>;
$alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';
// function to encode from photoid to shortcode
function base_encode($photoid, $alphabet)
{
$base_count = strlen($alphabet);
$encoded = '';
View job.rb
if dev.is_bored? || job.sucks?
Job::search(:flexible_hours true, :company_culture 100)
end