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
| // VS Code w/ Quokka.js | |
| const https = require('https'), | |
| key = 'XXXX'; | |
| const endpoint = `https://maps.googleapis.com/maps/api/geocode/json?key=${key}&address=15 hernandez ave palm coast fl&sensor=false` | |
| //https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY | |
| https.get(endpoint, (resp) => { | |
| let data = ''; | |
| // A chunk of data has been recieved. |
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
| /* | |
| Uses API, should have similar before js runs; | |
| <script>const __sfdcSessionId = '{!sessionId}'</script> | |
| <script src="/soap/ajax/42.0/connection.js" type="text/javascript"></script> | |
| */ | |
| const addAttachment = (parentId, filename, file) => { | |
| const reader = new FileReader() | |
| if(file == undefined){ |
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
| <video id="video1" height="120" width="160" autoplay muted></video> | |
| <video id="video2" height="120" width="160" autoplay></video> | |
| <br> | |
| <button id="button" onclick="createOffer()">Offer:</button> | |
| <textarea id="offer" placeholder="Paste offer here"></textarea> | |
| <br> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
| <types> | |
| <members>*</members> | |
| <name>ApexClass</name> | |
| </types> | |
| <types> | |
| <members>*</members> | |
| <name>ApexComponent</name> | |
| </types> |
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
| <style> | |
| .help { | |
| font-size: 0.7rem; | |
| /* border-radius: 25rem; */ | |
| background: #555; | |
| color: #bae7fc; | |
| border: 1pt solid #bae7fc; | |
| width: 1em; | |
| height: 1em; | |
| padding-left: .25rem; |
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
| // jshint esversion: 6, asi: true, laxcomma: true | |
| const gulp = require('gulp') | |
| , spawn = require('child_process').spawn | |
| , killer = node => node ? node.kill() : null | |
| , config = { | |
| init: ['index.js'], | |
| watch: ['*.js'] | |
| } | |
| ; |
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
| <!-- console will print in div --> | |
| <div id="_prtScn"></div> | |
| <script> | |
| const _isMobile = () => { | |
| let check = false; | |
| (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|h |
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
| <!-- Static Resource: https://drive.google.com/file/d/1yZMzQMYkNa40JyRTOoQvMMLZg_bL-1F9/view?usp=sharing --> | |
| <apex:page controller="Example"> | |
| <link rel="stylesheet" href="{!URLFOR($Resource.FormsResource, '/pikaday/css/pikaday.css')}" /> | |
| <apex:inputField styleClass="datepicks" value="{!Opp.StartDate}" /> | |
| <script src="{!URLFOR($Resource.FormsResource, 'currency.js')}" ></script> |
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 tag to import via es6 module (html import deprecated in v1 spec :/ ) | |
| * <script type="module" src="../components/web-component/web-component.js"></script> | |
| */ | |
| 'use strict()' | |
| const template = document.createElement('template') | |
| template.innerHTML = /*html*/` | |
| <style> | |
| .card { |
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
| <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global"> | |
| <lightning:card > | |
| <span onkeypress="{!c.keyCheck}"> | |
| <lightning:input aura:id="searchbox" label="" name="searchbox" | |
| placeholder="Search a thing" value="" /> | |
| </span> | |
| </lightning:card> | |
| </aura:component |