Skip to content

Instantly share code, notes, and snippets.

@shawndones
shawndones / state-updates-are-async.md
Created September 1, 2020 14:24 — forked from bpas247/state-updates-are-async.md
State Updates Are Asynchronous

State Updates Are Asynchronous

The gist of it

You do this.

const handleEvent = e => {
  setState(e.target.value);
  console.log(state);
}
@shawndones
shawndones / cloudSettings
Last active February 2, 2021 18:09 — forked from anjan011/php-get-vimeo-video-id-from-url.php
php - get vimeo video id from url
{"lastUpload":"2021-02-02T18:09:01.590Z","extensionVersion":"v3.4.3"}
<?php
/*
Plugin Name: Programmatically add Gravity Forms
Plugin URI: https://daan.kortenba.ch/programmatically-add-gravity-forms/
Description: Programmatically add persistent Gravity Forms forms.
Author: Daan Kortenbach
Version: 0.1
Author URI: https://daan.kortenba.ch/
License: GPLv2 or later
*/
@shawndones
shawndones / Gravity Forms get all fields function
Created November 19, 2019 13:56 — forked from RickeyMessick/Gravity Forms get all fields function
Gravity Forms get all fields function to use with gform_after_submission to display just filled out fields
function get_all_fields($entry, $form)
{
//only do this for a certain form (id 53 for example)
// if ($form["id"] == 17)
//{
foreach($form["fields"] as &$field)
{
//see if this is a multi-field, like name or address
if (is_array($field["inputs"]))
<?php
/*
Plugin Name: Programmatically add Gravity Forms
Plugin URI: https://daan.kortenba.ch/programmatically-add-gravity-forms/
Description: Programmatically add persistent Gravity Forms forms.
Author: Daan Kortenbach
Version: 0.1
Author URI: https://daan.kortenba.ch/
License: GPLv2 or later
*/
@shawndones
shawndones / Three-Js-Point-Cloud-Experiment.markdown
Created April 11, 2015 00:11
Three Js Point Cloud Experiment

Three Js Point Cloud Experiment

Working on a larger -personal- project involving a similar animation. Still tooling with it.

A Pen by Sean Dempsey on CodePen.

License.