Skip to content

Instantly share code, notes, and snippets.

View Hecatoncheir's full-sized avatar
:octocat:
Focusing

Vitaliy Vostrikov Hecatoncheir

:octocat:
Focusing
View GitHub Profile
@Hecatoncheir
Hecatoncheir / index.html
Last active August 29, 2015 14:25
stof
<!--Export-->
<script type="application/dart">
import 'dart:html';
import 'package:polymer/polymer.dart';
export 'package:polymer/init.dart';
@whenPolymerReady
void onReady() {
var coreScrollHeader = querySelector('#scroll-panel');
//
// SmoothScroll for websites v1.2.1
// Licensed under the terms of the MIT license.
//
// You may use it in your theme if you credit me.
// It is also free to use on any individual website.
//
// Exception:
// The only restriction would be not to publish any
// extension for browsers or native application
#!/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/
@Hecatoncheir
Hecatoncheir / vimAndLua
Created March 22, 2015 00:10
ubuntu vim + lua
# 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
@Hecatoncheir
Hecatoncheir / vimrc
Last active October 21, 2016 14:44
My vimrc file
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'

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@Hecatoncheir
Hecatoncheir / Nodejs server with npm library and Dart
Created August 12, 2014 10:39
Nodejs server with npm library and Dart
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;
var migrate = require('migrate')
, join = require('path').join
, fs = require('fs');
module.exports = function(compound) {
var app = compound.app;
var options = {args: []};
/**
* Migration template.