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 | |
import math | |
percentile = 0.95 | |
# http://sqa.fyicenter.com/Online_Test_Tools/Random_Real_Number_Float_Value_Generator.php | |
pixel_values = [31.674171850011, -14.601817055329, -50.326219329371, -16.396269623954, 60.024497592015, 9.1736615676739, 15.208291195156, -72.45523509377, -85.000746439726, -49.873983136473, 89.013266951911, 90.902370949905, -40.423479737516, -46.220096055987, -53.861242107865, -80.838195878063, 13.397552791211, -13.217278723279, -3.1931508546449, 5.4144153734829, -71.64644837003, -66.123504455591, -99.949724953312, 36.715438631751, -56.529802065148, -89.545732965393, -52.416536020418, 19.02381212714, 27.063275691617, 33.577258338636, 44.723530160998, -7.7681148545126, -48.941860835529, -43.828084610234, -1.9154353945261, 28.575669211676, -41.679723018346, -90.067412411598, 95.817001923065, 63.608590404067, 71.931231441271, 18.765631420463, -96.782253104387, -56.17893632162, -60.945051574294, -93.087966594846, 50.743922395115, 54.283560244883, 74.524974791892, -48.982292 |
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
(function ($, cornerstone, cornerstoneTools) { | |
'use strict'; | |
var toolType = 'mBasicRoi'; | |
var configuration = { | |
mRadius: 15 | |
}; | |
///////// BEGIN ACTIVE TOOL /////// |
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
Verifying myself: My Bitcoin username is +carlok. https://onename.io/carlok |
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
/* | |
Arduino Light (IN) / ServoMotor (OUT) | |
When light intensity is above 500, every second the engine steps 5° | |
clockwise: it steps anticlockwise the other way round... we also measure the | |
temperature but it is not used at the moment. | |
Video: http://youtu.be/77J9FhmZNK8 | |
(C) 2014 by Carlo Perassi - http://perassi.org/2014/06/19/arduino-light-in-servomotor-out - GPLv3 |
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
<?php | |
/* | |
PHP5 class written by Carlo Perassi [0] | |
based on the EAN13 functions of SVG barcode for PHP Application [1] | |
written by Trần Ngọc Quân [2]. | |
Same license. | |
[0] http://perassi.org/2013/05/28/php5-svg-ean13-barcode-class/ | |
[1] http://sourceforge.net/projects/phpsvgbarcode/ |
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
--- | |
--- Usare la nuova versione su https://github.com/carlok/comuni_sql | |
--- | |
CREATE TABLE IF NOT EXISTS regioni ( | |
id int(11) NOT NULL auto_increment, | |
nome varchar(100) NOT NULL, | |
PRIMARY KEY (id) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
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
<?php | |
// Carlo Perassi, 2012: snippet | |
// Simple snippet to get the YouTube pages of the commenters of a video | |
$youtube = new stdClass(); | |
$youtube->base = 'https://gdata.youtube.com/feeds/api/videos/'; | |
$youtube->user = 'https://gdata.youtube.com/feeds/api/users/'; | |
$youtube->id = $_GET['id']; // ID of the video, just for testing | |
// FIXME @s |
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
Author: Partha Pratim Das | |
Song: Naam Raji Tair Naam | |
Album: Jiban | |
Year: 2012 | |
(Translated from Assamese to English) | |
Listen the story of this one girl, | |
She who diminishes in a blink, | |
In a blink, does she smile. |
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
<?php | |
// ckcrypt => crytps and encodes in base64 a given string | |
// ckdecrypt => decrypt a base64 encoded string | |
function ckcrypt($mprhase) { | |
$td = mcrypt_module_open('tripledes', '', 'ecb', ''); | |
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND); | |
mcrypt_generic_init($td, MASTERKEY, $iv); | |
$crypted_value = mcrypt_generic($td, $mprhase); |
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
<html> | |
<head> | |
<script type='text/javascript' src='https://www.google.com/jsapi'></script> | |
<script type='text/javascript'> | |
/* | |
Carlo Perassi - http://perassi.org/ - 2011 | |
based on: | |
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | |
http://code.google.com/apis/ajax/playground/?type=visualization#geo_chart | |
http://code.google.com/intl/it-IT/apis/chart/interactive/docs/gallery/geochart.html |
NewerOlder