Skip to content

Instantly share code, notes, and snippets.

View thiagodelgado111's full-sized avatar

Thiago Delgado thiagodelgado111

View GitHub Profile
@themeteorchef
themeteorchef / timezones.js
Last active September 12, 2024 13:11
Array of timezones as objects, sorted by offset and name.
[
  {
    "offset": "GMT-12:00",
    "name": "Etc/GMT-12"
  },
  {
    "offset": "GMT-11:00",
    "name": "Etc/GMT-11"
  },
  {
@jorinvo
jorinvo / challenge.md
Last active November 19, 2024 02:40
This is a little challenge to find out which tools programmers use to get their everyday tasks done quickly.

You got your hands on some data that was leaked from a social network and you want to help the poor people.

Luckily you know a government service to automatically block a list of credit cards.

The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.

The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:

YYYYMMDD.csv.

@simondlr
simondlr / gist:48b77206b2483932f0f5
Last active June 30, 2021 02:01
Function hooks in Solidity
contract Function_hook_example {
function Function_hook_example() {
owner = msg.sender;
}
modifier isOwner {
if (msg.sender == owner) {
_
}
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active March 24, 2025 20:20
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@biliboss
biliboss / android_na_pratica.md
Last active August 29, 2015 14:12
O Programa

Android na Prática

Mentor Gabriel Fonseca Linkedin

EVENTO FACEBOOK AQUI
INSCRIÇÃO AQUI

OBJETIVO

@jorinvo
jorinvo / screenshot.rb
Last active August 29, 2015 14:10
creates a number of screenshots for all video files in a directory
#!/usr/bin/env ruby
# ABOUT: creates a number of screenshots for all video files in a directory
# ATTENTION: make sure to run `gem install streamio-ffmpeg`
# USAGE: converter.rb <source dir> <target dir>
require "rubygems"
require "streamio-ffmpeg"
# CONFIGURATION:
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active February 27, 2025 20:09
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@chmanie
chmanie / mimeChecker.js
Last active October 3, 2022 00:34
Node MIME-Type checker using mmmagic. This can be used as an inspiration for more sophisticated solutions.
// Copyright (c) 2013 Christian Maniewski. License: MIT.
'use strict';
var _ = require('lodash')
, util = require('util')
, stream = require('stream')
, Transform = stream.Transform
, mmm = require('mmmagic')
, Magic = mmm.Magic;
@FGRibreau
FGRibreau / 0_readme.md
Created November 2, 2013 22:56
Mock NodeJS net.Socket with ReadWriteStream
var dummySocket = new ReadWriteNetStream();

// Debug
dummySocket.on('data', function(data){
console.log('write received', data);
});

dummySocket.write('hey !');
@ssstonebraker
ssstonebraker / sed cheatsheet
Created August 2, 2013 14:06 — forked from un33k/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'