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
$('.modal') | |
.on('shown', function(){ | |
$('body').css({overflow: 'hidden'}); | |
}) | |
.on('hidden', function(){ | |
$('body').css({overflow: ''}); | |
}); |
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
require "github_api" | |
user = '' | |
token = '' | |
github = Github.new oauth_token: token | |
coderwall_orgs = [] | |
github.orgs.list.each do |org| | |
coderwall_orgs << org.login if org.login =~ /^coderwall/ |
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
rand_port(){ | |
port=$(( 1000+( $(od -An -N2 -i /dev/random) )%(1023+1) )) | |
while : | |
do | |
(echo >/dev/tcp/localhost/$port) &>/dev/null && port=$(( 1000+( $(od -An -N2 -i /dev/random) )%(1023+1) )) || break | |
done | |
echo "$port" | |
} | |
phpmin(){ |
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
/** El ejemplo de aqui muestra como cargar una ontologia | |
* cualquiera, ya sea de la Web o de una copia local. | |
* | |
* @throws OWLOntologyCreationException */ | |
public void cargarOntologia() throws OWLOntologyCreationException | |
{ | |
// Generar nuestro manejador de ontologias. | |
OWLOntologyManager manejador = OWLManager.createOWLOntologyManager(); | |
// Primero probando a cargar una ontologia desde la Web |
NewerOlder