Skip to content

Instantly share code, notes, and snippets.

View batjaa's full-sized avatar
:shipit:

Batjaa Batbold batjaa

:shipit:
View GitHub Profile
@batjaa
batjaa / gist:0c2982d9237a56b91aef
Created November 14, 2014 01:57
letsrevolutionizetesting
<?php
$json = file_get_contents('http://letsrevolutionizetesting.com/challenge.json');
$jsonObj = json_decode($json);
while($jsonObj != null){
$json = str_replace("challenge", "challenge.json", $jsonObj->follow);
$json = file_get_contents($json);
var_dump($json);
echo "\n";
$jsonObj = json_decode($json);
}
Tada! I'm a nice loading template that gets to be loaded! Duh!
@batjaa
batjaa / git-commit.md
Last active February 13, 2018 18:48
Git Commit Messages

Git Commit Messages

  • Use the Present Tense ("Add feature" not "Added feature").
  • Use the Imperative Mood ("Move cursor to..." not "Moves cursor to...").
  • Limit the subject line to 50 characters
  • Wrap the body at 72 characters
  • Reference issues and pull requests
  • When only changing documentation, include [ci skip] in the commit description
  • Be creative with emojies
    • 🎉 :tada: Initial commit
@batjaa
batjaa / golomt.js
Created September 7, 2018 23:20
Enable copy, paste & cut in golomt web app using tampermonkey
// ==UserScript==
// @name Enable copy, paste and cut in Golomt Bank web app
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Golomt bankniihand yariad heleed, gomdollood hereg alga.
// @author Batjaa Batbold batjaa.com
// @match https://www.egolomt.mn/*
// @grant none
// ==/UserScript==