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/env python | |
# -*- coding: utf-8 -*- | |
# Copyright 2011 Iuri Gomes Diniz. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without modification, are | |
# permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this list of | |
# conditions and the following disclaimer. |
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/perl | |
# SIC Assembler | |
# | |
# Iuri Gomes Diniz 20022688-2 | |
# Paulo Guto Oliveira 20022700-5 | |
# Filipe Gustavo Dias 20022679-3 | |
# | |
# MAILTO: [email protected] | |
# | |
# Gera sic.out no diretorio atual (caso tenha conseguido montar). |
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
Exercícios de Haskell da disciplina LPCP (UFRN 2005 - LPCP) | |
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
#include <math.h> | |
#define PI 3.14159265358979323846 /* pi */ | |
#include <stdio.h> | |
/** | |
* problema: http://acm.uva.es/p/v102/10209 | |
*/ | |
int main() { | |
double raio; |
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
# Criar nossa rede | |
set ns [ new Simulator ] | |
# cores para o NAM? | |
# arquivo de saida | |
set nf [ open trace.out w] | |
$ns trace-all $nf |
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
using System.Windows.Forms; | |
public class Box { | |
static void Main(string[] args) { | |
string mensagem; | |
string titulo; | |
DialogResult resultado; | |
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
@@ -12,7 +12,8 @@ | |
element.appendChild(p); | |
} | |
- ws = new WebSocket("ws://localhost:8080/"); | |
+ var Socket = "MozWebSocket" in window ? MozWebSocket : WebSocket; | |
+ var ws = new Socket("ws://localhost:8080/"); | |
ws.onmessage = function(evt) { debug("Message: " + evt.data); }; | |
ws.onclose = function() { debug("socket closed"); }; | |
ws.onopen = function() { |
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 | |
# test sqlalchemy memory leak introduced in 0.7.5 | |
# please refer to http://www.sqlalchemy.org/trac/ticket/2427 | |
# Author: Iuri Diniz | |
import gc | |
from sqlalchemy import create_engine, Table, __version__ | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, Integer, Unicode, String | |
from sqlalchemy.orm import sessionmaker |

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
#!/bin/sh | |
# Author: Iuri Gomes Diniz <[email protected]> | |
getSSHclient() { | |
set -- $SSH_CLIENT | |
export CLIENT_IP="$1" | |
} | |
. /usr/share/acpi-support/power-funcs |
OlderNewer