Skip to content

Instantly share code, notes, and snippets.

View didicodethat's full-sized avatar

Mauricio didicodethat

View GitHub Profile
struct TwoWayRange{
start: i32,
end: i32,
step: i32,
current: i32
}
enum TwoWayRangeError {
ZeroStep
}
current directory: /home/computador/.rvm/gems/ruby-2.4.0/gems/puma-3.4.0/ext/puma_http11
/home/computador/.rvm/rubies/ruby-2.4.0/bin/ruby -I /home/computador/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0 -r ./siteconf20200624-27830-bam6wn.rb extconf.rb --with-cppflags\=-I/home/computador/.rvm/src/openssl-1.0.1i --with-ldflags\=-L/home/computador/.rvm/src/openssl-1.0.1i
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... yes
creating Makefile
current directory: /home/computador/.rvm/gems/ruby-2.4.0/gems/puma-3.4.0/ext/puma_http11
make "DESTDIR=" clean
centro_da_tela = (
tamanho_da_tela /
(tamanho_da_tela / tamanho_da_tela_original)
) / 2
@didicodethat
didicodethat / Numpad 0 as Cookie Click
Last active January 29, 2018 16:15
Simple plugin to bind a keyboard key as a cookie click
return function(graphics, x, y, rx, ry, angle, size, distance)
local g = graphics
local i
local size = size or 1
local half = size/2
local distance = distance or 1
for i = 0, 15 do
g.origin()
g.translate(x, y - (i * distance) )
@didicodethat
didicodethat / YoutubeUrlParser.php
Last active September 15, 2017 17:49
A simple multipurpose php youtube url parser, this was used for specific needs so it is not really generic.
<?php
class YoutubeUrlParser
{
const REGULAR_URL_FORMAT = '/^https?:\/\/(www\.)?youtube\.com\/watch/';
const EMBEDDED_URL_FORMAT = '/^https?:\/\/(www\.)?youtube\.com\/embed/';
const SHARE_URL_FORMAT = '/^https?:\/\/(www\.)?youtu\.be\//';
private $originalUrl;
private $videoId;
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"Advanced CSV",
"AutoFoldCode",
module.exports = function initAbsoluteSideLine($, mainSelector, $window, $document){
var line = $('<div class="absolute-side-line"></div>');
line.css('position', 'absolute');
var offsets = $(mainSelector).map(function(k,el){
var element = $(el);
return {top: function(){ return element.offset().top; }, height: element.height.bind(element)};
}).toArray();
var getActualSectionOnPosition = function(actualTop){
const repl = require('repl')
const readline = require('readline')
const nil = {_active: false, _nil: true}
// Helper Functions
const callOnEachKey = (object, method_name, ...args) => {
for(let key in object){
object[key][method_name](...args)
}
}
################################### Logging ####################################
## Logging configuration as json
## Defaults to: None
#THUMBOR_LOG_CONFIG = None
## Log Format to be used by thumbor when writing log messages.
## Defaults to: %(asctime)s %(name)s:%(levelname)s %(message)s
#THUMBOR_LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'