Skip to content

Instantly share code, notes, and snippets.

View emmanuelstroem's full-sized avatar
😊
to learn, one must first unlearn.

Emmanuel emmanuelstroem

😊
to learn, one must first unlearn.
View GitHub Profile
@emmanuelstroem
emmanuelstroem / Vector2D.lua
Created July 30, 2012 19:27 — forked from brandontreb/Vector2D.lua
A simple Vector2D class used in Corona SDK games.
Vector2D = {}
function Vector2D:new(x, y)
local object = { x = x, y = y }
setmetatable(object, { __index = Vector2D })
return object
end
function Vector2D:copy()
return Vector2D:new(self.x, self.y)
@emmanuelstroem
emmanuelstroem / gist:9f38f4ac2be17f7b92dc
Created January 29, 2016 12:26 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@emmanuelstroem
emmanuelstroem / RootChecker.java
Created May 27, 2016 12:27 — forked from Fuzion24/RootChecker.java
A few different mechanisms to check for root on an Android device
package com.test.rootchecker;
import java.io.File;
import java.util.List;
import java.util.Map;
import android.content.Context;
import android.content.pm.ApplicationInfo;
public class RootChecker {
@emmanuelstroem
emmanuelstroem / setup_wp.sh
Last active October 3, 2019 21:09
setup_wordpress_ubuntu
#!/bin/sh
export DEBIAN_FRONTEND="noninteractive"
# command line arguments
if [ $# -gt 0 ]; then
echo "Your command line contains $# arguments"
domain_name="$1"
else
echo "Your command line contains no arguments"
domain_name="emmanuelopio"

Keybase proof

I hereby claim:

  • I am emmanuelstroem on github.
  • I am emmanuelstroem (https://keybase.io/emmanuelstroem) on keybase.
  • I have a public key ASDRIBw4CjxpwToDk2NGrn9z3r_s4ekIiCVJskqPunXOBAo

To claim this, I am signing this object: