Skip to content

Instantly share code, notes, and snippets.

View thbsousa's full-sized avatar

Thiago Sousa thbsousa

View GitHub Profile
@rmorenobello
rmorenobello / ODI - Repo - Warnings (SLT).sql
Last active March 2, 2026 08:19
Oracle Data Integrator (ODI) - useful queries, management, admin
-- Errors en el sentit de Warnings per files desviades a taules d'error E$.
-- Connexió: BISLT_PRO_WORKREP
select
--sc_par_par_folder.SCEN_FOLDER_NAME
sc_parent_folder.SCEN_FOLDER_NAME
, SNP_SCEN_REPORT.CONTEXT_CODE
, SNP_SCEN_REPORT.SESS_BEG
, ROUND(SNP_SCEN_REPORT.SESS_DUR/60) as DUR_MINS
, SNP_SCEN.SCEN_NAME
, SNP_SCEN.SCEN_VERSION
@ibraheem4
ibraheem4 / postgres-brew.md
Last active September 27, 2025 02:49
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@abernardobr
abernardobr / crypto_xml_a3.txt
Last active November 22, 2022 13:14
Example XML Crypto, using A3
var SignedXml = require('xml-crypto').SignedXml;
var FileKeyInfo = require('xml-crypto').FileKeyInfo;
LocalSchema.statics.sign = function(options, cb) {
var user = options.user;
if(user.orgId !== options.payload.orgId) {
return cb(HD.errors.unauthorizedAction, {});
}
@igorgatis
igorgatis / hexdump.js
Created March 15, 2016 16:42
Simple hexdump in Javascript
function hexdump(buffer, blockSize) {
blockSize = blockSize || 16;
var lines = [];
var hex = "0123456789ABCDEF";
for (var b = 0; b < buffer.length; b += blockSize) {
var block = buffer.slice(b, Math.min(b + blockSize, buffer.length));
var addr = ("0000" + b.toString(16)).slice(-4);
var codes = block.split('').map(function (ch) {
var code = ch.charCodeAt(0);
return " " + hex[(0xF0 & code) >> 4] + hex[0x0F & code];
@iwek
iwek / tsv-to-json.js
Last active March 20, 2023 02:46
TSV to JSON Conversion in JavaScript
//var tsv is the TSV file with headers
function tsvJSON(tsv){
var lines=tsv.split("\n");
var result = [];
var headers=lines[0].split("\t");
for(var i=1;i<lines.length;i++){
@iwek
iwek / csv-to-json.js
Last active July 5, 2024 14:29
CSV to JSON Conversion in JavaScript
//var csv is the CSV file with headers
function csvJSON(csv){
var lines=csv.split("\n");
var result = [];
var headers=lines[0].split(",");
for(var i=1;i<lines.length;i++){
@mbostock
mbostock / README.md
Last active June 7, 2023 18:33
Underscore’s Equivalents in D3

Collections

each(array)

Underscore example:

_.each([1, 2, 3], function(num) { alert(num); });
@tbtlr
tbtlr / get_barcode_from_image.js
Created June 1, 2010 19:33
Barcode recognition with JavaScript - Demo: http://bit.ly/djvUoy
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',