Skip to content

Instantly share code, notes, and snippets.

View mikestreety's full-sized avatar

Mike Street mikestreety

View GitHub Profile
<?php
// The name of the folder where the logins are
$folder = './passwords';
// The file name you want to save as
$title = 'Logins';
// A csv function - from http://webtricksandtreats.com/export-to-csv-php/
function convert_to_csv($input_array, $output_file_name, $delimiter) {
$temp_memory = fopen('php://memory', 'w');
@mikestreety
mikestreety / .vimrc
Created April 27, 2016 09:19
Vim settings file
filetype indent plugin on
" Turn on suntax highlighting
syntax on
" Set dark background
set background=dark
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
@mikestreety
mikestreety / SassMeister-input.scss
Last active November 23, 2016 15:41
Generated by SassMeister.com.
// ----
// libsass (v3.3.6)
// ----
/**
* Responsive Typography Example
*
* Read the full post here:
* http://www.liquidlight.co.uk/blog/article/responsive-typography-in-scss/
*/
@mikestreety
mikestreety / SassMeister-input-HTML.html
Last active September 9, 2015 15:21
Generated by SassMeister.com.
<h1>Responsive</h1>
<div>Typography</div>
@mikestreety
mikestreety / Slack.php
Last active August 29, 2015 14:16
Get a list of your favourits from slack
<?php
/**
* Simple abstraction of Slack API
*
* Uses curl, if not falls back to file_get_contents and HTTP stream.
*
* For all api methods, refer to https://api.slack.com/
*
* @author Yong Zhen <[email protected]>
* @version 1.0.0
@mikestreety
mikestreety / config.json
Last active August 29, 2015 14:16
Gulp-svg-sprite config
{
"mode": {
"css": {
"spacing": {
"padding": 5
},
"dest": "./",
"layout": "diagonal",
"sprite": "img/sprite.svg",
"bust": false,
@mikestreety
mikestreety / SassMeister-input.scss
Created March 3, 2015 10:48
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$ieSprite: '.lt-ie9' !default;
$baseFontSize: 16px !default;
// Converts px to em
@function mq-px2em($px, $base-font-size: $baseFontSize) {
@mikestreety
mikestreety / problem.md
Created March 3, 2015 09:11
Shopify Filtering

So this is a story, all about how, I want to sort something out in Shopify...

I know with catgories and tags, Shopify has filtering built in. E.g. if I want to look at Shirts tagged with Red, I can do:

http://shopurl.com/collections/shirts/red

That's fine. I also know if I want large shirts that are red, the URL would be

http://shopurl.com/collections/shirts/red+large

@mikestreety
mikestreety / gist:14e3a90032acd9cf06a1
Last active August 29, 2015 14:11
I got 99 gulp problems but a sprite ain't one
/*
This is the folder structure:
gulpfile.js
build/
bp/
sass/
sprite/
img/
@mikestreety
mikestreety / SassMeister-input-HTML.html
Created November 13, 2014 15:45
Generated by SassMeister.com.
<h1>What would you do if i sang out of tune?</h1>