This script build a Python script (.py
) to Windows executable (.exe
).
The output executable can be run:
- regardless Windows versions,
- without Python installation,
- without module installation.
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import os.path | |
import re | |
from osgeo import gdal | |
from osgeo import gdal_array | |
from osgeo import osr |
from django.conf import settings | |
from django.core.cache import cache | |
from django.contrib.auth.models import User | |
from django.utils.deprecation import MiddlewareMixin | |
ONLINE_THRESHOLD = getattr(settings, 'ONLINE_THRESHOLD', 60 * 15) | |
ONLINE_MAX = getattr(settings, 'ONLINE_MAX', 50) | |
def get_online_now(self): | |
return User.objects.filter(id__in=self.online_now_ids or []) |
while true; do | |
curl http://api.sos.ca.gov/api/president/party/democratic?format=csv | tail -n +5 > results-$(date +%m-%d_%H%M) | |
python process.py | |
sleep 1h | |
done |
# get into the master branch | |
git checkout master | |
# create a new branch for the changes and check it out | |
git checkout -b dev_branch | |
# stash the changes until we revert master | |
git stash | |
# go back to master |
<div style="width:600px;background-color:#fff;padding:10px 20px 20px;font:14px/21px HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, sans-serif;"> | |
<h3 style="color:#da5024;clear:both;">See the complete iOS Version History</h3> | |
<a href="http://www.kinvey.com/blog/2429/ios-version-history-a-visual-timeline"><img alt="Kinvey Backend as a Service" src="http://www.kinvey.com//blog/images/2013/02/ios-version-history-a-visual-timeline.jpg?w=600" width="600" /></a> | |
<div style="width:100%;text-align:center;margin-top:5px;">From: <a style="text-decoration:none;color:#da5024;" href="http://www.kinvey.com/blog/2429/ios-version-history-a-visual-timeline">Kinvey Backend as a Service</a></div> | |
</div> |
/* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström | |
http://underscorediscovery.com | |
MIT Licensed. See LICENSE for full license. | |
Usage : node simplest.app.js | |
*/ | |
var |
-- drop table data_field_descriptors; | |
create table data_field_descriptors | |
( | |
sort id integer, | |
segment varchar(4), | |
table number varchar(12), | |
field name varchar(510), | |
field code varchar(20), | |
decimal integer | |
); |
# kudos to https://github.com/drewlesueur | |
# stolen from here: https://github.com/blog/266-fast-forward-your-fork#comment-11535 | |
git checkout -b upstream-master | |
git remote add upstream git://github.com/documentcloud/underscore.git | |
git pull upstream master | |
git checkout master // [my master branch] | |
git merge upstream-master | |
git push origin master |