Skip to content

Instantly share code, notes, and snippets.

View nelsonpecora's full-sized avatar

Nelson Pecora nelsonpecora

View GitHub Profile
@nelsonpecora
nelsonpecora / wp_frontpage.html
Created July 11, 2012 19:57
Wordpress Single Post on Front Page
<div class="sectionTitle">The latest from "Keats' Blog":</div>
<?php query_posts('showposts=1');?>
<?php while (have_posts()) : the_post(); ?>
<h3><a class="posttitle" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php custom_the_excerpt(); ?>
<h3 class="cta"><a href="<?php get_permalink($post->ID) ?>" target="_blank"><span class="readMore">Read More</span></a></h3>
<?php endwhile;?>
<?php wp_reset_query(); ?>
@nelsonpecora
nelsonpecora / .gitignore
Created September 17, 2012 18:40
A simple gitignore to use with wordpress installs
# osx noise
.DS_Store
profile
# svn & cvs
.svn
CVS
# auto git version noise
InfoPlist.h
@nelsonpecora
nelsonpecora / work_gitconfig
Created November 28, 2012 16:15
.gitconfig for work. Has some cool aliases.
[user]
name = Nelson Pecora
email = [email protected]
[core]
excludesfile = ~/.gitignore
[credential]
helper = osxkeychain
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[diff]
@nelsonpecora
nelsonpecora / nomic.md
Created March 2, 2013 06:42
Nomic initial set of rules.

Markdown Key

000. Rule

Amendment to the above rule.

Immutable Rules

101. All players must always abide by all the rules then in effect, in the form in which they are then in effect. The rules in the Initial Set are in effect whenever a game begins. The Initial Set consists of Rules 101-116 (immutable) and 201-213 (mutable).

@nelsonpecora
nelsonpecora / spanish-1-8-08.md
Created April 27, 2013 20:36
Spanish project I randomly found on my computer, from 2008.

El Proyecto de Espanol

La Amistad Del Anillo

Michael ######

Nelson Pecora

Amannda ######

pity(this) {
monster.busy = (!manunkind) ? true : false;
}
var progress = "comfortable disease";
if(user.victim > death && user.victim > life) {
user.victim.play(littleness.bigness);
for(var i = 0; i < mountain.range; i++) {
@nelsonpecora
nelsonpecora / today.txt
Created July 26, 2013 21:06
Peudo-code for potential applescript code that will list todo's from Things' "Today" list sectioned off into Areas / Projects, like they are in the UI.
# potential (pseudo)code
tell application "Things"
repeat with theList in "Today"
--- add name to json
--- add project to json
--- add area to json
end repeat
end tell
@nelsonpecora
nelsonpecora / things.applescript
Last active December 20, 2015 08:59
Sample code to grab to do items from the "Today" list, with Area / Project labels
set taskList to "["
tell application "Things"
repeat with toDo in to dos of list "Today"
set tdName to the name of toDo
set tdStatus to the status of toDo
if (project of toDo) is not missing value then
set tdSection to (name of project of toDo)
set tdSectionType to "project"
else if (area of toDo) is not missing value then
PhysX3 SDK Init started ...
PhysX3 SDK Init ended.
Warning Message: Script x\st\addons\stmf\functions\fnc_disableDamageProtection.sqf not found
Warning Message: Script x\st\addons\stmf\functions\fnc_disableDamageProtection.sqf not found
Warning Message: Script x\st\addons\stmf\functions\fnc_addCallAction.sqf not found
Warning Message: Script x\st\addons\stmf\functions\fnc_addSpawnAction.sqf not found
No more slot to add connection at 033057 (3386.8,5735.4)
a3\structures_f\training\shootingpos_f.p3d: house, config class missing
a3\structures_f\training\shootingpos_f.p3d: house, config class missing
a3\structures_f\training\shootingpos_f.p3d: house, config class missing
/* controller 1 */
app.userAuth.controller('LoginFormCtrl', ['$scope', 'UserData', function($scope, UserData) {
$scope.email = UserData.email;
$scope.password = UserData.password;
$scope.login = function() {
console.log('sent login form');
}
}]);