# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
require "bundler/capistrano" | |
server "198.199.82.106", :web, :app, :db, primary: true | |
set :application, "CzechEngine" | |
set :user, "deployer" | |
set :deploy_to, "/home/#{user}/apps/#{application}" | |
set :deploy_via, :remote_cache | |
set :use_sudo, false |
var migrate = require('migrate') | |
, join = require('path').join | |
, fs = require('fs'); | |
module.exports = function(compound) { | |
var app = compound.app; | |
var options = {args: []}; | |
/** | |
* Migration template. |
Slides of text change with an effect where each letter fades in on it's own time. Lazy letters...
Forked from Bryan Levay's Pen Bubble-y Text Fader.
A Pen by Anonasaurus Rex on CodePen.
This is just AWESOME!!! | |
I just been able to make a server using nodejs and dartjs and calling npm library. I decided to share my find with you guys. | |
To be able to access npm library, you need to be able to access require. Until now, it was block, but by doing this little hack, you can call require and access npm library. The tricks is to put nodejs local variable in a global variable that you can access later. | |
#main.pre.js | |
GLOBAL.nodejs = {}; | |
GLOBAL.nodejs.__dirname = __dirname; | |
GLOBAL.nodejs.__filename = __filename; |
call plug#begin('~/.vim/plugged') | |
"--- neocompleter --- | |
"Plug 'Shougo/neocomplcache.vim' | |
"Plug 'Shougo/neocomplete.vim' | |
"Plug 'Shougo/neosnippet.vim' | |
"Plug 'Shougo/neosnippet-snippets' | |
Plug 'Valloric/YouCompleteMe' |
# Remove previous installations | |
sudo apt-get remove vim vim-runtime vim-tiny vim-common | |
# Install dependencies | |
sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev | |
# Fix liblua paths | |
sudo ln -s /usr/include/lua5.2 /usr/include/lua | |
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so |
# Remove previous installations | |
sudo apt-get remove vim vim-runtime vim-tiny vim-common | |
# Install dependencies | |
sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev | |
# Fix liblua paths | |
sudo ln -s /usr/include/lua5.2 /usr/include/lua | |
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so |
#!/bin/sh | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo mkdir /usr/include/lua5.1/include | |
sudo ln -s /usr/include/luajit-2.0 /usr/include/lua5.1/include | |
cd ~ | |
hg clone https://code.google.com/p/vim/ |