Skip to content

Instantly share code, notes, and snippets.

#! /bin/bash
######################################################################
#
# This script generates an SSL certficate for local development. To
# execute the script, run `bash create-dev-ssl-cert.sh`. Sudo is
# needed to save the certificate to your Mac KeyChain. After the cert
# is generated, you can use `HTTPS=true yarn start` to run the web
# server.
#
@namklabs
namklabs / trello-night-mode.css
Last active October 13, 2019 17:08
Trello Night Mode
#trello-root { background: #000!important; }
.list {background-color: #333; }
.list textarea { color: #999; }
.list .list-card { background-color: #444; }
.list .list-card span {color: #000; }
.list .list-card .card-label { opacity: 0.25; }
.window { background-color: #333; }
.window span, .window h3, .window textarea, .window a { color: #999; }
.window .action-comment { background-color: #444; }
/*
By Osvaldas Valutis, www.osvaldas.info
https://osvaldas.info/image-lightbox-responsive-touch-friendly
Available for use under the MIT License
*/
;( function( $, window, document, undefined )
{
'use strict';
@namklabs
namklabs / terminus-search-replace.sh
Last active April 1, 2016 14:19 — forked from wpscholar/terminus-search-replace.sh
WP-CLI Search and Replace via Terminus (on Pantheon)
terminus wp "search-replace 'find' 'replace' --dry-run" --site=mysite --env=dev|test|live
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PICO-8 Cartridge</title>
<meta name="description" content="">
<STYLE TYPE="text/css">
<!--
@cuschk
cuschk / index.html
Last active April 15, 2019 21:08
Basic HTML5 file with UTF-8 encoding
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title></title>
</head>
<body>
<p></p>
</body>
@sudoarslan
sudoarslan / MazeSolver C++
Last active July 19, 2023 18:14
Maze Solving Using Recursive Functions in C++
#include <iostream>
#include "map1.h"
//#include "map2.h"
//#include "map3.h"
const char DESTINATION = 'd';
const char START = 's';
const char PORTAL = 'p';
const char PATH = ' ';
@djwashburn
djwashburn / easybg
Created October 31, 2015 22:13
A unix shortcut for running a GUI program in the background from the command line. Runs process in the background and redirects output.
#!/bin/bash
if [ -z "$1" ]; then # check if we have any arguments
echo usage: $0 command # if not, print a message and quit
exit
fi
nohup "$@" >/dev/null 2>&1 & # "$@" expands all the given arguments
@krizpoon
krizpoon / rotating.css
Created May 27, 2015 03:32
Infinite rotation by CSS. Useful for loading spinners.
@keyframes rotating
{
from
{
transform: rotate(0deg);
-o-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
}
@namklabs
namklabs / trimText.js
Last active August 29, 2015 14:20 — forked from Edukanezza/trimText.js
// Trim text.
/*
- Respects word boundaries by default (will not chop a word up to create ellipses by default).
- Allows for ellipses or no ellipses.
*/
function trimText( jquery_obj_to_trim, int_trim_length, bool_ellipses, bool_respect_word_boundaries ){
var ellipses;
if( typeof bool_ellipses === "undefined" ){