Skip to content

Instantly share code, notes, and snippets.

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

tibbiyelininja

🏠
Working from home
View GitHub Profile
package middleware
import (
"context"
"strings"
"github.com/labstack/echo/v4"
firebase "firebase.google.com/go"
"google.golang.org/api/option"
Block 3645 has 2 TX
Block 3510 has 2 TX
Block 3309 has 4 TX
Block 3307 has 2 TX
Block 2922 has 2 TX
Block 2915 has 2 TX
Block 2914 has 2 TX
Block 2817 has 4 TX
Block 2813 has 6 TX
Block 2812 has 6 TX
@tibbiyelininja
tibbiyelininja / regex-demo.py
Created January 21, 2016 14:31 — forked from ChillarAnand/regex-demo.py
BangPypers talk - Using Regular Expressions by Arvind Padmanabhan
import re
print(re.match(r'bc', 'abc'))
print(re.match(r'abc', 'abc'))
print(re.search(r'bc', 'abc'))
print(re.search(r'^bc', 'abc'))
print(re.search(r'^ab$', 'abc'))
print(re.search(r'^abc$', 'abc'))
print(re.search(r'a?bc', 'bc'))
print(re.search(r'a?bc', 'abc'))
print(re.search(r'a?bc', 'aabc'))
@tibbiyelininja
tibbiyelininja / sublime-text-3-build-3065-license.md
Created December 6, 2015 17:09
Sublime Text 3 (build 3065+) - VALID License

SublimeText3 Valid License without cracking! Just download/install then use this license.

Notice that it may not work on dev builds, but still works on 3083 build!

----- BEGIN LICENSE -----

Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F

SSL upgrades on rubygems.org and RubyInstaller versions

UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.


Hello,

If you reached this page, means you've hit this SSL error when trying to

<textarea name="my-xml-editor" data-editor="xml" rows="15"></textarea>
...
<textarea name="my-markdown-editor" data-editor="markdown" rows="15"></textarea>
...
<script src="//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js"></script>
<script>
// Hook up ACE editor to all textareas with data-editor attribute
$(function () {
@tibbiyelininja
tibbiyelininja / absurl.py
Last active January 12, 2017 09:48
Django Absolute URL Node with Active Property
from django.template import Library
from django.template.defaulttags import URLNode, url
register = Library()
class AbsoluteURL(str):
pass
class AbsoluteURLNode(URLNode):
def render(self, context):
@tibbiyelininja
tibbiyelininja / django_wsgi.py
Created July 2, 2014 13:34
Possible fix to gunicorn's Django 1.7 bug: No module named django.core.management.validation
# -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
""" module used to build the django wsgi application """
import os
import re
import sys