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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#define MSG "EchoD (v0.1): What you send me - I send you back!\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
#!/usr/bin/python | |
# -*- coding: UTF-8 | |
# | |
# shiba256 - the shiba 256bit hash (such hash, so secure, much crypto) | |
# | |
#---------▄--------------▄ | |
#--------▌▒█-----------▄▀▒▌ | |
#--------▌▒▒▀▄-------▄▀▒▒▒▐ | |
#-------▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐ | |
#-----▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐ |
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
menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_OK, NULL); | |
GtkWidget* menu_label = gtk_bin_get_child(GTK_BIN(menu_item)); | |
gtk_label_set_text(GTK_LABEL(menu_label), "new label text"); |
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
{ | |
"chain": "XTN", | |
"dht": { | |
"port": 5051, | |
"seeds": [] | |
}, | |
"dapps": { | |
"list": [], | |
"enabled": [] | |
}, |
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
open System | |
open Microsoft.Xna.Framework | |
open Microsoft.Xna.Framework.Graphics | |
open Microsoft.Xna.Framework.Storage | |
open Microsoft.Xna.Framework.Input | |
/// Logical type of a MapCell | |
type CellType = | |
| Empty |
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
#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 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 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 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 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]) |