Skip to content

Instantly share code, notes, and snippets.

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

gpessia gpessia

🏠
Working from home
View GitHub Profile
@gpessia
gpessia / dummy-gene.html
Last active August 29, 2015 14:26 — forked from peace098beat/dummy-gene.html
ダミージェネレータ | unsplash.it
<a href="https://unsplash.it/">dummy generator<a/>
<img src="https://unsplash.it/200/300" alt="...">
<img src="https://unsplash.it/200/300?random" alt="...">
<img src="https://unsplash.it/200/300/list" alt="...">
<img src="https://unsplash.it/200/300?image=0" alt="...">
<img src="https://unsplash.it/200/300?blur" alt="...">
<img src="https://unsplash.it/200/300?gravity=east" alt="...">
<img src="https://unsplash.it/200/300?gravity=north" alt="...">
<img src="https://unsplash.it/200/300?gravity=south" alt="...">
@gpessia
gpessia / csshr.css
Last active October 1, 2015 08:17
Simple Styles for <hr>'s
/* ex. https://css-tricks.com/examples/hrs/ */
/* Gradient color1 - color2 - color1 */
hr.style-one {
border: 0;
height: 1px;
background: #333;
background-image: linear-gradient(to right, #ccc, #333, #ccc);
}
@gpessia
gpessia / gist:67e10664b3a32b5d0367
Created January 20, 2016 10:13 — forked from benoitboucart/gist:f80090c87fa97f4e4098
How to use Jekyll with Gulp
/**
* For more information see this tutorial: http://blog.webbb.be/use-jekyll-with-gulp/
*
* Libs import
* --> How to install? npm install --save-dev gulp-minify-html
* @type {[type]}
*/
var gulp = require('gulp'),
path = require('path'),
@gpessia
gpessia / 10 SASS (SCSS) mixins
Last active July 15, 2024 23:51
10 SASS (SCSS) mixins you should be using in your projects | Engage
/* ==========================================================================
10 SASS (SCSS) mixins you should be using in your projects | Engage
http://engageinteractive.co.uk/blog/top-10-scss-mixins
========================================================================== */
/* ==========================================================================
To quickly centre a block element without having to worry about if there is any top or bottom margin already applied.
========================================================================== */
@gpessia
gpessia / Gulpfile.js
Created August 1, 2016 15:39 — forked from 0x1ad2/Gulpfile.js
My gulpfile example for How to enhance your front-end development workflow using Gulp
/*
* 0x1ad2 base Gulp.js file
* https://twitter.com/0x1ad2
*/
/*
* Define plugins
*/
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
@gpessia
gpessia / KM-ChromeTab-Tweetdeck.scpt
Last active September 9, 2016 10:28
Keyboard Maestro Chrome Tab to Tweetdeck
# Auth: Christopher Stone <[email protected]>
# dCre: 2015/05/14 12:30
# dMod: 2015/05/14 13:21
# Appl: Google Chrome, System Events
# Task: Bring Chrome Tab with Gmail to front if it exists - otherwise open Gmail in new window.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Google_Chrome, @System_Events
set _win to false
@gpessia
gpessia / .gitignore
Created February 2, 2017 09:20 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@gpessia
gpessia / .bash_profile
Created March 24, 2017 14:45 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@gpessia
gpessia / index.html
Created May 10, 2017 15:36 — forked from liuyanghejerry/index.html
Modern index file in 2017
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#">
<head>
<!-- content-type, which overrides http equivalent header. Because of charset, this meta should be set at first. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- Overrides http equivalent header. This tells IE to use the most updated engine. -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<!-- Tells crawlers how to crawl this page, and the role of this page. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta -->
<meta name="robots" content="index, follow">
@gpessia
gpessia / generate-articles.py
Created July 14, 2018 09:57 — forked from jaden/generate-articles.py
A script that generates 5000 test posts for Hugo benchmarks
# Create specified number of articles for Hugo benchmarks
from datetime import datetime
import random
import string
from sys import argv
def generateWord():
length = random.randint(1, 10)
word = ''.join(random.choice(string.letters) for _ in range(length))