(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Node-WebKit CheatSheet | |
# Download: https://github.com/rogerwang/node-webkit#downloads | |
# Old Versions: https://github.com/rogerwang/node-webkit/wiki/Downloads-of-old-versions | |
# Wiki: https://github.com/rogerwang/node-webkit/wiki | |
# How: https://github.com/rogerwang/node-webkit/wiki/How-node.js-is-integrated-with-chromium | |
# 1. Run your application. | |
# https://github.com/rogerwang/node-webkit/wiki/How-to-run-apps |
This is a collection of information on PostgreSQL and PostGIS for what I tend to use most often.
//spam message the chats with thirugram.js | |
//open up telegram web and go to the chat you want to spam | |
//open console ( Ctrl + Shift + J ) | |
//execute the code | |
var message = ""; //spam message | |
var interval = 1 ; // in seconds | |
var count = 10 ; //number of times to send | |
var notifyInterval = 5 ; //notify | |
var i = 0 ; | |
var timer = setInterval(function(){ |
/** | |
* This Google Sheets script keeps data in the specified column sorted any time | |
* the data changes. | |
* | |
* After much research, there wasn't an easy way to automatically keep a column | |
* sorted in Google Sheets, and creating a second sheet to act as a "view" to | |
* my primary one in order to achieve that was not an option. Instead, I | |
* created a script that watches for when a cell is edited and triggers | |
* an auto sort. | |
* |
## At the get-together of the AGC developers celebrating the 40th anniversary | |
## of the first moonwalk, Don Eyles (one of the authors of this routine along | |
## with Peter Adler) has related to us a little interesting history behind the | |
## naming of the routine. | |
## | |
## It traces back to 1965 and the Los Angeles riots, and was inspired | |
## by disc jockey extraordinaire and radio station owner Magnificent Montague. | |
## Magnificent Montague used the phrase "Burn, baby! BURN!" when spinning the | |
## hottest new records. Magnificent Montague was the charismatic voice of | |
## soul music in Chicago, New York, and Los Angeles from the mid-1950s to |
## I'm working on a project using Flask to access a database and then | |
## pass on query data to a client where the data will be graphed | |
## in the browser. | |
## I wanted to enable users to retrieve the graph data | |
## in a csv file after clicking a button on the client. | |
## This is a generalized version of how I did it: | |
# imports other than Flask | |
import csv | |
from sqlalchemy import create_engine |
#!/bin/bash | |
sudo apt-get install apt-transport-https ca-certificates -y | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo rm -f /etc/apt/sources.list.d/docker.list | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -u -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get purge lxc-docker |
# need to 'pip install grequests' | |
import grequests | |
from html.parser import HTMLParser | |
class FetchTitleTag(HTMLParser): | |
def __init__(self): | |
HTMLParser.__init__(self) | |
self.inTitle = False | |
def handle_starttag(self, tag, attrs): | |
if tag == 'title': |
#!/usr/bin/env python3 | |
import http.client | |
import json | |
connection = http.client.HTTPConnection('localhost', port=5000) | |
headers = {'Content-type': 'application/json'} | |
connection.request('GET', '/set/foo?value=474', headers=headers) | |
response = connection.getresponse().read() |