Skip to content

Instantly share code, notes, and snippets.

View GK-GreyGhost's full-sized avatar

Harrison / GreyGhost GK-GreyGhost

View GitHub Profile
@Structed
Structed / Main.gd
Created December 28, 2022 19:45
Godot Engine reproduction for str2var/var2str with multi-dimensional objects
extends Control
func _on_Var2TextButton_pressed():
var test = {
"level": "one",
"second": {
"level": "two"
}
}

Why is Google blocking Inbox on Firefox?

Recently, Google launched a new service called Inbox. It's basically Gmail re-invented with a different UI and UX. It's a good tool which improved my ability to keep a zero email inbox. I'm currently using the Android application of Inbox and not at all on the desktop, since it's not available for Firefox, my default browser. This requires me to open up Inbox in Google Chrome if I want to see it. Opening up Inbox in Firefox gives the following message:

Image of Inbox message if using Firefox

But, I couldn't understand why it's only available in Google Chrome so I started investigating on why it's so.

User Agent hack

anonymous
anonymous / jsbin.hususubu.css
Created March 19, 2014 11:08
*{
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.1s ease;
-moz-transition: all 0.1s ease;
-ms-transition: all 0.1s ease;
-o-transition: all 0.1s ease;
position: relative;
vertical-align: middle;
anonymous
anonymous / jsbin.OJecunI.css
Created October 11, 2013 01:52
canvas{
position:absolute;
top:0px;
left:0px;
right:0px;
bottom:0px;
border:solid 15px black;
margin:auto;
}
@bpgergo
bpgergo / LabyBug.py
Last active December 15, 2015 22:29
solves the labyrinths in the game named [Laby](https://wiki.ubuntu.com/Edubuntu/AppGuides/laby) import refers to this file: [robot.py](https://github.com/sgimenez/laby/blob/master/data/mods/python/lib/robot.py)
from robot import *
class LabyBug:
"""The laby bug
solves the labyrinths in the game named [Laby](https://wiki.ubuntu.com/Edubuntu/AppGuides/laby)
import refers to this file: [robot.py](https://github.com/sgimenez/laby/blob/master/data/mods/python/lib/robot.py)
@osuushi
osuushi / am_i_depressed.js
Created April 3, 2013 01:49
A script to tell you if you are depressed with "90% accuracy".
console.log("No.");
@vmihailenco
vmihailenco / proxy.go
Created November 20, 2011 15:22
Simple TCP proxy in Golang
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
// Alternative JavaScript Syntax
Person = :(name, address) { @name!, @address! }
Person::inspect = :{ <: "{@name} lives at {@address}" }
tj := Person('TJ', '314 Bessborough ave')
bob := Person('Bob', 'Some place')
[tj, bob].each(:(person){ print(person.inspect()) })