A nice moving bookshelf animation done only with css animations.
From Dribbble : https://dribbble.com/shots/2332418-Book-shelf-Loader-Icon
A Pen by Grélard Antoine on CodePen.
| import sqlite3 | |
| from flask import Flask, request, jsonify, render_template_string | |
| app = Flask(__name__) | |
| DATABASE = 'requests_log.db' | |
| MAX_REQUESTS = 1000 | |
| DELETE_BATCH_SIZE = 500 # Number of records to delete when exceeding MAX_REQUESTS | |
| def init_db(): |
A nice moving bookshelf animation done only with css animations.
From Dribbble : https://dribbble.com/shots/2332418-Book-shelf-Loader-Icon
A Pen by Grélard Antoine on CodePen.
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| """ DMLogger """ | |
| import tkinter as tk | |
| import tkinter.scrolledtext as tkscrolledtext | |
| import http.server as httpserver | |
| import _thread as thread | |
| import sqlite3 | |
| import json | |
| from urllib import parse |
| import sys | |
| def punto_en_poligono(poly, p_x, p_y): | |
| res = "Citizen" | |
| count = 0 | |
| cantidad_de_vertices = len(poly) | |
| p_x1, p_y1 = poly[0] | |
| for i in range(cantidad_de_vertices): |
| """ | |
| Original Author Ernesto P. Adorio, Ph.D | |
| Original Source: http://my-other-life-as-programmer.blogspot.com/2012/02/python-finding-nearest-matching-color.html | |
| Modifed By: JDiscar | |
| This class maps an RGB value to the nearest color name it can find. Code is modified to include | |
| ImageMagick names and WebColor names. | |
| 1. Modify the minimization criterion to use least sum of squares of the differences. | |
| 2. Provide error checking for input R, G, B values to be within the interval [0, 255]. |
| server { | |
| listen 80 default_server; | |
| root /var/www/html/proyecto/web; | |
| index index.php index.html index.htm index.nginx-debian.html; | |
| location /blog { | |
| try_files $uri $uri/ @wordpress; | |
| } | |
| location @wordpress { |
| stylus -c -u nib -w src/static/styl/ -o src/static/css/ |
| class ForceDefaultLanguageMiddleware(object): | |
| """ | |
| Ignore Accept-Language HTTP headers | |
| This will force the I18N machinery to always choose settings.LANGUAGE_CODE | |
| as the default initial language, unless another one is set via sessions or cookies | |
| Should be installed *before* any middleware that checks request.META['HTTP_ACCEPT_LANGUAGE'], | |
| namely django.middleware.locale.LocaleMiddleware | |
| """ |
| ps -ef | grep myProcessName | grep -v grep | awk '{print $2}' | xargs kill -9 |
| """A basic database set-up for Travis CI. | |
| The set-up uses the 'TRAVIS' (== True) environment variable on Travis | |
| to detect the session, and changes the default database accordingly. | |
| Be mindful of where you place this code, as you may accidentally | |
| assign the default database to another configuration later in your code. | |
| """ | |
| import os |