This file contains 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
$( ".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 ) { |
This file contains 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
#!/bin/bash | |
# UTILITIES BEGIN | |
function L { | |
cat << EOF | |
██████╗ ██╗ | |
██╔════╝ ██║ | |
██║ ██║ ███╗ ██╗ ███████╗ ████████╗ █████╗ ██╗ █████╗ | |
██║ ██║ ████╗ ██║ ██╔════╝ ╚══██╔══╝ ██╔══██╗ ██║ ██╔══██╗ | |
██║ ██║ ██╔██╗ ██║ ███████╗ ██║ ███████║ ██║ ███████║ |
This file contains 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
" 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 |
This file contains 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
# 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 |
This file contains 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
# ~/.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 |
This file contains 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
#!/bin/bash | |
# UTILITIES BEGIN | |
function L { | |
cat << EOF | |
██╗ | |
██║ | |
██║ ██████╗ ██████╗██╗ ██╗██████╗ ██████╗ ██╗ ██╗███╗ ██╗ | |
██║ ██╔═══██╗██╔════╝██║ ██╔╝██╔══██╗██╔═══██╗██║ ██║████╗ ██║ | |
██║ ██║ ██║██║ █████╔╝ ██║ ██║██║ ██║██║ █╗ ██║██╔██╗ ██║ |
This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.
This file contains 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
#!/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 |
This file contains 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 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); |
OlderNewer