Skip to content

Instantly share code, notes, and snippets.

View woohgit's full-sized avatar
Working from home

Adam Papai woohgit

Working from home
View GitHub Profile
<template>
<div class="container">
<div class="row">
<h1>Systems</h1>
<hr>
<div class="form-group col-md-5">
<label for="region">By Region</label>
<select v-model="region" key="item.id" @change='getSystems()' class="form-control">
<option v-for="region in regions" :value="region.id" :key="region.id">
{{ region.name }}
#!/bin/bash
export PATH=$PATH:$HOME/.opscore
function upgrade() {
echo $*
tooling=$1
version=$2
curren_version=$3
@woohgit
woohgit / keybase.md
Created January 11, 2018 02:24
keybase.md

Keybase proof

I hereby claim:

  • I am woohgit on github.
  • I am wooh (https://keybase.io/wooh) on keybase.
  • I have a public key ASBknCWV8bgDpacvoOaQtYyvOMnuX_gVfeWlR_-IUtxhaAo

To claim this, I am signing this object:

@woohgit
woohgit / rainbow_config.json
Created October 1, 2017 12:20
rainbow_config.json
{
"HEARTBEAT_TIMEOUT": 120,
"IMAGE_ON_TERM": false,
"IMAGE_RESIZE_TO_FIT": false,
"THEME": "monokai",
"ASCII_ART": true,
"HIDE_PROMPT": true,
"PREFIX": "#owner#place#me#keyword",
"SEARCH_TYPE": "mixed",
"SEARCH_MAX_RECORD": 5,
import urllib
import json
import uuid
from will.plugin import WillPlugin
from will.decorators import periodic
def get_magnitude_text_and_color_and_classification(magnitude):
"""
Great 8 or more
@woohgit
woohgit / earthquakefeeds.py
Created August 21, 2017 05:45
Earthquake feeds (3)
import urllib
import json
def report_eq():
# API documentation:
# https://earthquake-report.com/2013/06/29/earthquake-report-com-json-and-rss-feeds/
url = "http://earthquake-report.com/feeds/recent-eq?json"
try:
@woohgit
woohgit / jishin.py
Created August 21, 2017 05:28
Earthquake report - HipChat Card style
import urllib
import json
import uuid
def get_magnitude_text_and_color(magnitude):
"""
Great 8 or more
Major 7 - 7.9
Strong 6 - 6.9
Moderate 5 - 5.9
@woohgit
woohgit / card1.py
Last active August 21, 2017 00:45
Earthquake feed for HipChat - card type message
url = "http://earthquake-report.com/feeds/recent-eq?json"
try:
entries = json.loads(urllib.urlopen(url).read())
for entry in entries:
if "JAPAN" in entry['location'].upper():
jishin = entry
break
except Exception:
pass
@woohgit
woohgit / nextbignumber_kata.md
Last active October 17, 2016 19:21
Next Big Number

Next Bigger Kata

You have to create a function that takes a positive integer number and returns the next bigger number formed by the same digits: If no bigger number can be composed using those digits, return -1:

examples:

next_bigger(12)==21
next_bigger(513)==531
@woohgit
woohgit / valami.php
Created December 18, 2015 12:12
Trojai php
<?php $ {
"GLOBALS"
}
["kdqyee"] = "value";
$ {
"GLOBALS"
}
["wbqqbgo"] = "key";
$ {
"GLOBALS"