[ create a new paste ] login | about

racerxdl

Name: Lucas Teske
Email:
Site/Blog: http://www.energylabs.com.br
Location: Brazil
Default language: PHP
Favorite languages: C, C++, PHP, Python, Pascal
About:

Saved pastes by racerxdl:

Python, pasted on Jun 11:
1
2
3
4
5
#!/usr/bin/python

from sys import stdout
from PySFML import *
from random import random
...
view (245 lines)
Plain Text, pasted on Apr 5:
1
2
3
4
5
import javax.script.ScriptEngineManager;
import javax.script.ScriptEngine;

class limit    {
	public static String formula = "x";
...
view (59 lines)
Plain Text, pasted on Apr 5:
1
2
3
4
5
class limit	{
	public static void main (String[] args)	{
		double res = limit( 2 );
		System.out.println(" O limite é : " + res );
	}
...
view (34 lines)
Python, pasted on Apr 5:
1
2
3
4
5
#coding: utf-8

def f(x):
	return ( x / ( x*x + 1) )	
#return 4 * (( (x ** 2) - 4 ) / ( x - 2 ))
...
view (33 lines, 1 line of output)
PHP, pasted on Feb 20:
1
2
3
4
5
<?php
$mp3 = "teste.mp3"; 
$genre_arr = array("Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge",
 "Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B",
 "Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska",
...
view (49 lines)
PHP, pasted on Oct 16:
1
2
3
4
5
<?
echo " const unsigned int16 notas[] = {";
for($i=0;$i<128;$i++) {
    $period = 65535-round(1000000 / (27.5 * pow(2,($i-9)/12)));
    if($i==0) echo($period); else echo(",$period");
...
view (8 lines, 1 line of output)
PHP, pasted on Oct 16:
1
2
3
4
5
<?
echo " const unsigned int16 notas[] = {";
for($i=0;$i<128;$i++) {
    $period = round(1000000 / (27.5 * pow(2,($i-9)/12)));
    if($i==0)
...
view (11 lines, 1 line of output)
PHP, pasted on Oct 16:
1
2
3
4
5
<?

for($i=0;$i<128;$i++) {
    $period = 1/ (27.5 * pow(2,($i-9)/12));
    echo("Nota: $i Periodo: $period\r\n");
...
view (8 lines, 128 lines of output)
PHP, pasted on Oct 16:
1
2
3
4
5
<?

for($i=0;$i<128;$i++) {
    $freq = 27.5 * pow(2,($i-9)/12);
    echo("Nota: $i Frequência: $freq\r\n");
...
view (8 lines, 128 lines of output)
Plain Text, pasted on Oct 9:
1
2
3
4
5
<script type="text/javascript">
function toNotationUnit(v) {
	var unit;
	var submultiplo = ["","m","&micro;","n","p","f","a","z","y"];
	var multiplo 	= ["","k","M","G","T","P","E","Z","Y"]
...
view (36 lines)
Plain Text, pasted on Oct 8:
1
2
3
4
5
<pre>
&lt;script type="text/javascript"&gt;
function putunit(v,unit) {
	var lastunit = '';
	var units = ["m","&micro;","n","p"];
...
view (28 lines)
Plain Text, pasted on Sep 13:
1
2
3
4
5
<script type="text/javascript">

var width = 640;
var height = 640;

...
view (60 lines)
PHP, pasted on Sep 7:
1
2
3
4
5
<?
include("tmhOAuth.php");

        $tmhOAuth = new tmhOAuth(array(
          'consumer_key'    => "Sua Consumer Key",
...
view (14 lines)
Python, pasted on Sep 7:
1
2
3
4
5
import sys
import tweepy

CONSUMER_KEY = 'Coloque aqui sua Consumer Key'
CONSUMER_SECRET = 'Coloque aqui sua Consumer Secret'
...
view (12 lines)
PHP, pasted on Feb 24:
1
2
3
4
5
<?

$base = " - LINHA TESTE TESTE TESTE TESTE TESTE TESTE TESTE TESTE TESTE TESTE TESTE TE";

$i = 0;
...
view (14 lines, 60 lines of output)