Skip to content

Instantly share code, notes, and snippets.

View fform's full-sized avatar

Will Froelich fform

View GitHub Profile
{"v":"5.5.0","fr":24,"ip":0,"op":198,"w":520,"h":826,"nm":"nodes","ddd":0,"assets":[],"fonts":{"list":[{"fName":"GothamSSm-Bold","fFamily":"Gotham SSm","fStyle":"Bold","ascent":75.8987426757812}]},"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"NULL","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-196.5,77,0],"ix":2},"a":{"a":0,"k":[60,60,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":198,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":3,"nm":"NULL","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-298.5,637,0],"ix":2},"a":{"a":0,"k":[60,60,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":198,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":3,"nm":"n3","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":120,"s":[16]},{"t":197,"s":[0]}],"ix":10},"p":{"a":0,"k":[311.327,-63.627,0],"ix":2},"a":{"a":0,"k":[60,60,0
import * as React from "react"
import PSButton from "../../node_modules/@pluralsight/ps-design-system-button/dist/react"
import PSVars from "../../node_modules/@pluralsight/ps-design-system-button/dist/vars"
import { Frame, ControlType, PropertyControls } from "framer"
type Props = PSVars & {
url: string,
title: string
}
@fform
fform / wordpress.sql
Last active January 17, 2019 01:27
SQL Query to update urls for Wordpress migration
UPDATE wp_options SET option_value = replace(option_value, 'sourceurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, 'sourceurl.com', 'newurl.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'sourceurl.com','newurl.com');
UPDATE wp_usermeta SET meta_value = replace(meta_value, 'sourceurl.com','newurl.com');
UPDATE wp_links SET link_url = replace(link_url, 'sourceurl.com','newurl.com');
UPDATE wp_comments SET comment_content = replace(comment_content , 'sourceurl.com','newurl.com');
@fform
fform / parse-zipcodes.json
Created August 11, 2015 23:52
US Zipcode json database importable to Parse.com for use with GeoPoint lookups
This file has been truncated, but you can view the full file.
{"results":[{"city":"AGAWAM","pop":15338,"state":"MA","location":{"__type":"GeoPoint","latitude":42.070206,"longitude":-72.622739},"zipcode":"01001"},{"city":"CUSHMAN","pop":36963,"state":"MA","location":{"__type":"GeoPoint","latitude":42.377017,"longitude":-72.51565},"zipcode":"01002"},{"city":"BARRE","pop":4546,"state":"MA","location":{"__type":"GeoPoint","latitude":42.409698,"longitude":-72.108354},"zipcode":"01005"},{"city":"BELCHERTOWN","pop":10579,"state":"MA","location":{"__type":"GeoPoint","latitude":42.275103,"longitude":-72.410953},"zipcode":"01007"},{"city":"BLANDFORD","pop":1240,"state":"MA","location":{"__type":"GeoPoint","latitude":42.182949,"longitude":-72.936114},"zipcode":"01008"},{"city":"BRIMFIELD","pop":3706,"state":"MA","location":{"__type":"GeoPoint","latitude":42.116543,"longitude":-72.188455},"zipcode":"01010"},{"city":"CHESTER","pop":1688,"state":"MA","location":{"__type":"GeoPoint","latitude":42.279421,"longitude":-72.988761},"zipcode":"01011"},{"city":"CHESTERFIELD","pop":177,"state
@fform
fform / parse_mc_example.js
Created August 11, 2015 23:23
Example Parse.User afterSave, export name to mail chimp
var mailchimpData = {
apikey: 'your-api-key',
id: 'your-list-id',
email: {
email: 'user@email.com'
},
merge_vars: {
'FNAME': 'First name',
'LNAME': 'Last Name'
},
<div class="row">
<div class="columns small-10">
Curabitur porta, massa dictum hendrerit bibendum, turpis nisl ornare nisi, ut fermentum dolor nibh eu quam. Aenean dictum, ligula non bibendum rhoncus, metus enim facilisis enim, quis pharetra magna odio nec est. Praesent sed orci vitae diam maximus faucibus non sed quam. Donec aliquet in justo eget placerat.
Pellentesque condimentum, neque vel sodales convallis, orci arcu luctus ex, in molestie nisl risus id orci. Nam dignissim cursus felis consequat convallis. Aliquam vulputate ex eros, eget iaculis mi auctor scelerisque. Phasellus quis tortor mi. Phasellus enim tellus, ultrices sed lectus nec, pharetra pretium quam.
</div>
</div>
<div class="row">
<div class="columns medium-6 flex-video">
<iframe> wistia ... </iframe>
//
// ViewController.swift
// RSSReader
//
// Created by susieyy on 2014/06/03.
// Copyright (c) 2014年 susieyy. All rights reserved.
//
import UIKit
w:~/Desktop/tvagrant $ vagrant share --name fform --debug
INFO global: Vagrant version: 1.6.3
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
@fform
fform / gist:9200260
Last active August 29, 2015 13:56
F5 how color text and blockquote work

Ok, I’ve added them to the style. You can use them with the names

  • yellowcopy
  • tealcopy
  • bluecopy
  • pinkcopy
  • greencopy
  • redcopy

That works by adding these names in the class attribute. Your html tag might already have a tag and look like

@fform
fform / gitsite-setup.php
Last active August 29, 2015 13:56
Git Apache Vhost Setup
#!/usr/bin/php
<?php
define('NL',"\n");
define('FILE_PRSCRIPT_PATH', '/usr/local/scripts/');
define('FILE_PRSCRIPT', '/usr/local/scripts/pullrepo');
if($argv[0] == __FILE__ OR $argv[0] == basename(__FILE__)){
array_shift($argv);