Skip to content

Instantly share code, notes, and snippets.

Avatar

Dennis Frank dennisfrank

View GitHub Profile
@dennisfrank
dennisfrank / discord-custom.css
Last active Feb 13, 2019
Custom Discord styles
View discord-custom.css
:root {
--font-family: "Lato-Regular", "Helvetica Neue", Helvetica, "Segoe UI", -apple-system, BlinkMacSystemFont, Tahoma, Arial, sans-serif;
--message-max-width: 50rem;
--theme-light-message-color: #23262a;
--avatar-border-radius: 3px;
--sidebar-width: 70px;
--sidebar-icon-width: 35px;
--sidebar-icon-border-radius: 8px;
--channel-bar-width: 180px;
--channel-bar-item-height: 1.5rem;
@dennisfrank
dennisfrank / Buddy-craft3-atomic-deployment-pipeline.yml
Last active Jul 31, 2019
Buddy.works Craft 3 Atomic Deployment Pipeline
View Buddy-craft3-atomic-deployment-pipeline.yml
- pipeline: "Build and deploy to [environment]"
trigger_mode: "ON_EVERY_PUSH"
ref_name: "develop"
actions:
- action: "Init: Atomic Deployment"
type: "SSH_COMMAND"
working_directory: "${remote_path}/"
login: "${user}"
host: "${host}"
port: "22"
@dennisfrank
dennisfrank / SassMeister-input.scss
Last active Aug 24, 2016
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.3.6)
// ----
///* ========================================================================
// #SETTINGS
// ======================================================================== */
// Map of breakpoints
@dennisfrank
dennisfrank / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
/*
* Works
*/
// Works as expected
@mixin okay($foo: bar) {
@dennisfrank
dennisfrank / get_remote_db.sh
Created May 23, 2014
Shell script to import a remote database into local environment
View get_remote_db.sh
#!/bin/sh
# Import a remote database into a local database
# ----------------------------------------------
#
# Based on http://danherd.net/quick-script-synchronise-from-a-remote-expressionengine-database/
#
# Don’t forget chmod +x to make the script executable.
#
# Change the extension to .command to run the script directly from OS X Finder.
@dennisfrank
dennisfrank / 0_reuse_code.js
Created Feb 7, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Contract Killer 3.md

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@dennisfrank
dennisfrank / dabblet.css
Created Jan 25, 2013
Define aspect ratio for elements in CSS
View dabblet.css
/**
* Define aspect ratio for elements in CSS
*/
div {
height: 0;
width: 33%;
padding-bottom: 33%;
float: left;
@dennisfrank
dennisfrank / dabblet.css
Created Jan 22, 2013
show and hide classes for media queries
View dabblet.css
/**
* show and hide classes for media queries
*/
h1 {font-size: 1.5em; float: right;}
h1:after {
content: "< 480px";
display: block;
}