Skip to content

Instantly share code, notes, and snippets.

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

Theo shierro

🏠
Working from home
View GitHub Profile
@wosephjeber
wosephjeber / ngrok-installation.md
Last active November 25, 2025 11:24
Installing ngrok on Mac

Installing ngrok on OSX

For Homebrew v2.6.x and below:

brew cask install ngrok

For Homebrew v2.7.x and above:

@gokulkrishh
gokulkrishh / media-query.css
Last active May 10, 2026 01:58
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@darkcolonist
darkcolonist / cryptogram.html
Created January 21, 2016 06:27
a basic cryptogram app using javascript and jquery
<html>
<head>
<title>the cryptogram</title>
<style>
.cnt_letter_item{
display: inline-block;
border: 1px dotted black;
padding: 3px;
text-align: center;
@darkcolonist
darkcolonist / mustache-test.html
Created February 12, 2016 06:35
simple usage of mustache.js
<html>
<head>
<title>mustache says hi!</title>
</head>
<body>
<table id="students">
<thead>
<tr>
<th>ID</th>
@darkcolonist
darkcolonist / Kohana.php
Last active May 26, 2016 05:47
modifications with respect to /kohana.project/system/core/Kohana.php
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* Provides Kohana-specific helper functions. This is where the magic happens!
*
* $Id: Kohana.php 4372 2009-05-28 17:00:34Z ixmatus $
*
* @package Core
* @author Kohana Team
* @copyright (c) 2007-2008 Kohana Team
* @license http://kohanaphp.com/license.html
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active May 6, 2026 21:26
tmux Cheat Sheet
@wojteklu
wojteklu / clean_code.md
Last active May 11, 2026 12:38
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@danihodovic
danihodovic / main.tf
Created January 8, 2017 20:48
Terraform - static site using S3, Cloudfront and Route53
variable "aws_region" {
default = "eu-west-1"
}
variable "domain" {
default = "my_domain"
}
provider "aws" {
region = "${var.aws_region}"
@jarvisluong
jarvisluong / configureStore.js
Created September 22, 2018 18:50
Custom redux persist version for redux-offline
//@flow
import { createStore, applyMiddleware } from 'redux';
import storage from 'redux-persist/lib/storage'
import { composeWithDevTools } from 'redux-devtools-extension';
import { persistStore, persistReducer } from 'redux-persist';
import thunk from 'redux-thunk';
import reducer from 'reducers';
import { createOffline } from '@redux-offline/redux-offline';
import offlineConfig from '@redux-offline/redux-offline/lib/defaults/index';
@matthewsuan
matthewsuan / axios.js
Last active December 20, 2024 16:45
Axios request queue-like that limits number of requests at any given time
import axios from 'axios'
const MAX_REQUESTS_COUNT = 5
const INTERVAL_MS = 10
let PENDING_REQUESTS = 0
// create new axios instance
const api = axios.create({})
/**