This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use with Sanity schema on your existing 'image' field, add a subfields option: | |
// The subfield 'options.field' attribute defines which asset field we are managing | |
// If no 'options.field' is provided, the 'title' attribute will be downcased and used (i.e. Title -> title) | |
// | |
// { | |
// title: 'Image', | |
// name: 'image', | |
// type: 'image', | |
// fields: [ | |
// { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am AbeCole on github. | |
* I am abec (https://keybase.io/abec) on keybase. | |
* I have a public key whose fingerprint is C869 896D C2A7 3471 CE67 8C67 DEB9 89E4 9DC3 7EF3 | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'json' | |
API_TOKEN = 'YOUR_API_TOKEN' | |
data = { | |
:event => 'client/create', | |
:target_url => 'CALLBACK_URL_HERE' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------------------------- | |
/** | |
* Validate Upload Path | |
* | |
* Verifies that it is a valid upload path with proper permissions. | |
* | |
* | |
* @return bool | |
*/ |