This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zz@rialabs:~/nodejs-tmp/node-mongodb-native$ make | |
make -C ./external-libs/bson | |
make[1]: Вход в каталог `/home/zz/nodejs-tmp/node-mongodb-native/external-libs/bson' | |
rm -rf build .lock-wscript bson.node | |
node-waf configure build | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
import logging | |
logging.basicConfig(level = logging.DEBUG) | |
log = logging.getLogger("messaged.expression") | |
class MessagedExpression(object): | |
def __init__(self, val, msg): | |
log.debug("%s evaluated" % val) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
import logging | |
logging.basicConfig(level = logging.DEBUG) | |
log = logging.getLogger("messaged.expression") | |
class MessagedExpression(object): | |
def __init__(self, val, msg): | |
self.msg = msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* yahoo_store_export_to_froogle.pl port to PHP | |
# Author: Anatoly Kudinov <zz@rialabs.org> | |
# Original description: | |
# yahoo_store_export_to_froogle.pl | |
# | |
# This is a Perl script to convert Yahoo! Stores XML feed into | |
# Froogle data feed, and FTP the file to Froogle's server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//code: | |
Value v= Value(typeof(Gdk.Color)); | |
style.get_style_property(typeof(Gtk.Widget), "link-color", v); | |
// compile error | |
error: Argument 3: Cannot pass value to reference or output parameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zz@zz-desktop:~$ mkvirtualenv cyctest | |
New python executable in cyctest/bin/python | |
Installing distribute..................................................................................................................................................................................done. | |
virtualenvwrapper.user_scripts Creating /home/zz/.virtualenvs/cyctest/bin/predeactivate | |
virtualenvwrapper.user_scripts Creating /home/zz/.virtualenvs/cyctest/bin/postdeactivate | |
virtualenvwrapper.user_scripts Creating /home/zz/.virtualenvs/cyctest/bin/preactivate | |
virtualenvwrapper.user_scripts Creating /home/zz/.virtualenvs/cyctest/bin/postactivate | |
(cyctest)zz@zz-desktop:~$ pip install -e https://github.com/fiorix/cyclone.git#egg=cyclon | |
--editable=https://github.com/fiorix/cyclone.git#egg=cyclon should be formatted with svn+URL, git+URL, hg+URL or bzr+URL | |
Storing complete log in /home/zz/.pip/pip.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$("#jsonpbtn").click(function() { | |
var surl = "http://www.fbloggs.com/sandbox/jsonp.php?callback=?"; | |
var me = $(this); | |
$.getJSON(surl, function(rtndata) { | |
me.feedback(rtndata.message, {duration: 4000, above: true}); | |
}); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib, urllib, re, sys | |
MAX_DEPTH = 2 | |
def argparser(): | |
return sys.argv[1] | |
def retrieve(host, path): | |
request = httplib.HTTPConnection(host) | |
request.request("GET", path, "", {'User-Agent' : 'Mozilla/5.0'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$inline_php = 'foo'; | |
?> | |
<script id="avia-filters" type="text/html"> | |
<div class="filter-content avia"> | |
<div class="slide-filter first"> | |
<div> | |
<select data-bind="slider:true, value: serviceClass.selection"> | |
<option value="B">One</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Hapi = require('hapi'); | |
const server = new Hapi.Server(); | |
server.connection({port: 3000}); | |
server.register(require('vision'), (err) => { | |
if (err) { | |
throw err; | |
} |