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
Show hidden characters
{ | |
"font_size": 12.0, | |
"hot_exit": false, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"open_files_in_new_window": false, | |
"remember_open_files": false, | |
"soda_classic_tabs": true, |
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
# ~/.bash_profile | |
[[ -s ~/.bashrc ]] && source ~/.bashrc | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
alias ls='ls -GFh' | |
alias ll='ls -l' |
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
{ | |
// The default font size is 10 which is a little small for me | |
"font_size": 12.0, | |
// The number of spaces a tab is considered equal to | |
"tab_size": 2, | |
// Set to true to insert spaces when tab is pressed | |
"translate_tabs_to_spaces": true, | |
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
<?php | |
/* Adds a shortcode for displaying PDF's Inline */ | |
function dobson_embed_PDF($atts) { | |
extract(shortcode_atts(array( | |
'source' => "Invalid Source", | |
'width' => "100%", | |
'height' => "600", | |
), $atts)); | |
$source_headers = @get_headers($source); |
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
<?php | |
/* Adds a shortcode for displaying GitHub Gists */ | |
function dobson_create_github_gist($atts) { | |
extract(shortcode_atts(array( | |
'source' => "Invalid Source", | |
), $atts)); | |
$source_headers = @get_headers($source); | |
if (strpos($source_headers[0], '404 Not Found')) { | |
return '<p> Invalid GitHub Gist source. Please check your source. </p>'; |
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
<?php | |
/* Adds a shortcode to embed a Twitch Stream */ | |
function dobson_embed_twitch($atts) { | |
extract(shortcode_atts(array( | |
'username' => "Invalid Username", | |
'width' => "620", | |
'height' => "378", | |
), $atts)); | |
$source_headers = @get_headers("http://twitch.tv/" . $username); |
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
<?php | |
/* Adds a shortcode to embed a Twitch Stream's chat */ | |
function dobson_embed_twitch_chat($atts) { | |
extract(shortcode_atts(array( | |
'username' => "Invalid Username", | |
'width' => "350", | |
'height' => "500", | |
), $atts)); | |
$source_headers = @get_headers("http://twitch.tv/chat/embed?channel=" . $username . "&popout_chat=true"); |
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
<?php | |
/* Adds a shortcode to embed a YouTube video */ | |
function dobson_embed_youtube($atts) { | |
extract(shortcode_atts(array( | |
'video' => "Invalid Video ID", | |
'width' => "560", | |
'height' => "315", | |
), $atts)); | |
$source_headers = @get_headers("http://youtube.com/watch?v=" . $video); |
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.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.PrintStream; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.Scanner; | |
public class CapitalizeAlphabetical { |
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
diff <(cd dir1 ; ls -1 | sort) <(cd dir2 ; ls -1 | sort) |
OlderNewer