Skip to content

Instantly share code, notes, and snippets.

Popa Marius Adrian mariuz

Block or report user

Report or block mariuz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FbEventsTest.cpp
#include "ibase.h"
#include <string>
#include <boost/thread.hpp>
#define BOOST_TEST_MODULE LegacyTests
#include <boost/test/included/unit_test.hpp>
using std::string;
using boost::thread;
@mariuz
mariuz / node-firebird-libfbclient.js
Last active Aug 29, 2015 — forked from xdenser/node-firebird-libfbclient.js
node-firebird vs node-firebird-libfbclient
View node-firebird-libfbclient.js
var cfg = require("./config").cfg;
var fb = require('firebird');
var util = require('util');
var events = require('events');
var http = require('http');
var con = fb.createConnection();
con.connectSync(cfg.db, cfg.user, cfg.password, cfg.role);
View firebird.vim
" Vim syntax file
" Language: SQL
" Maintainer: Scott Morgan < blumf7 at gmail dot com >
" Last Change: 2014-06-13
" Version: 1.0
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
View node-firebird-libfbclient.js
var cfg = require("./config").cfg;
var fb = require('../node_firebird/firebird');
var util = require('util');
var events = require('events');
var http = require('http');
var con = fb.createConnection();
con.connectSync(cfg.db, cfg.user, cfg.password, cfg.role);
View deploy.rb
# encoding: UTF-8
# Place in config/deploy.rb
# See: https://gist.github.com/joost/9343156
# Adapted to work with rbenv
namespace :rails do
desc "Open the rails console on primary app server"
task :console do
on roles(:app), primary: true do
rails_env = fetch(:stage)
execute_interactively "#{bundle_cmd} #{current_path}/script/rails console #{rails_env}"
View gist:9787422
<script language="JavaScript">
// Determine browser.
var isMinNS4 = 0;
var isMinIE4 = 0;
var NS6 = 1;
var origWidth; // Vars for NS resizing
var origHeight;
View Firebird2.5.x_on_debian_stable.diff
diff --git a/debian/control b/debian/control
index 57fcc0c..f3642a9 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Build-Depends:
bison,
debhelper (>= 8.1.3),
docbook-to-man,
- dpkg-dev (>= 1.16.1),
+ dpkg-dev,
@mariuz
mariuz / FacebookWordCloud.py
Created Apr 30, 2012 — forked from bostwick/FacebookWordCloud.py
Facebook News Feed Word Cloud
View FacebookWordCloud.py
#!/usr/bin/env python
import sys
import urllib2
import json
from collections import defaultdict
from nltk import word_tokenize
IGNORED_WORDS = ["!", ".", ",", "(", ")", "'s", ":", "?", "...", "$",
You can’t perform that action at this time.