Skip to content

Instantly share code, notes, and snippets.

View Paxa's full-sized avatar

Pavel Evstigneev Paxa

View GitHub Profile
root@server-2:~/vertexdb# ./bin/compile2
source/basekit/source/UArray_character.c: In function ‘UArray_isalpha’:
source/basekit/source/UArray_character.c:16: warning: overflow in implicit constant conversion
source/basekit/source/UArray_character.c:16: warning: overflow in implicit constant conversion
source/basekit/source/UArray_character.c: In function ‘UArray_isdigit’:
source/basekit/source/UArray_character.c:18: warning: overflow in implicit constant conversion
source/basekit/source/UArray_character.c:18: warning: overflow in implicit constant conversion
source/basekit/source/UArray_character.c: In function ‘UArray_isgraph’:
source/basekit/source/UArray_character.c:19: warning: overflow in implicit constant conversion
source/basekit/source/UArray_character.c:19: warning: overflow in implicit constant conversion
/*
Script: mJSON.js
JSON encoder and decoder.
License:
MIT-style license.
See Also:
<http://www.json.org/>
#!/usr/bin/env ruby
# send request on website every 10 seconds
# checks request time and show growl notify and tell you by `say` if response time is more then 2 seconds
require 'rubygems'
require 'httparty'
require 'growl'
...
# including fix manualy, becouse loading lib/**/*.rb happends in Padrino.load!
require "lib/reloader_fix"
Padrino::Reloader::Stat.skip_folders = %W{photos utilites vertex-lib importers}
Padrino.load!
Pavel:vertexdb pavel$ cmake .
-- Found TokyoCabinet: /usr/local/lib/libtokyocabinet.dylib
-- Found Yajl: /usr/local/lib/libyajl.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pavel/Sites/vertexdb
Pavel:vertexdb pavel$ make
[100%] Building C object CMakeFiles/vartextdb.dir/source/main.c.o
In file included from /Users/pavel/Sites/vertexdb/source/VertexServer.h:5,
new Haml('userbar', function (params, render, use) {
with (params) {
this.use({
user: user.merge({full_name: user.first_name + ' ' + user.last_name}),
session: session
});
}
lib 'mootools' do
repo 'http://github.com/mootools/mootools-core.git'
tag '1.2.4'
end
lib 'mootools-more' do
repo 'http://github.com/mootools/mootools-more.git'
tag '1.2.4'
end
$('some-link').clk(function(el, event) {
Footer.render('my-friends', Profile.id);
});
var Present = {
id: function(present_id, callback){
if (var present = this.getCached(present_id)) {
callback(present);
} else {
this.fetch(present_id, callback);
@Paxa
Paxa / gist:743270
Created December 16, 2010 10:37 — forked from rwz/gist:743264
var wiget = new Class({
Includes: [Class.MethodMutators],
something: function () {
return new Element('div');
}.mutator('setter'),
onComplete: function () {
this.hide();
}.mutator('bind'),
class Report
class << self
attr_accessor :current
def store(string)
@current ||= new
@current.store(string)
end