Skip to content

Instantly share code, notes, and snippets.

View tomhermans's full-sized avatar
👻
tinkering

Tom Hermans tomhermans

👻
tinkering
View GitHub Profile
@bradenbest
bradenbest / input.js
Last active February 28, 2024 09:08
Input Helper Class
function Input(el){
var parent = el,
map = {},
intervals = {};
function ev_kdown(ev)
{
map[ev.key] = true;
ev.preventDefault();
return;
@sarahdayan
sarahdayan / modifiers.scss
Last active November 15, 2024 15:56
Sass Modifiers Mixin
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
// Sass modifiers mixin by Sarah Dayan
// Generate All Your Utility Classes with Sass Maps: frontstuff.io/generate-all-your-utility-classes-with-sass-maps
// http://frontstuff.io
// https://github.com/sarahdayan
@dvlop
dvlop / gist:fca36213ad6237891609e1e038a3bbc1
Last active September 13, 2025 15:16 — forked from allthingsdem/gist:63b3223a7d14ac1f2457
My long list of bad bots to block in htaccess, ready to copy and paste!
# Start Bad Bot Prevention
<IfModule mod_setenvif.c>
# SetEnvIfNoCase User-Agent ^$ bad_bot
SetEnvIfNoCase User-Agent "^12soso.*" bad_bot
SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot
SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot
SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot
SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot
SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot
SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot
@xsaamiir
xsaamiir / restaurant-menu.json
Last active January 29, 2023 13:51
example of a restaurant's menu in json from https://codebeautify.org/jsonviewer/cb51497a
{
"array":{
"type":"Restaurant Menu",
"restaurant-info":{
"id":"121721",
"sponsored":"0",
"user-favourite":"",
"name":"Nandos Banani",
"address":"Road-11, Banani, Dhaka",
"rating":"0.00",
@dyyybek
dyyybek / easing.py
Created March 25, 2018 12:50 — forked from th0ma5w/easing.py
Easing Equations in Python (orig by Robert Penner)
# ported from http://www.gizma.com/easing/
# by http://th0ma5w.github.io
#
# untested :P
import math
linearTween = lambda t, b, c, d : c*t/d + b
<?php
/**
* Add dummy query var which causes all languages to be shown
* in the queries.
* See https://github.com/polylang/polylang/blob/2ed446f92955cc2c952b944280fce3c18319bd85/include/query.php#L125-L134
*/
add_filter( 'pll_filter_query_excluded_query_vars', function( $excludes ) {
$excludes[] = 'allLanguages';
return $excludes;
@StefanNieuwenhuis
StefanNieuwenhuis / reactiveconf-framework-independent-components-library-with-StencilJS.md
Last active September 23, 2020 12:55
How to build a framework independent component library with StencilJS

How to build a framework independent component library with StencilJS

This is a proposal for a lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal! If you're on your phone, please request the 🖥 desktop site to star this gist 😇 #ReactiveConf

@enriquemorenotent
enriquemorenotent / VS Code extensions and settings
Last active August 17, 2023 10:55
My favorite extensions and settings for Visual Studio Code
Extensions
==========
ext install wakatime.vscode-wakatime (time tracking)
ext install esbenp.prettier-vscode (prettifier)
ext install ms-vscode.csharp (C#)
ext install mikestead.dotenv (.env files)
ext install msjsdiag.debugger-for-chrome (chrome's debugger)
ext install deerawan.vscode-faker (faker)
ext install ms-vsliveshare.vsliveshare (shared coding sessions)
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active October 5, 2025 15:21
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@5t3ph
5t3ph / sass-static-package.json
Last active August 15, 2023 02:56
SASS compile|autoprefix|minimize and browser-sync server for static HTML
/*
Project Structure:
src/
- sass/
- - style.scss
- index.html
npm start - copies src files to dist/ and starts Browsersync server at localhost:3000
npm run build - copies files to dist/ and autoprefixes/minifies css