Skip to content

Instantly share code, notes, and snippets.

Anthony Som half-cambodian-hacker-man

Block or report user

Report or block half-cambodian-hacker-man

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
@half-cambodian-hacker-man
half-cambodian-hacker-man / insta-pp.py
Created Apr 6, 2018
Full size Instagram profile picture fetcher
View insta-pp.py
#!/usr/bin/env python3
import requests
import json
def get_pp_url(username):
api_response = json.loads(requests.get(f"https://instagram.com/{username}/?__a=1").text)
user_id = api_response["graphql"]["user"]["id"]
user_api_response = json.loads(requests.get(f"https://i.instagram.com/api/v1/users/{user_id}/info/").text)
View mlp_movie_review.txt
Well, My Little Bronies, I've seen the new My Little Pony theatrical film, and while positive reviews are rolling in,
praising the film's colourful characters and child-friendly message, some of what I saw in the theatre shocked me.
What everypony in this fandom deserves is a rational, in-fandom examination of how this film ties into all of the pre-existing My Little Pony canon.
Beware, everypony! There are spoilers ahead.
While watching this film, I became overwhelmed by the sheer number of glaring oversights and internal inconsistencies in this story.
This film shows a blatant and irresponsible disregard for the pre-established canon of the My Little Pony universe!
The film begins with Princess Twilight Sparkle nervous about the arrival of Songbird Serenade: A singing pop-star pony that is voiced by, and resembles real-life pop-star Sia.
@half-cambodian-hacker-man
half-cambodian-hacker-man / 2d-scramble.py
Last active Oct 3, 2017
2D array transformation string mangle
View 2d-scramble.py
from itertools import count
# Count is a convenience method from the standard library's `itertools` module that infinitely yields higher numbers
# It looks cleaner than manually creating a variable and using a while True loop
user_input = None # Initialize the user_input to none
while not user_input: # When user_input's boolean coercion resolves to true, the string is non-empty
user_input = input("Enter your message: ") # We ask the user to enter a message.
array_dimensions = 0
# The array_dimensions variable will hold the width and height of the array -
View keybase.md

Keybase proof

I hereby claim:

  • I am half-cambodian-hacker-man on github.
  • I am half_kh_hacker (https://keybase.io/half_kh_hacker) on keybase.
  • I have a public key whose fingerprint is 4026 3EAD 0A4B BE01 C484 5BAB 5207 9D44 CD0C A477

To claim this, I am signing this object:

@half-cambodian-hacker-man
half-cambodian-hacker-man / EventBus.java
Created Jul 17, 2016
Event Bus in 58 lines of Java
View EventBus.java
package site.hackery.photon;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
import static java.util.Arrays.asList;
You can’t perform that action at this time.