[ Launch: struct_test ] d4dc295cc49f8b977a7c by hughes
This file contains hidden or 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
#!/bin/bash | |
idletime=$((1000*60*5)) # 5 minutes in milliseconds | |
idleMessageSent=0 | |
while true; do | |
idle=`xprintidle` | |
if [[ "$idle" -gt "$idletime" ]]; then | |
if [[ "$idleMessageSent" -eq 0 ]]; then | |
if (gnome-screensaver-command -q | grep "is active"); then |
This file contains hidden or 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 R = 6371; // km | |
var φ1 = lat1.toRadians(); | |
var φ2 = lat2.toRadians(); | |
var Δφ = (lat2-lat1).toRadians(); | |
var Δλ = (lon2-lon1).toRadians(); | |
var a = Math.sin(Δφ/2) * Math.sin(Δφ/2) + | |
Math.cos(φ1) * Math.cos(φ2) * | |
Math.sin(Δλ/2) * Math.sin(Δλ/2); | |
var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); |
This file contains hidden or 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
from passlib.apps import custom_app_context as pwd_context | |
class User(db.Model): | |
# ... | |
def set_password(self, password): | |
self.password_hash = pwd_context.encrypt(password) | |
def verify_password(self, password): | |
return pwd_context.verify(password, self.password_hash) |
This file contains hidden or 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
2014-11-20T01:23:29.020776 | |
login attempt: sh ('111.248.112.58', 43366) | |
2014-11-20T01:23:36.252145 | |
login attempt: root sh ('111.248.112.58', 43370) | |
2014-11-20T01:23:43.476545 | |
login attempt: admin sh ('111.248.112.58', 43371) | |
2014-11-20T01:23:50.702848 | |
login attempt: dreambox sh ('111.248.112.58', 43374) | |
2014-11-20T01:23:57.927477 | |
login attempt: vizxv sh ('111.248.112.58', 43375) |
[ Launch: grid-test ] 58969de0a5b5e1accc4d by hughes
[ Launch: grid-constrained force layout ] c4dcc2c597da1a4c073c by hughes
[ Launch: grid-constrained force layout ] 340f20e7e540dd35ccdc by hughes[ Launch: grid-constrained force layout ] c4dcc2c597da1a4c073c by hughes
[ Launch: chargeTest ] 5cfa8a184445d0a9c3a2 by hughes
From Wikipedia:
Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.
Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.