Skip to content

Instantly share code, notes, and snippets.

@ultimape
ultimape / imagePage.bookmarklet.js
Last active August 29, 2015 14:03
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.
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();})()
; =========================================================================
; 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 August 29, 2015 14:14
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.

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 15:32
A utility to emulate MS-Dos's tree command that I wrote while in college while learning Perl. Caution, may launch all the nukes.
#!/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 September 13, 2015 21:07
Everything has beginning. A short creative piece intended to be a manifesto of sorts.
/** @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 November 6, 2012 22:56
newMONC - new Minecraft Offline Name Changer
@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 November 5, 2015 04:35
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…
# 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"
#!/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 November 30, 2013 19:27
A specialized player that helps stream youtube series uninterrupted.
<!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>
@ultimape
ultimape / sparkcore-windows-setup-and-flash.md
Last active March 28, 2016 22:46
Windows directions for install+flashing kickstarter edition of sparkcore.

Spark Core Agogo

Some directions for install+flashing kickstarter edition of spark core. For windows.

THIS IS A DRAFT

Steps may be missing, and the instructions are not normalized or nessisarily laied out in a sane order.