Skip to content

Instantly share code, notes, and snippets.

View arielsalminen's full-sized avatar
🌸

Ariel Salminen arielsalminen

🌸
View GitHub Profile
@arielsalminen
arielsalminen / git-log-parser.js
Created February 8, 2019 12:56 — forked from didoo/git-log-parser.js
Git Log Parser & Aggregator
/* eslint-env node */
/* eslint-disable no-console, dot-notation */
const fse = require('fs-extra');
const readline = require('readline');
// const platform = 'mw_less';
// const platform = 'mw_scss';
const platform = 'cosmos';
@arielsalminen
arielsalminen / git-tag-delete-local-and-remote.sh
Created May 28, 2018 16:30 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName

Tiny Content Framework

About the project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Give me feedback on Twitter (@nicoleslaw) or by email (nicole@nicolefenton.com).

Contents

(function (window, document, undefined) {
"use strict";
/**
* The Universe object
*
* @constructor
*/
function Universe() {
this.loaded = false;
@arielsalminen
arielsalminen / drag-scroll.js
Last active November 27, 2017 09:13
Drag and scroll in plain JS
var element,
isPushed = false,
scrollTop = 0,
scrollLeft = 0,
lastClientX = 0,
lastClientY = 0;
var DragScroll = {
onMouseDown : function(e) {
/*
* DRAG'N'DROP DRAG IMAGES FOR @jonikorpi
* (this is a quick'n'dirty example, I might’ve typoed some stuff)
*
* In addition to all this you might have to listen for "drop", "dragenter", "dragleave" & "dragover"
* events on the container where the dropping happens and on "ondragover" also call the removeDragImage();
*/
var dragImage, dragging;
@arielsalminen
arielsalminen / aws-twitter-search-bot.js
Created November 18, 2015 20:25 — forked from russellbeattie/aws-twitter-search-bot.js
AWS Lambda Twitter Search Bot... uses S3 for persistence and SNS to send out messages.
var querystring = require('querystring');
var https = require('https');
var aws = require('aws-sdk');
var s3 = new aws.S3();
var sns = new aws.SNS({
region: 'us-east-1'
});
var query = '#SEARCH TERM HERE';
@arielsalminen
arielsalminen / link-line.scss
Created October 23, 2015 19:01
Nicer links

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@arielsalminen
arielsalminen / scroll.js
Last active April 18, 2018 09:32
Scrolling
function easeInOutCubic(t, b, c, d) {
if ((t /= d / 2) < 1) {
return c / 2 * t * t * t + b;
}
return c / 2 * ((t -= 2) * t * t + 2) + b;
}
function ButteryScroll(scrollable, distance, duration) {
var startTime;
var startPos = scrollable.scrollTop;