Skip to content

Instantly share code, notes, and snippets.

@ironfroggy
ironfroggy / simulate_keypress.js
Created May 16, 2023 15:15 — forked from ejoubaud/simulate_keypress.js
Simulate keypress that works in Google nav in Chrome
// Based on http://stackoverflow.com/a/10520017/1307721 and http://stackoverflow.com/a/16022728/1307721
Podium = {};
Podium.keydown = function(k) {
var oEvent = document.createEvent('KeyboardEvent');
// Chromium Hack
Object.defineProperty(oEvent, 'keyCode', {
get : function() {
TASK [pulp_webserver : Symlink nginx snippets] *********************************
ok: [default] => (item={'changed': False, 'rc': 0, 'stdout': '/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_ansible/app/webserver_snippets/nginx.conf\r\n', 'stdout_lines': ['/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_ansible/app/webserver_snippets/nginx.conf'], 'stderr': 'Shared connection to 192.168.121.144 closed.\r\n', 'stderr_lines': ['Shared connection to 192.168.121.144 closed.'], 'failed': False, 'failed_when_result': False, 'item': {'key': 'pulp-ansible', 'value': {}}, 'ansible_loop_var': 'item'})
ok: [default] => (item={'changed': False, 'rc': 0, 'stdout': '/usr/local/lib/pulp/lib64/python3.7/site-packages/galaxy_ng/app/webserver_snippets/nginx.conf\r\n', 'stdout_lines': ['/usr/local/lib/pulp/lib64/python3.7/site-packages/galaxy_ng/app/webserver_snippets/nginx.conf'], 'stderr': 'Shared connection to 192.168.121.144 closed.\r\n', 'stderr_lines': ['Shared connection to 192.168.121.144 closed.'], 'faile
TASK [pulp : Install Pulp plugins from source] *********************************
ok: [pulp3-source-fedora31] => (item={'key': 'pulp-ansible', 'value': {'source_dir': '/home/vagrant/devel/pulp_ansible'}})
failed: [pulp3-source-fedora31] (item={'key': 'galaxy-ng', 'value': {'source_dir': '/home/vagrant/devel/galaxy_ng'}}) => {
"ansible_loop_var": "item",
"changed": false,
"cmd": [
"/usr/local/lib/pulp/bin/pip3",
"install",
"-c",
"/usr/local/lib/pulp/pip_constraints_for_plugins.txt",
class Klass(object):
def stat_func():
return 42
_ANS = stat_func() # call the function directly first
stat_func = staticmethod(stat_func) # then wrap it manually
def method(self):
ret = Klass.stat_func()
{
"images":[
{
"id":218,
"cloud_image_id":"ami-93778",
"name":null,
"status":"inspected",
"is_encrypted":false,
"rhel":true,
"rhel_detected":true,
import sys
lines = {}
def start():
sys.settrace(trace)
def stop():
sys.settrace(None)
for filename in lines:
Let's make a game!
name:Bunny Clicker
by:Orteil
desc:This is a simple idle game to showcase some of the basic functionalities of Idle Game Maker.<//>Make bunnies and shoot for the stars!
created:25/7/2017
updated:24/10/2017
version:1
Settings
background:stuff/meadow.jpg
@ironfroggy
ironfroggy / game.txt
Created May 29, 2018 13:09
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[3138,"0",16,"f",140,"0",22,"f",134,"0",28,"f",128,"0",33,"f",123,"0",39,"f",118,"0",21,"f",12,"0",11,"f",115,"0",22,"f",14,"0",11,"f",112,"0",23,"f",16,"0",10,"f",110,"0",24,"f",17,"0",11,"f",107,"0",9,"f",2,"0",13,"f",20,"0",11,"f",105,"0",6,"f",4,"0",13,"f",23,"0",10,"f",103,"0",6,"f",4,"0",14,"f",25,"0",9,"f",102,"0",6,"f",4,"0",13,"f",27,"0",9,"f",101,"0",5,"f",4,"0",13,"f",28,"0",9,"f",100,"0",6,"f",3,"0",13,"f",22,"0",17,"f",99,"0",6,"f",3,"0",13,"f",15,"0",26,"f",97,"0",5,"f",3,"0",15,"f",7,"0",34,"f",95,"0",6,"f",3,"0",57,"f",94,"0",54,"f",3,"0",10,"f",93,"0",47,"f",11,"0",9,"f",93,"0",47,"f",11,"0",10,"f",93,"0",46,"f",11,"0",11,"f",93,"0",44,"f",12,"0",11,"f",89,"0",22,"f",4,"0",20,"f",13,"0",12,"f",85,"0",22,"f",7,"0",18,"f",16,"0",11,"f",82,"0",24,"f",6,"0",18,"f",17,"0",12,"f",79,"0",50,"f",17,"0",12,"f",77,"0",51,"f",17,"0",13,"f",75,"0",22,"f",4,"0",26,"f",16,"0",16,"f",74,"0",20,"f",9,"0",21,"f",16,"0",19,"f",74,"0",17,"f",17,"0",15,"f",14,"0",23,"
@ironfroggy
ironfroggy / game.txt
Created May 29, 2018 13:09
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[3138,"0",16,"f",140,"0",22,"f",134,"0",28,"f",128,"0",33,"f",123,"0",39,"f",118,"0",21,"f",12,"0",11,"f",115,"0",22,"f",14,"0",11,"f",112,"0",23,"f",16,"0",10,"f",110,"0",24,"f",17,"0",11,"f",107,"0",9,"f",2,"0",13,"f",20,"0",11,"f",105,"0",6,"f",4,"0",13,"f",23,"0",10,"f",103,"0",6,"f",4,"0",14,"f",25,"0",9,"f",102,"0",6,"f",4,"0",13,"f",27,"0",9,"f",101,"0",5,"f",4,"0",13,"f",28,"0",9,"f",100,"0",6,"f",3,"0",13,"f",22,"0",17,"f",99,"0",6,"f",3,"0",13,"f",15,"0",26,"f",97,"0",5,"f",3,"0",15,"f",7,"0",34,"f",95,"0",6,"f",3,"0",57,"f",94,"0",54,"f",3,"0",10,"f",93,"0",47,"f",11,"0",9,"f",93,"0",47,"f",11,"0",10,"f",93,"0",46,"f",11,"0",11,"f",93,"0",44,"f",12,"0",11,"f",89,"0",22,"f",4,"0",20,"f",13,"0",12,"f",85,"0",22,"f",7,"0",18,"f",16,"0",11,"f",82,"0",24,"f",6,"0",18,"f",17,"0",12,"f",79,"0",50,"f",17,"0",12,"f",77,"0",51,"f",17,"0",13,"f",75,"0",22,"f",4,"0",26,"f",16,"0",16,"f",74,"0",20,"f",9,"0",21,"f",16,"0",19,"f",74,"0",17,"f",17,"0",15,"f",14,"0",23,"
@ironfroggy
ironfroggy / game.txt
Created May 29, 2018 13:09
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"]],"hyperlinks":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]}