Skip to content

Instantly share code, notes, and snippets.

View axemclion's full-sized avatar

Parashuram N axemclion

View GitHub Profile
@axemclion
axemclion / x
Created November 19, 2008 05:17
Bookmark Delicious - Ubiquity
/* This is the command to add a bookmark to delicious */
CmdUtils.CreateCommand(
{
name: ["bookmark"],
icon: "http://l.yimg.com/hr/10363/img/delicious.20.gif",
homepage: "http://dy-verse.blogspot.com",
author: {
name: "Parashuram",
email: "n.parashuram@gmail.com"
},
@axemclion
axemclion / linkify.user.js
Created November 25, 2008 14:17
Linkify - Ubiquity Command
/*
This is a command to linkify the selected text with search results in Google
Particularily useful to insert links while blogging
*/
CmdUtils.CreateCommand(
{
name: ["linkify"],
icon: "http://axemclion.github.com/favicon.ico",
author:
{
@axemclion
axemclion / FlashResize.js
Created April 2, 2009 14:08
A bookmarklet to resize any Flash object on HTML pages.
var FlashResizer = {
init: function() {
if (typeof(window["__FLASH_RESIZER__"]) === "undefined") {
window["__FLASH_RESIZER__"] = "started";
this.startResizer();
window.__resizeElements__ = [];
}
else
if (window["__FLASH_RESIZER__"] === "started") {
@axemclion
axemclion / wcdLaunchy.bat
Created April 18, 2009 08:40
WCD Batch File
@echo off
set PDC_RESTORE_SCREEN=1
rem set WCDHOME=%HOMEDRIVE%%HOMEPATH%
rem set LANG=nl_NL
rem set WCDLOCALEDIR=c:/Program Files/wcd/share/locale
wcdwin32.exe -j %*
@axemclion
axemclion / draw.bas
Created May 20, 2009 04:40
My first computer program. Generates code for graphics drawn on the screen.
10 CLS : KEY OFF: SCREEN 9: x = 320: y = 170: vvv = 750: col = 15: Col1 = 15
20 LOCATE 10, 10: INPUT "Start a new session (Y/N)"; an$: DIM ch(7561.5)
30 LOCATE 11, 10: INPUT "give the resolution :", res: IF res = 0 THEN res = 10
40 IF an$ <> "n" THEN OPEN "line.$$$" FOR OUTPUT AS #1: OPEN "Circ.$$$" FOR OUTPUT AS #2: CLOSE : OPEN "text.$$$" FOR OUTPUT AS #1: CLOSE : OPEN "box.$$$" FOR OUTPUT AS #1: CLOSE : OPEN "paint.$$$" FOR OUTPUT AS #1: CLOSE
50 CLOSE : OPEN "line.$$$" FOR APPEND AS #1: OPEN "circ.$$$" FOR APPEND AS #2: CLOSE : OPEN "text.$$$" FOR APPEND AS #1: OPEN "box.$$$" FOR APPEND AS #2: CLOSE : OPEN "paint.$$$" FOR APPEND AS #1: CLOSE : CLS : GOSUB 60: GOTO 100
60 FOR q = 1 TO 640 STEP 20: LINE (q, 0)-(q, 350), 2: NEXT q
70 FOR q = 1 TO 350 STEP 20: LINE (0, q)-(640, q), 2: NEXT q
80 LINE (9, 9)-(632, 342), 12, B: LINE (8, 8)-(631, 341), 15, B: PAINT (1, 1), 8, 15
90 RETURN
100 DIM pnt(100): GET (1, 1)-(2, 2), pnt:
@axemclion
axemclion / InviteGmailContacts.html
Created June 22, 2009 14:19
A HTML file that can be used to fetch the contacts from gmail to invite them
<html>
<head></head>
<body>
<div id = "SelectContacts"></div>
<img src = "img/sample.jpg"></body>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("gdata", "1.x");
google.setOnLoadCallback(function() {
var scope = 'http://www.google.com/m8/feeds';
@axemclion
axemclion / DownloadDecryptHelper.java
Created July 14, 2009 16:25
ATMOS security API - RSA Smash Challenge
package com.emc.smashup.atmos.api;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import org.apache.commons.codec.binary.Base64;
import com.emc.esu.api.DownloadHelper;
import com.emc.esu.api.EsuApi;
@axemclion
axemclion / DownloadDecryptHelper.java
Created July 14, 2009 16:25
ATMOS RSA Keymanager API
package com.emc.smashup.atmos.api;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import org.apache.commons.codec.binary.Base64;
import com.emc.esu.api.DownloadHelper;
import com.emc.esu.api.EsuApi;
@axemclion
axemclion / screenscraper.user.js
Created July 26, 2009 16:56
Screen Scraper Template
// ==UserScript==
// @name ScreenScraperTemplate
// @namespace http://dy-verse.blogspot.com
// @include http://page.you.wanna.scrape/path?pageName?pageNumber=*
// ==/UserScript==
/**
* This function is responsible for submitting the data
* @param {Object} parsedData
* @param {Object} record
@axemclion
axemclion / CheckGreasemonkeyVersion.js
Created September 30, 2009 08:58
AutoUpdater Greasemonkey
// Checks if there is a new script version according to the version information in the script homepage
// The version information is in a line in the full description of the script: "<p>#[V:00000000]#</p>" (00000000 is the version number)
// If the request is successful and there is a new version available, a message to the user is displayed
// TODO
// Change scriptPage - Number on the URL in userscripts link page.
// Change scipptVersion - Version of the script in this file
// Also add <p>#[V:00000000]#</p> in the page as a description