Skip to content

Instantly share code, notes, and snippets.

@coela
coela / cutoff.pl
Last active August 29, 2015 14:13
use strict;
use warnings;
use List::Util qw(sum);
my @data = ();
my @all = ();
my $keisu = 3;
my $cutoff = 0;
my $linenum = 0;
@coela
coela / visualizedeeplayer.py
Created September 17, 2014 14:50
visualizedeeplayer
from numpy.random import *
import pickle
import numpy
pixnum = 784
pixnum2 = 100
alpha = 0.1
numIterations = 500
===> Installing dependencies for gcc48-libs-4.8.2nb1
==========================================================================
The following variables will affect the build process of this package,
gcc48-libs-4.8.2nb1. Their current value is shown below:
* GCC_TARGET_MACHINE = x86_64-unknown-linux
You may want to abort the process now with CTRL-C and change their value
before continuing. Be sure to run `/home/coela/pkg/bin//bmake clean' after
the changes.
/usr/local/lib/python2.7/site-packages/sklearn/pls.py:7: DeprecationWarning: This module has been moved to cross_decomposition and will be removed in 0.16
"removed in 0.16", DeprecationWarning)
......./usr/local/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/arpack/arpack.py:1652: RuntimeWarning: invalid value encountered in sqrt
s = np.sqrt(eigvals)
..../usr/local/lib/python2.7/site-packages/scipy/sparse/compressed.py:209: SparseEfficiencyWarning: Comparing a sparse matrix with a nonzero scalar using != is inefficient, try using == instead.
" is inefficient, try using == instead.", SparseEfficiencyWarning)
E......................S.........................................../usr/local/lib/python2.7/site-packages/sklearn/manifold/spectral_embedding_.py:226: UserWarning: Graph is not fully connected, spectral embedding may not work as expected.
warnings.warn("Graph is not fully connected, spectral embedding"
......./usr/local/lib/python2.7/site-packages/sklearn/covariance/graph_lasso_.py:193: Runt
use 5.16.2;
use warnings;
use Data::Dump qw/dump/;
open my $FILE, '<' , $ARGV[0] || die;
my $hit;
my $last_query = 'hoge';
while (<$FILE>) {
chomp;
my @line = split /\t/;
use 5.12.4;
use Storable;
use Data::Dump qw/dump/;
use G;
my $f_energy = retrieve('./energy.store');
my $gb = load ('ecoli', 'no msg');
my $ribosome;
open my $RIBO, '<' ,$ARGV[0] || die;
use 5.12.2;
use warnings;
use Data::Dump qw/dump/;
use Data::Dumper;
use G;
use Storable;
my $hoge;
my $gb = load ("ecoli","no msg");
use 5.14.2;
use warnings;
use Data::Dump;
my %value;
open my $C, '<', $ARGV[0] || die;
while (<$C>) {
chomp;
my @line = split /\t/;
$value{$line[0]} = $line[1];
set-option -g default-shell /usr/local/bin/zsh
set-window-option -g utf8 on
set-window-option -g mode-keys vi
set-window-option -g automatic-rename off
set -g status-bg colour75
#!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request::Common qw(POST);
my $referer = 'http://www.phosphosite.org/sequenceLogoAction.do';
my $url = 'http://www.phosphosite.org/sequenceLogoSubmitAction.do';