Skip to content

Instantly share code, notes, and snippets.

@round
round / packages.json
Last active February 21, 2019 09:17
Atom Editor Custom Interface: Packages & User Styles
[
{
"name": "about",
"version": "1.10.0"
},
{
"name": "animated-page-scroll",
"version": "1.2.0"
},
{
@JoelBesada
JoelBesada / sketch-loader.js
Created January 8, 2018 15:10
Webpack Sketch Loader
const JSZip = require('jszip')
const { parseBuffer } = require('bplist-parser')
const { isObject, each, find } = require('lodash')
const parseArchivedValue = value => {
return parseBuffer(new Buffer(value, 'base64'))
}
const parseArchivedString = obj => {
const { $objects } = parseArchivedValue(
@webrgp
webrgp / DOUbuntuCraftSetup.sh
Created October 25, 2017 20:32
CraftCMS server setup script with Digital Ocean / Laravel Forge
#!/bin/bash
##############################################################
# #
# Digital Ocean / Forge Recipe for CraftCMS websites #
# #
#============================================================#
# #
# Assumptions: #
# #
# - Ubuntu 16.04 Digital Ocean droplet, created by Forge #
@bittu
bittu / animate-elem-horizontal-scroll.js
Last active November 17, 2017 10:03
Scroll any element horizontally with smooth animation without any library.
const easeInQuad = (t, b, c, d) => {
return c * (t /= d) * t + b;
}
const requestAnimFrame = (() => {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function( callback ){ window.setTimeout(callback, 1000 / 60); };
})();
export const scrollElementLeftTo = (element, to, duration = 400, callback) => {
const move = (amount) => {
@engram-design
engram-design / _layout.html
Last active February 23, 2018 05:34
SEOMatic Setup
<!doctype html>
<html lang="en">
<head>
<!-- Responsive-ness -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SE-Oh -->
{% include '_includes/seo_meta' %}
</head>
@Chrisedmo
Chrisedmo / Craft3ValetDriver.php
Created February 1, 2017 10:29
Craft 3 Composer Install Valet Driver
<?php
class Craft3ValetDriver extends ValetDriver
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
@pierrehenri220
pierrehenri220 / barba-settings.js
Created December 6, 2016 01:25
Update html head tags with Barba.js
Barba.Dispatcher.on('newPageReady', function(currentStatus, oldStatus, container, newPageRawHTML) {
// html head parser borrowed from jquery pjax
var $newPageHead = $( '<head />' ).html(
$.parseHTML(
newPageRawHTML.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0]
, document
, true
)
);
var headTags = [
@greenbicycle
greenbicycle / goaccess-install
Created September 8, 2016 03:58
GoAccess install for Ubuntu and Debian
#!/bin/bash
#
# After this is run, edit /etc/goaccess.conf as needed
#
echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list
wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install goaccess
@williamgomes
williamgomes / craft:config:general.php
Last active June 30, 2023 12:20
how to configure nginx with craft (also multilingual)
<?php
/**
* General Configuration
*
* All of your system's general configuration settings go in here.
* You can see a list of the default settings in craft/app/etc/config/defaults/general.php
*/
return array(


awesome

Awesome Vue.js Awesome

A curated list of awesome things related to Vue.js