Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / daily-ui-012-e-commerce-page.markdown
Created August 12, 2016 03:41
Daily UI 012 - E-Commerce Page
@jondaiello
jondaiello / _arrows.scss
Last active February 22, 2024 15:18
SASS @mixin for Arrows
// Demo at http://codepen.io/jondaiello/full/YWRbOx/
/* This mixin is for generating CSS arrows on a box */
@mixin box-arrow($arrowDirection, $arrowColor, $arrowSize: 10px) {
position: relative;
z-index: 10;
&::after {
content: '';
width: 0;
height: 0;
@mcescalante
mcescalante / instructions.md
Last active July 25, 2023 14:07
Run a Flask application with gunicorn and nginx

This guide assumes:

  • You have a VPS (something like DigitalOcean, Linode, etc.)
  • You have a Flask application and a basic understanding of command line instructions
  • You've got nginx installed and know where your configuration files are

Instructions

  1. First, you should install gunicorn on your box or virtualenv with pip:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rcarmo
rcarmo / archive.txt
Created March 18, 2016 23:07
Epic Commits from @dramalho
061997d DELEGATE ALL THE THINGS
092aa231f wait, wrong place
09e7fd3 RERECORD ALL THE THINGS!!!
0c27fb3 yeah, fix things will ya
0f4549133 New ascii art task (\!important stuff) , and a few DAO tweaks (mino...
12aa7ef34 LE NONNNNNN LE MADNESS
13233e7 Less PHP
154c535 Once more, now with feeling and a proper master head
184e754 Dear Past-Friday David :Remember the textarea that seemed totally random and misterioys? It was $.ajax... obviously
19a8700 MAKE IT BIGGER
@bprosnitz
bprosnitz / cloneobjectstring.js
Last active March 10, 2016 06:52
Generate javascript code that will create a clone of a given javascript object
function buildValMap(obj, m) {
if (typeof obj !== 'object' || obj === null) {
return '';
}
if (obj === Object.prototype || obj === Array.prototype) {
return '';
}
if (m.has(obj)) {
return '';
}
@vasanthk
vasanthk / System Design.md
Last active November 25, 2025 15:26
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@clumma
clumma / FutureProgramming.json
Created January 18, 2016 23:08
Projects in "Future Programming"
[
{
"Name": "Eros",
"Author": "Conal Elliott",
"Status": "Experiment",
"Updated": "2007-11",
"Description": "functional programming with isomorphic GUI",
"URL": "http://conal.net/papers/Eros/"
},
{
@joepie91
joepie91 / vpn.md
Last active November 25, 2025 09:09
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@mattdesl
mattdesl / tile-folder.js
Last active January 23, 2016 16:43
devtool script to tile images into a single image
// install with:
// npm i -g devtool
// npm i img javascript-natural-sort electron-canvas-to-buffer
//
// run:
// devtool tile-folder.js -qch
var fs = require('fs')
var path = require('path')
var loadImage = require('img')