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
beautifulsoup4==4.4.1 | |
lxml==3.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
sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | |
sudo apt-key add mosquitto-repo.gpg.key | |
cd /etc/apt/sources.list.d/ | |
sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list | |
sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list | |
sudo apt-get update | |
sudo apt-get install mosquito |
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
app.directive('tableSortButtons', function () { | |
return { | |
restrict: 'E', | |
scope: { | |
predicate: '=' | |
}, | |
replace: true, | |
template: '<div class="btn-group pull-right">' + | |
'<button type="button" class="btn btn-default btn-xs" ng-click="asc()"><span class="glyphicon glyphicon-chevron-up"></span></button>' + | |
'<button type="button" class="btn btn-default btn-xs" ng-click="desc()"><span class="glyphicon glyphicon-chevron-down"></span></button>' + |
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
# coding: utf-8 | |
import jwt | |
from datetime import datetime | |
from flask import Flask, jsonify, request | |
app = Flask(__name__) | |
key = 'foo' | |
@app.before_request |
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
var app = angular.module('ChatApp', []); |
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
var app = angular.module('ChatApp', []); |
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
var io = require('socket.io').listen(9000, {log: false}); | |
var redis = require("redis").createClient(); | |
redis.subscribe('chat'); | |
redis.subscribe('notifications'); | |
var chat = io.of('/chat'). | |
on('connection', function (socket) { | |
socket.on('register room', function (room) { |
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
# coding: utf-8 | |
import re | |
from openerp import models, fields, api | |
from openerp.exceptions import ValidationError | |
class CustomerType(models.Model): | |
_name = 'hacom.customer.type' |
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
def create(self, values): | |
import pdb; pdb.set_trace() # this is your breakpoint | |
return super(SaleOrder, self).create(values) | |
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
pymongo | |
twython |