This file contains 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
## 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) |
This file contains 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
%% 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)]. |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct _node { | |
int value; | |
struct _node *next; | |
} node; | |
void CheckNotNull(void *pointer); |
This file contains 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
-module(mc). | |
-compile(export_all). | |
pmap(Fun, Lst) -> | |
% get current Pid | |
Self = self(), | |
% get a unique idendifier | |
Ref = erlang:make_ref(), | |
This file contains 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
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 ; |
This file contains 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
-- 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"; |
This file contains 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
// 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); |
This file contains 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
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) | |
{ | |
settings = IsolatedStorageSettings.ApplicationSettings; | |
Uri savedpage; | |
if (settings.TryGetValue("page", out savedpage)) | |
{ | |
Browser.Source = savedpage; | |
} | |
if (IsTrialMode()) |
This file contains 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
# Ignore file for Visual Studio 2008 | |
# use glob syntax | |
syntax: glob | |
# Ignore Visual Studio 2008 files | |
*.obj | |
*.exe | |
*.pdb | |
*.user |
This file contains 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
private void CreateAd() | |
{ | |
#if !DEBUG | |
AdControl.TestMode = false; | |
#endif | |
AdControl ad = new AdControl( | |
#if DEBUG | |
"test_client", | |
"Image480_80", |
OlderNewer