Skip to content

Instantly share code, notes, and snippets.

View t0rr3sp3dr0's full-sized avatar

Pedro Tôrres t0rr3sp3dr0

View GitHub Profile
$( ".green-score" ).css( "cursor", "pointer" ).css( "background-color", "#337ab7" ).css( "color", "white" );
$( ".green-score" ).click(function() {
$( this ).unbind( "click" );
setTimeout("alert('Processando...');", 1);
var self = this;
var _id;
var _user;
var time = $( this ).text().split(' ')[0];
var user = $( this )[0].parentElement.parentElement.getElementsByTagName('td')[1].innerText;
$.getJSON( document.URL.replace('/contest/', '/api/contest/') + '/scoreboard', function( data ) {
@t0rr3sp3dr0
t0rr3sp3dr0 / CInstala.sh
Last active November 15, 2023 22:05
bash <(wget -qO- cin.ufpe.br/~phts)
#!/bin/bash
# UTILITIES BEGIN
function L {
cat << EOF
██████╗ ██╗
██╔════╝ ██║
██║ ██║ ███╗ ██╗ ███████╗ ████████╗ █████╗ ██╗ █████╗
██║ ██║ ████╗ ██║ ██╔════╝ ╚══██╔══╝ ██╔══██╗ ██║ ██╔══██╗
██║ ██║ ██╔██╗ ██║ ███████╗ ██║ ███████║ ██║ ███████║
@t0rr3sp3dr0
t0rr3sp3dr0 / .vimrc
Last active September 25, 2016 22:45
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
@t0rr3sp3dr0
t0rr3sp3dr0 / .bashrc
Last active September 14, 2016 15:22
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
#!/bin/bash
# UTILITIES BEGIN
function L {
cat << EOF
██╗
██║
██║ ██████╗ ██████╗██╗ ██╗██████╗ ██████╗ ██╗ ██╗███╗ ██╗
██║ ██╔═══██╗██╔════╝██║ ██╔╝██╔══██╗██╔═══██╗██║ ██║████╗ ██║
██║ ██║ ██║██║ █████╔╝ ██║ ██║██║ ██║██║ █╗ ██║██╔██╗ ██║
This file has been truncated, but you can view the full file.
@t0rr3sp3dr0
t0rr3sp3dr0 / ff
Last active October 18, 2017 21:42
This file has been truncated, but you can view the full file.
#!/bin/bash
function DF {
CMD="$(declare -f DF);$(declare -f $1);$1"
gnome-terminal -e "bash -ic '${CMD//\'/\'\"\'\"\'}'"
}
function MAIN {
{
while true; do
echo `expr $RANDOM \% 100`
for (( I = 0; I < 32; ++I )); do
const run = (glue, stdin, stdout, stderr) => {
const iframe = document.createElement('iframe');
iframe.setAttribute('style', 'display: none; ');
iframe.src = 'about:blank';
iframe.onload = () => {
iframe.contentWindow.Module = {
preRun: [
() => {
const _in = new TextEncoder('ascii').encode(stdin).values();
iframe.contentWindow.FS.init(() => _in.next().value, null, null);