Skip to content

Instantly share code, notes, and snippets.

@limitedmage
limitedmage / cracker.js
Created November 28, 2010 06:01
MD5 Cracker in JavaScript (free under http://j.mp/ms-pl )
// Global variables
var word, count, time, status; // search status
var running; // should status be updated?
var showPause, showResume, showStop; // to show or hide buttons
var worker; // main WebWorker
$(document).ready(function () {
// Update DOM every 500 ms
setInterval("updateDom()", 500);
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 27, 2010 at 05:56 PM
-- Server version: 5.1.41
-- PHP Version: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
delimiter |
create function num_emp (project char(2))
returns int
begin
declare cnt INT;
select count(ENO) into cnt from ASG where PNO = project group by PNO;
return cnt;
end|
delimiter ;
-module(mc).
-compile(export_all).
pmap(Fun, Lst) ->
% get current Pid
Self = self(),
% get a unique idendifier
Ref = erlang:make_ref(),
#include <stdio.h>
#include <stdlib.h>
typedef struct _node {
int value;
struct _node *next;
} node;
void CheckNotNull(void *pointer);
%% ITESM CEM, August 31, 2010.
%% Erlang Source File
%% Activity: Recursive Functions
%% Author: Juliana Pena, 1165536
-module(recursion).
-export([but_last/1, merge/2, insert/2, sort/1, binary/1, bcd/1, prime_factors/1, compress/1, encode/1, decode/1]).
but_last([_]) -> [];
but_last([H|T]) -> [H|but_last(T)].
## get the weather condition (rainy, cloudy) for any given city
## by @limitedmage julianapena.com
import urllib2
def getWeather(city):
#create google weather api url
url = "http://www.google.com/ig/api?weather=" + urllib2.quote(city)