Skip to content

Instantly share code, notes, and snippets.

View soundyogi's full-sized avatar
🦊

KaiserMerkle soundyogi

🦊
View GitHub Profile
import 'rxjs';
import { Observable } from 'rxjs';
Observable.prototype.debug = function(_message) {
const message = `EpicDebug: ${_message}`;
return this.do(
function(next) {
if (__DEV__) {
@soundyogi
soundyogi / howto-recover-google-authenticator-keys.txt
Created November 13, 2017 13:25 — forked from jbinto/howto-recover-google-authenticator-keys.txt
Recovering Google Authenticator keys from Android device for backup
### Last tested February 7 2014 on a Galaxy S3 (d2att) running Cyanogenmod 11 nightly, with Google Authenticator 2.49.
### Device with Google Authenticator must have root.
### Computer requires Android Developer Tools and SQLite 3.
### Connect your device in USB debugging mode.
$ cd /tmp
$ adb root
$ adb pull /data/data/com.google.android.apps.authenticator2/databases/databases
@soundyogi
soundyogi / main.cpp
Created August 26, 2017 00:06 — forked from alexesDev/main.cpp
Redux c++ implementation
#include <mapbox/variant.hpp>
#include <redux.hpp>
struct Increment
{
};
struct Decrement
{
};
@soundyogi
soundyogi / CustomEvents.cs
Created August 14, 2017 19:28 — forked from stramit/CustomEvents.cs
Sending Custom Events via the EvenSystem
using System;
using System.Collections.Generic;
using UnityEngine.Events;
// interface you implement in your MB to receive events
public interface ICustomHandler : IEventSystemHandler
{
void OnCustomCode(CustomEventData eventData);
}
@soundyogi
soundyogi / UniRxCharacterV2.cs
Created August 14, 2017 18:52 — forked from JavadocMD/UniRxCharacterV2.cs
Developing a first person controller for Unity3D with UniRx: Part 2
using UnityEngine;
using UniRx;
using UniRx.Triggers;
// NOTE: Unity won't actually let you put two MonoBehaviours in one file.
// They're both listed here just for convenience.
namespace Assets.Scripts.v2 {
public class InputsV2 : MonoBehaviour {
@soundyogi
soundyogi / UniRxCharacterV1.cs
Created August 14, 2017 18:52 — forked from JavadocMD/UniRxCharacterV1.cs
Developing a first person controller for Unity3D with UniRx: Part 1
using UnityEngine;
using UniRx;
using UniRx.Triggers;
// NOTE: Unity won't actually let you put two MonoBehaviours in one file.
// They're both listed here just for convenience.
namespace Assets.Scripts.v1 {
public class InputsV1 : MonoBehaviour {
// One thing I do different from other DOD users is that I hide implementation a bit more
// in cases where the implementation takes a bit more time or experimentation to get right.
// You can still dive in when you need to change it, but as long as it works, you can ignore it.
void mainThreadThing()
{
//OOP:
TimingThing time = new TimingThing();
time.saveCurrentTime();
TimingThing otherTime = new TimingThing();
@soundyogi
soundyogi / seo-spam-template
Created April 30, 2017 20:06 — forked from stephen-masters/seo-spam-template
SEO spam comment template received
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found
any interesting article like yours. {It's|It is} pretty worth enough for
me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website
owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be
{much more|a lot more} useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally
well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as
I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or
@soundyogi
soundyogi / html-head-meta-template
Created April 30, 2017 20:06
html-head-meta-template.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Title Goes Here</title>
<!-- SEO -->
<meta name="description" content="The description of your page will go here. Make sure that every page on your site has a meta description. Differentiate the descriptions for different pages.Programmatically generate descriptions.">
<link rel="canonical" href="http://website.com/example.html">
<link rel="shortcut icon" href="/favicon.ico">
@soundyogi
soundyogi / tacoKing.md
Created April 30, 2017 20:03 — forked from MWins/tacoKing.md
SEO BASICS

SEO BASICS

If we sat down and analyzed why your friend's sites are ranking, the factors contributing to that would be : quality backlinks, good content, structured and consistent markup, meta-formats (if those are used), sitemaps, RSS feeds, social media integration (hate to even mention that one). Redirecting index.php to / wouldn't make the list.