Skip to content

Instantly share code, notes, and snippets.

View gedex's full-sized avatar
🏠
Working from home

Akeda Bagus gedex

🏠
Working from home
View GitHub Profile
@gedex
gedex / post-484.json
Created April 11, 2014 13:14
Slack WordPress Plugin is released
{"ID":484,"post_author":"1","post_date":"2014-04-11 13:14:45","post_date_gmt":"2014-04-11 13:14:45","post_content":"sdsdf","post_title":"Slack WordPress Plugin is released","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"slack-wordpress-plugin-is-released","to_ping":"","pinged":"","post_modified":"2014-04-11 13:14:45","post_modified_gmt":"2014-04-11 13:14:45","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress.dev\/?p=484","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"post_category":[1],"tags_input":[]}
@gedex
gedex / post-488.json
Created April 12, 2014 09:28
New Post Today
{"ID":488,"post_author":"1","post_date":"2014-04-12 09:36:04","post_date_gmt":"2014-04-12 09:36:04","post_content":"Hi, I'm just testing..","post_title":"New Post Today","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"new-post-today","to_ping":"","pinged":"","post_modified":"2014-04-12 09:36:04","post_modified_gmt":"2014-04-12 09:36:04","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress.dev\/?p=488","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"post_category":[1],"tags_input":[]}
@gedex
gedex / xss.js
Last active August 29, 2015 14:01
alert('yay');
@gedex
gedex / README.md
Created August 31, 2014 19:06
Palindrome in Go

From Wikipedia:

A palindrome is a word, phrase, number, or other sequence of symbols or elements that reads the same forward or reversed, with general allowances for adjustments to punctuation and word dividers. Famous examples include "Amor, Roma", "A man, a plan, a canal: Panama" and "No 'x' in 'Nixon'".

Demo

http://play.golang.org/p/oIzyUsGk58

@gedex
gedex / post-70.json
Created September 18, 2014 12:59
2010
{"ID":70,"post_author":"1","post_date":"2014-09-18 13:02:00","post_date_gmt":"2014-09-18 13:02:00","post_content":"[toronto-election-mayor-leaderboard election_year=\"2014\" desc=\"This is a desc.\"]\r\n[toronto-election-mayoral-map election_year=\"2014\"]\r\n[toronto-election-ward-by-ward election_year=\"2014\"]","post_title":"2010","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"2010-2","to_ping":"","pinged":"","post_modified":"2014-09-18 13:02:00","post_modified_gmt":"2014-09-18 13:02:00","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress-trunk.dev\/?page_id=70","menu_order":0,"post_type":"page","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"page_template":"default","post_category":[],"tags_input":[]}
@gedex
gedex / post-70.json
Last active August 29, 2015 14:06
2010
{"ID":70,"post_author":"1","post_date":"2014-09-18 13:02:00","post_date_gmt":"2014-09-18 13:02:00","post_content":"[toronto-election-mayor-leaderboard election_year=\"2014\" desc=\"This is a desc.\"]\r\n[toronto-election-mayoral-map election_year=\"2014\"]\r\n[toronto-election-ward-by-ward election_year=\"2014\"]","post_title":"2010","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"2010-2","to_ping":"","pinged":"","post_modified":"2014-09-18 13:26:33","post_modified_gmt":"2014-09-18 13:26:33","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress-trunk.dev\/?page_id=70","menu_order":0,"post_type":"page","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"page_template":"page-templates\/full-width.php","post_category":[],"tags_input":[]}
@gedex
gedex / diff-php-log.go
Created October 30, 2014 11:50
Diff cleaned PHP logs (removes unnecessary parts in the logs).
/**
* Diff cleaned PHP logs (removes unnecessary parts in the logs).
*
* @author Akeda Bagus <[email protected]>
* @license MIT
*/
package main
import (
"bufio"
@gedex
gedex / deploy-to-wp-org.sh
Created November 19, 2014 19:32
deploy-to-wp-org.sh
#! /bin/bash
# See https://github.com/GaryJones/wordpress-plugin-git-flow-svn-deploy for instructions and credits.
echo
echo "WordPress Plugin Git-Flow SVN Deploy v1.0.0-dev2"
echo
echo "Step 1. Let's collect some information first."
echo
echo "Default values are in brackets - just hit enter to accept them."
echo
@gedex
gedex / gist:60db170329eabd0d65a1
Created November 23, 2014 06:44
WTF Meetup.com?

WTF!

Each newly-created Meetup Group is reviewed to make sure it's a good fit for the platform.

Jakarta Go Meetup is not in line with our Group Policies. You can check them out here: http://meetu.ps/1CwmJ2

It's important that all Meetup Groups are facilitated in person by a local Organizer and are focused on building local community and connections. As a result, we've closed your Meetup Group. This decision is final.

Meetup reserves the right, in our sole discretion, to remove members, groups, or content from the site that violates our Terms of Service: http://www.meetup.com/terms/ >

@gedex
gedex / find.go
Last active August 29, 2015 14:17
find.go
// Package bench is a package which contains
// programs of Go Benchmark Competition.
package bench
import (
"bufio"
"errors"
"fmt"
"os"
"strings"