Skip to content

Instantly share code, notes, and snippets.

View Contagious06's full-sized avatar

Matthew Vlietstra Contagious06

View GitHub Profile
Get-ChildItem -rec -Include *.jpg | ForEach-Object -Process {
$fullName = $_.FullName
$name = $_.Name
$directory = Split-Path $fullName
$sizes = @("1080")
if(!$name.StartsWith("_")) {
for ($i=0; $i -lt $sizes.length; $i++) {
$size = $sizes[$i]
function multi(text, maxCharacters) {
var parts = text.split(' ');
var index = 0;
var multiline = [];
while (parts.length !== 0) {
if (multiline.length !== (index + 1)) {
multiline.push('');
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Contagious06
Contagious06 / flickr.js
Created March 19, 2016 11:35
jQuery plugin to integrate a Flickr PhotoStream set into your website.
/*!
* William DURAND <william.durand1@gmail.com>
* MIT Licensed
*
* GistID: 5705453
*
* Usage:
*
* $('.photos').flickrPhotoStream({ id: '12345', setId: '67890' });
*