-
liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
-
classifier-reborn: Bayesian and LSI classification
dependencies: GSL
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
/** 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 |
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
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 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 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 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
# This file should be placed on the directory of ~/blog/config | |
upstream unicorn { | |
server unix:/tmp/unicorn.todo.socket fail_timeout=0; | |
} | |
server { | |
listen 80 default; | |
#server_name example.com; | |
root /home/username/blog/public; |
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
require 'securerandom' | |
require 'em-http-request' | |
require 'pry-nav' | |
require 'json' | |
require 'faye/websocket' | |
require 'eventmachine' | |
require 'rest_client' | |
class WTV | |
def initialize(my_id, my_token) |
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
namespace :db do | |
namespace :enable do | |
desc "enable hstore extension" | |
task :hstore => [:environment, :load_config] do | |
ActiveRecord::Base.connection.execute('CREATE EXTENSION IF NOT EXISTS hstore;') | |
end | |
end | |
Rake::Task['db:schema:load'].enhance ['db:enable:hstore'] | |
end |
- Download Franz for your distribution from MeetFranz.com
sudo mkdir /opt/franz
- change into the same directory as the downloaded file, then
sudo tar -xf Franz-linux-x64-4.9.4.tgz -C /opt/franz
sudo touch /usr/share/applications/franz.desktop
thensudo vim /usr/share/applications/franz.desktop
paste the following lines into the file, then save the file:
[Desktop Entry]
Name=Franz
Comment=
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
OlderNewer