Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)
For the sake of "maintaining the tradition" here is the updated version.
-
Download the latest Lua and LuaJIT sources
-
Create temporary folder for Lua sources.
I assume you would useC:\Temp\
folder. -
Visit Lua FTP webpage and download the latest Lua source archive, currently it is
lua-5.4.3.tar.gz
-
- Use suitable software (7-Zip, WinRar, WinZip or TotalCommander) to unpack the archive.
#!flask/bin/python | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask_httpauth import HTTPBasicAuth | |
app = Flask(__name__, static_url_path = "") | |
auth = HTTPBasicAuth() | |
@auth.get_password | |
def get_password(username): | |
if username == 'miguel': |
# Code from best solution in page below: | |
# https://help.zoho.com/portal/community/topic/zoho-mail-servers-reject-python-smtp-module-communications | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.header import Header | |
from email.utils import formataddr | |
# Define to/from | |
sender = 'sender@example.com' |
from flask import Flask | |
from flask import request | |
import json | |
import requests | |
import hashlib as hasher | |
import datetime as date | |
node = Flask(__name__) | |
# Define what a Snakecoin block is | |
class Block: |
Chinese Brand "ITworks" , Model TW891, distributed in France and Belgium by Darty
- CPU: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz
- Video: Intel® HD Graphics for Intel Atom® Processor Z3700 Series
- Screen: 1280x800
- WiFi + BT: Realtek RTL8723BS_BT
- Disks: mmcblk1: mmc1:0001 DF4032 29.1 GiB
- RAM: 2GB DDR3 @ 1333 MHz
#Giant dictonary to hold key name and VK value | |
VK_CODE = {'backspace':0x08, | |
'tab':0x09, | |
'clear':0x0C, | |
'enter':0x0D, | |
'shift':0x10, | |
'ctrl':0x11, | |
'alt':0x12, | |
'pause':0x13, | |
'caps_lock':0x14, |
Cython has two major benefits:
- Making python code faster, particularly things that can't be done in scipy/numpy
- Wrapping/interfacing with C/C++ code
Cython gains most of it's benefit from statically typing arguments. However, statically typing is not required, in fact, regular python code is valid cython (but don't expect much of a speed up). By incrementally adding more type information, the code can speed up by several factors. This gist just provides a very basic usage of cython.
# Answer to a question on Flask mailing list | |
# http://librelist.com/browser//flask/2012/6/30/using-ajax-with-flask/ | |
# NOTE: *REALLY* don't do the thing with putting the HTML in a global | |
# variable like I have, I just wanted to keep everything in one | |
# file for the sake of completeness of answer. | |
# It's generally a very bad way to do things :) | |
# | |
from flask import (Flask, request, jsonify) | |
app = Flask(__name__) |