This file contains 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 | |
if ARGV[0].nil? | |
raise "Expecting a string as the first argument" | |
end | |
require 'base64' | |
based = Base64.encode64 ARGV[0] | |
if !ARGV[1].nil? && ARGV[1] == 'sep' |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>en</string> | |
<key>CFBundleExecutable</key> | |
<string>$(EXECUTABLE_NAME)</string> | |
<key>CFBundleIdentifier</key> | |
<string>biz.interdev.$(PRODUCT_NAME:rfc1034identifier)</string> |
This file contains 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
<html> | |
<head> | |
<title>Wedding Photography Rates 2015</title> | |
<style> | |
body, h1, h2, h3, h4, h5, h6, hr, p, ul { margin: 0; padding: 0; } | |
header { text-align: center; margin: 0 0; } | |
.logo { width: 200px; } | |
h1, h2, h3, h4, h5, h6 { text-align: center; text-transform: uppercase; } | |
h2 { margin: 35px 0; } |
This file contains 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 | |
class HexColorChanger | |
def self.valid_hex?(hex) | |
hex | |
end | |
def self.valid_lum?(lum) | |
lum | |
end |
This file contains 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
package pack; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
public class TriangleNumbersPuzzle | |
{ | |
private static int returnNumberOfDivisors(int inNum) |
This file contains 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
// Traditional Simple Way: | |
public class Singleton { | |
private static final Singleton instance = new Singleton(); | |
private Singleton() { | |
} | |
public static Singleton getInstance() { | |
return instance; | |
} | |
} |
This file contains 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 (jQuery) (function($){ | |
jQuery('img').each(function() { | |
jQuery(this).attr('src', 'http://placekitten.com/g/'+jQuery(this).width()+'/'+jQuery(this).height()); | |
}); | |
})(jQuery); |
This file contains 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 | |
def compare_filesystem(previous, current) | |
previous_inventory = File.open(previous).readlines | |
current_inventory = File.open(current).readlines | |
# puts "The following files have been added:" | |
# puts current_inventory - previous_inventory | |
# | |
# puts "" |
This file contains 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.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
/* | |
* Sample application output: | |
* | |
* **** Building Dictionary Start with Isabella **** | |
* |
This file contains 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
javascript:(function(){function b(g){var m=document,k=m.createElement("script"),f=m.body,h=m.location,i="";try{if(!f){throw (0)}i=m.title;m.title="(Saving...) "+m.title;k.setAttribute("src",h.protocol+"//liveclippings.interdev.biz/clipping/create?content_type=html&public="+g+"&url="+encodeURIComponent(h.href));f.appendChild(k);m.title=i;return 0}catch(j){alert("The page has not loaded. Please try again in a moment.")}}function a(e,h){var d=document.createElement("script");d.src=e;var f=document.getElementsByTagName("head")[0];var g=false;d.onload=d.onreadystatechange=function(){if(!g&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){g=true;h();d.onload=d.onreadystatechange=null;f.removeChild(d)}};f.appendChild(d)}function c(d){var f=document.createElement("link");f.href=d;f.rel="stylesheet";f.type="text/css";var e=document.getElementsByTagName("head")[0];e.appendChild(f)}a("http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js",function(){a("http://ajax.googleapis.com/ajax |
OlderNewer