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
//@+leo-ver=5-thin | |
//@+node:caminhante.20241010170109.1: * @file TAP.h | |
//@@language c | |
#pragma once | |
//@+others | |
//@+node:caminhante.20241010170419.1: ** /includes | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.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
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <assert.h> | |
#define SIZE(ARR) (sizeof(ARR)/sizeof(ARR[0])) | |
#define DEFAULT(STRUC) (STRUC){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
#!/bin/bash | |
#@+leo-ver=5-thin | |
#@+node:caminhante.20220104131025.1: * @file binstore.sh | |
#@@first | |
#@+others | |
#@+node:caminhante.20220106042659.1: ** Misc | |
#@+node:caminhante.20220104131041.1: *3* function hash | |
function hash { | |
echo -n "$@" | md5sum | cut -d' ' -f1 | |
} |
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
// Itens no Marketplace Touch | |
function xpathQuery (query, parent) { | |
var i = document.evaluate(query, parent, null, XPathResult.ANY_TYPE, null); var a = []; | |
do { var b = i.iterateNext(); if (b==null) {break;}; a.push(b); } while (true); return a; | |
} | |
function clickItems (x) { if (x.length) { x.shift().click(); setTimeout( clickItems.bind(null,x ), 5 ); } } | |
var a = xpathQuery('//div[@class="_a58 _9_7 _2rgt _1j-g _2rgt"]/img',document); a.shift(); clickItems(a); |
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> | |
int main () { | |
void (*f)() = // um ponteiro de função | |
({void _ () {puts("oi");}; &_;}); // uma lambda | |
f(); // uma chamada de lambda | |
return 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
#!/usr/bin/env python2 | |
from __future__ import print_function | |
from docutils import core | |
from docutils.writers.html5_polyglot import Writer,HTMLTranslator | |
import sys, os | |
import getopt | |
class File (): | |
def __init__ (self,filename): |