Skip to content

Instantly share code, notes, and snippets.

Avatar

Nicholas Perry ultimape

View GitHub Profile
@ultimape
ultimape / imagePage.bookmarklet.js
Last active Aug 29, 2015
An update to an old bookmarklet I found. It scours a page for links to images and creates a new page with the (non-thumb) version of those images. Now compatible with webm. Works great for popular image boards.
View imagePage.bookmarklet.js
javascript:(function(){function I(u){var t=u.split('.'),e=t[t.length-1].toLowerCase();return{gif:1,jpg:1,jpeg:1,png:1,mng:1,webm:1,} [e]} function J(f){if((f.indexOf('thumbs')==-1)&&(f.indexOf("t.4cdn")==-1)){return 1;}else{return 0;}} function hE(s){return s.replace(/&/g,'&').replace(/>/g,'>').replace(/</g,'<').replace(/"/g,'"');} function wrap(href){var t=href.split('.'),e=t[t.length-1].toLowerCase(),s='<p>'+q.innerHTML+' ('+hE(h)+') <br/>';if({webm:1}[e]){s+='<video controls="" loop="" src="'+hE(h)+'" style="max-width: 1280px; max-height: 720px;"></video>';} else{s+='<img style="max-height:690" src="'+hE(h)+'">';} s+='<hr/>';return s;} var q,h,i,z=open().document;z.title="images from "+location.href;z.write('<p>Images linked to by '+hE(location.href)+':</p><hr>');for(i=0;q=document.links[i];++i){h=q.href;if(h&&I(h)&&J(q.innerHTML)) z.write(wrap(h));} z.close();})()
View str_lib.asm
; =========================================================================
; PROGRAMMER : Nicholas Perry
; FILE : str_lib.asm
; DATE : 2005-09-06
; SUBJECT : lab#4
; my personal library of string functions I made to help myself in micro course
; =========================================================================
; Declare the C file handling functions.
EXTERN _printf
@ultimape
ultimape / Technology Evolution.md
Last active Aug 29, 2015
I'm sharing these links with you because they are things that interest us both. they are meant to be watched in sequence, increasingly becoming more specific in different areas around the evolution of ideas.
View Technology Evolution.md

The last video discusses how being able to watch videos like this is improving the way we spread ideas. All TED talks are cc licence, and you can share them with whoever you want.

Technologies' Epic Story (16.5min) 2009:

  • why technology is important to us.
  • why culture is important for spreading technology.
  • the advantages of technology
  • the disadvantages of technology
@ultimape
ultimape / vtree.pl
Created May 29, 2015
A utility to emulate MS-Dos's tree command that I wrote while in college while learning Perl. Caution, may launch all the nukes.
View vtree.pl
#!/usr/bin/perl
# FILE : vtree
# AUTHOR : Nicholas Perry
# EMAIL : nperry@morning.ecet.vtc.edu (defunct)
# DATE CREATED : 03/08/2005
# DATE MODIFIED : N/A
# DESCRIPTION : Perl: Recursively finds and displays the filetree.
print "\n<INIT: '$0'>\n";
# BEGIN CODE HERE.
@ultimape
ultimape / spamHunter.scala
Created Sep 13, 2015
Everything has beginning. A short creative piece intended to be a manifesto of sorts.
View spamHunter.scala
/** @note: "I don't know who you are. I don't know what you want.
* If you are looking for a follow back I can tell you I don't have money.
*
* But what I do have are a very particular set of skills.
* Skills I have acquired over a very long career.
* Skills that make me a nightmare for people like you.
*
* If you leave my notifications in peace that'll be the end of it.
* I will not stalk you, I will not analyze your tweets.
* but if keep pinging me, I will grep you, I will block you.
@ultimape
ultimape / newMONC.bat
Created Nov 6, 2012
newMONC - new Minecraft Offline Name Changer
View newMONC.bat
@echo off
REM Minecraft Name Changer
echo.
echo **************************************************
echo * newMONC *
echo * new Minecraft Offline Name Changer *
echo **************************************************
echo.
echo Play on SMP LAN when minecraft.net is down,
echo or when you don't have internet.
@ultimape
ultimape / Makefile.win
Last active Nov 5, 2015
A simple matrix like display using console. A project for fun back in 2004 - did it to see how simply I could recreate the effect. Meant to run with custom windows console settings (width,height, and text color). My original exe seems to be flagged as a trojan by microsoft security essentials so I've included the makefile to see if I can recreat…
View Makefile.win
# Project: Project1
# Makefile created by Dev-C++ 4.9.9.0
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = main.o $(RES)
LINKOBJ = main.o $(RES)
LIBS = -L"G:/Program Files/Dev-Cpp/lib"
@ultimape
ultimape / purple_colored_hearts_vday_screensaver.pde
Last active Dec 12, 2015
"Heart Attack": Purple+Colored Hearts Screensaver: Happy V-day for my beautiful wife.
View purple_colored_hearts_vday_screensaver.pde
// Purple Hearts Screensaver
// "Heart Attack"
// Happy V-day
// For my beautiful wife
// By Nicholas 'Ape-Inago' Perry aka UltimApe
// contact: ape.inago@gmail.com
// Released Creative Commons 3.0 License: share-alike, remix and commercial rights
// License available online: https://creativecommons.org/licenses/by-sa/3.0/deed.en_US
int circlewidth= 50; // not used right now
View UtopianTree.HackerRank.pl
#!/bin/perl
# A Perl program to solve the challenge presented at https://www.hackerrank.com/contests/nov13/challenges/utopian-tree
# modified for formatting and spelling mistakes.
# Author: Nicholas Perry
# Scores of entry: https://www.hackerrank.com/challenges/utopian-tree/submissions/code/1442434
# Test Case #0: 0.25s
# Test Case #1: 0.03s
# Test Case #2: 0.03s
@ultimape
ultimape / SeriesSubjugator.html
Created Nov 30, 2013
A specialized player that helps stream youtube series uninterrupted.
View SeriesSubjugator.html
<!DOCTYPE html>
<html lang="en" style="width:100%">
<!-- copyright 2013 Nicholas Perry.
released under Creative Commons Attribution-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/deed.en_US
-->
<!-- used resources from this reference: https://developers.google.com/youtube/js_api_reference-->
<head>
<meta charset="utf-8" />
<title>Series Subjugator</title>