Skip to content

Instantly share code, notes, and snippets.

View ericdodds's full-sized avatar

Eric Dodds ericdodds

View GitHub Profile
@ericdodds
ericdodds / Example
Last active December 21, 2015 12:38
//Use this command to find and move a specific kind of file in a directory.
//This command searches recursively through nested folders.
$ find ~/old-music-folder -name '*.mp3' -exec mv {} ~/new-music-folder \;
@ericdodds
ericdodds / gist:27875e6603eb044b8bc9
Last active August 29, 2015 14:04
Body copy link styles for The Iron Yard's Tumblr themes
body {
font-size: 17px;
}
p a {
color: #158cbd;
}
p a:hover {
text-decoration: underline;
@ericdodds
ericdodds / gist:520d861ab44bf5e4fe9f
Created July 27, 2014 10:48
Remove or reveal Spotlight icon in the Menu Bar in OS X
Remove Spotlight icon in menu bar
$ cd /System/Library/CoreServices/
$ sudo mv Search.bundle/ Search2.bundle/
Reveal Spotlight icon in menu bar
$ sudo mv Search2.bundle/ Search.bundle/
This is main body of my content. I have a footnote link for this line <a href="#footnote-1">[1]</a>. Then, I have some more content. Some of it is interesting and it has some footnotes as well <a href="#footnote-2">[2]</a>.
<p id="footnote-1">[1] Here is my first footnote.</p>
<p id="footnote-2">[2] Another footnote.</p>
@ericdodds
ericdodds / gist:3115ec53c62fa0159d05
Last active August 29, 2015 14:04
Citepro syntax
Lorem Lorem ipsum dolor sit amet[citepro]Footnote number one.[/citepro], consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua[citepro]Footnote number 2.[/citepro].
@ericdodds
ericdodds / gist:a30ff1083d76c38b3535
Created July 30, 2014 20:55
Citepro "return to body text" CSS style
.citepro-text:after {
content: " ↩";
cursor: pointer;
}
@ericdodds
ericdodds / gist:6c2646a84b93dce3a12d
Created July 30, 2014 21:05
Citepro CSS styles for ericdodds.com
.citepro {
color: #4da7ca;
}
p.citepro-block {
clear: both;
padding: 15px 7px 7px 0;
border-top: 2px solid #ccc;
border-bottom: none;
}
<span class="icon">1</span><input id="search-field" name="q" placeholder="Search keywords" type="text" value="" />
@ericdodds
ericdodds / ghost-ring-origin-of-portal
Created August 12, 2014 17:58
Ghost Ring: The Origin of The Portal
You ring the Bell of Opening. The Bell of Opening issues an unsettling shrill sound. Patrick Swayze materializes out of the haunting mist.
??????++++++++=================+IZZZOZ$ZZZZODDDNNND8OO8OO7Z=======+==++++++++?+?
????++++=++================~===?O8O88O8Z$88888NNNNNDZ$ZZOO7I=======+=====+++++++
?++++++++===========~=~~~~~~==?8ZO8DDDOO8NNNMNNN8NNDOZZZZZOZ?==============++==+
+++++===========~~~=~~=~~~~=I8OOZZDNNDDDNNMMMMMM8MDDNDD88888O=~===~===========++
+++++=========~~~~~~~~~~~~~7888ZO8NNMMD8NMMNMMNMNNMMNDNDNNNDDDO=~===~===========
++++======~~~=~~~~~~~~~~~~?OOODO8NNNDDDD8NNMMMMMNMNMNDDNNNNNND87==~=~~~=~=~==~==
=========~~~~~~~~~~:~~~:~=O$888D88ZZZOODNMNMMMNNNNNNNMMMNNNNDD88?~~~~~~~=~~=====
=======~~=~~~~~~~:~:::~~~I$ZODDNDNNNMMMMMMMND8OZZOO8DNMMMNNNDD8N8I=~~~~~~~~~=~==
var userChoice = prompt("Do you choose rock, paper, scissors or rope?");
var computerChoice = Math.random();
if (computerChoice <= 0.25)
{
computerChoice = "rock";
}
else if (0.26 <= computerChoice <= 0.50)
{
computerChoice = "paper";
}