Skip to content

Instantly share code, notes, and snippets.

View coolsaint's full-sized avatar

Suman Haldar coolsaint

View GitHub Profile
@riskiii
riskiii / gist:2015048
Created March 11, 2012 04:36 — forked from billerickson/gist:1229106
Genesis: Facebook Like
//** This goes in the setup function **//
// Remove the default doctype and build our own
remove_action( 'genesis_doctype', 'genesis_do_doctype' );
add_action( 'genesis_doctype', 'be_do_doctype' );
// Add facebook's meta tags
add_action( 'wp_head', 'be_facebook_meta' );
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@clhenrick
clhenrick / README.md
Last active December 2, 2025 18:07
PostgreSQL & PostGIS cheatsheet (a work in progress)
@RadGH
RadGH / short-number-format.php
Last active February 25, 2025 21:33
Short Number Formatter for PHP (1000 to 1k; 1m; 1b; 1t)
<?php
// Converts a number into a short version, eg: 1000 -> 1k
// Based on: http://stackoverflow.com/a/4371114
function number_format_short( $n, $precision = 1 ) {
if ($n < 900) {
// 0 - 900
$n_format = number_format($n, $precision);
$suffix = '';
} else if ($n < 900000) {
@Restuta
Restuta / framework-sizes.md
Last active June 11, 2025 03:17
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js
@sethbunke
sethbunke / flask-restart-on-file-change.txt
Last active January 28, 2021 12:59
Simple Way to Restart Python Flask on File Change During Development
export FLASK_DEBUG=1
export FLASK_APP=name-of-your-python-file-here.py
flask run
@ammarshah
ammarshah / all_email_provider_domains.txt
Last active January 16, 2026 10:37
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@aditya-malte
aditya-malte / smallberta_pretraining.ipynb
Created February 22, 2020 13:41
smallBERTa_Pretraining.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.