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
x = -1.01:.001:1.01; | |
y = 4/5*(sqrt(1-x.^2) + sqrt(abs(x))); | |
z = 4/5*(-sqrt(1-x.^2) + sqrt(abs(x))); | |
plot(x,y,'r'); | |
plot(x,z,'r'); | |
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 <stdio.h> | |
#include <malloc.h> | |
#define N 8 | |
/** Recursive delete like a pro | |
* where: 'ar' is the array, 'n' is the size, 'start' is 0 when | |
* called first time, 'irem' is the index of element to remove. | |
* @return the new size of the array (n-1) |
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 <stdio.h> | |
#include <malloc.h> | |
#define N 9 | |
#define M 5 | |
void print_ar (int *a, int n) | |
{ | |
for (int i=0;i<n;i++) printf ("%d ", a[i]); |
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
import requests | |
import time | |
from gi.repository import Notify | |
Notify.init("getCase") | |
def getCase (): | |
d = requests.get ("http://www.subito.it/annunci-sardegna/affitto/appartamenti/cagliari/cagliari/?pe=5").text | |
return int (d.split ("Tutti: ")[1].split ('<')[0]) |
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
open Printf;; | |
open Thread;; | |
let async f a fc = | |
let wrapper a = fc (f a) |> ignore in | |
Thread.create wrapper a; | |
Thread.yield () | |
;; | |
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
pdftops $1 | |
ps2pdf $1 | |
pdfcrop $1 |
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
var frisby = require ('frisby'); | |
/* FrisbyChain */ | |
var frisbyChain = function (baseData, callChain) { | |
callChain.push (function (data) {}); | |
var nextPrepare = function (data, i) { | |
if (i < callChain.length) | |
return function (data, next) { | |
return callChain[i] (data, nextPrepare (data, i+1)); |
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
#use "printf.ml";; | |
(* Type def *) | |
type json = | |
| Object of (string * json) list | |
| Bool of bool | |
| Float of float | |
| Int of int | |
| Null | |
| String of string |
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
{ | |
"chain": "XTN", | |
"dht": { | |
"port": 5051, | |
"seeds": [] | |
}, | |
"dapps": { | |
"list": [], | |
"enabled": [] | |
}, |
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 | |
# -*- coding: UTF-8 | |
# | |
# shiba256 - the shiba 256bit hash (such hash, so secure, much crypto) | |
# | |
#---------▄--------------▄ | |
#--------▌▒█-----------▄▀▒▌ | |
#--------▌▒▒▀▄-------▄▀▒▒▒▐ | |
#-------▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐ | |
#-----▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐ |