Skip to content

Instantly share code, notes, and snippets.

Markus Stefanko mastef

Block or report user

Report or block mastef

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mastef / anything.js
Created Feb 12, 2019
hltv toggle comment threads on click
View anything.js
function postClick() {
var results = $(this).nextUntil('.post');
var a = 0;
for(i=0;i<results.length;i++) {
if($(results[0]).hasClass('threading')) {
mastef / functions.php
Last active Sep 19, 2018
Pods : How to add Custom Admin Table Columns to a Pods ACT
View functions.php
only important name is the filter name :
if your pods is called "client" then call it
you can rename all functions to your liking
add_filter( 'pods_admin_ui_PODNAME', 'custom_admin_table_columns_for_PODNAME' );
mastef / circular.hx
Created Jul 11, 2018
haxe json circular reference patch
View circular.hx
var _data:Dynamic = ...;
var cache:Array<Dynamic> = [];
var jsonString = haxe.Json.stringify(_data, function(key:Dynamic, value:Dynamic) {
// kill keys you don't want here
// if(key == "ba") return null;
// only filter objects
if(value != null && Reflect.isObject(value)) {
if(cache.indexOf(value) > -1) {
mastef / HTML5Application.hx
Last active Feb 4, 2018
openfl - Hunt for 24 fps part 2
View HTML5Application.hx
package lime._backend.html5;
import js.html.KeyboardEvent;
import js.Browser;
import lime.ui.GamepadAxis;
mastef / Trace.hx
Created Jan 18, 2018
haxe trace to console.log with objects instead of strings
View Trace.hx
// check browser console in
class Trace {
static function main() {
var a = {};
Reflect.setProperty(a, "b", "c");
mastef / Dockerfile
Last active Dec 10, 2017
openfl-modular testing
View Dockerfile
FROM openfl/openfl:develop
## install node/npm
ADD /opt/
RUN chmod +x /opt/ && /opt/
RUN apt-get install -y --no-install-recommends nodejs
## tests need these modules, let's have them in global namespace
RUN npm install http-server -g
RUN npm install webpack -g
mastef / crontab
Last active Nov 14, 2017
Remember wifi names and ip addresses - in case the router's dhcp stops working you can still reconnect to it
View crontab
# chmod +x, then
# type `crontab -e` and add this line :
* * * * * $HOME/wifiremember/
mastef / gist:9a84666759796ae9df65edde69130465
Last active Nov 12, 2019
Extract Pricing template from Google Play Console to .csv format
View gist:9a84666759796ae9df65edde69130465
// Go to "All Applications" / "Settings" / "Pricing templates" and select the template you want to export
javascript: (function(e, s) {
e.src = s;
e.onload = function() {
console.log('jQuery injected');
$ = jQuery;
mastef / isexist_vs_isnotexist.go
Created Feb 4, 2016
os.IsExist(err) vs os.IsNotExist(err)
View isexist_vs_isnotexist.go
Watch out, os.IsExist(err) != !os.IsNotExist(err)
They are error checkers, so use them only when err != nil, and you want to handle
specific errors in a different way!
Their main purpose is to wrap around OS error messages for you, so you don't have to test
for Windows/Unix/Mobile/other OS error messages for "file exists/directory exists" and
"file does not exist/directory does not exist"
mastef / sortable.js
Last active Dec 30, 2015
jQuery UI Sortable wrapper for Angular that works with $firebaseArray methods
View sortable.js
jQuery UI Sortable plugin wrapper for $firebaseArray
@param [ui-sortable] {object} Options to pass to $.fn.sortable() merged onto ui.config
angular.module('ui.sortable', [])
.directive('uiSortable', [
'uiSortableConfig', '$timeout', '$log',
function(uiSortableConfig, $timeout, $log) {
You can’t perform that action at this time.