Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Street mikestreety

View GitHub Profile
View extract.php
<?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 Apr 27, 2016
Vim settings file
View .vimrc
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 Nov 23, 2016
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 Sep 9, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<h1>Responsive</h1>
<div>Typography</div>
@mikestreety
mikestreety / Slack.php
Last active Aug 29, 2015
Get a list of your favourits from slack
View Slack.php
<?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 <yz@stargate.io>
* @version 1.0.0
@mikestreety
mikestreety / config.json
Last active Aug 29, 2015
Gulp-svg-sprite config
View config.json
{
"mode": {
"css": {
"spacing": {
"padding": 5
},
"dest": "./",
"layout": "diagonal",
"sprite": "img/sprite.svg",
"bust": false,
@mikestreety
mikestreety / SassMeister-input.scss
Created Mar 3, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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) {
View problem.md

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