This file contains hidden or 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
struct TwoWayRange{ | |
start: i32, | |
end: i32, | |
step: i32, | |
current: i32 | |
} | |
enum TwoWayRangeError { | |
ZeroStep | |
} |
This file contains hidden or 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
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 |
This file contains hidden or 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
centro_da_tela = ( | |
tamanho_da_tela / | |
(tamanho_da_tela / tamanho_da_tela_original) | |
) / 2 |
This file contains hidden or 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
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) ) |
This file contains hidden or 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
<?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; |
This file contains hidden or 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
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"A File Icon", | |
"Advanced CSV", | |
"AutoFoldCode", |
This file contains hidden or 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
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){ |
This file contains hidden or 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
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) | |
} | |
} |
This file contains hidden or 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
################################### 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' |
NewerOlder