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
import { LightningElement, track } from 'lwc'; | |
export default class HelloIteration extends LightningElement { | |
@track | |
contacts = [ | |
{ | |
Id: 1, | |
Name: 'Amy Taylor', | |
Title: 'VP of Engineering', | |
}, | |
{ |
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
{ | |
"key": "ixn-created-via-the-api", | |
"name": "API-Created journey", | |
"workflowApiVersion": 1.0 , | |
"triggers": [], | |
"goals": [ | |
{ | |
"key": "user-defined-key", | |
"name": "name of your goal", | |
"description": "The description of this goal", |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style type="text/css"> | |
body { | |
background-color: white; |
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
%%[ | |
SET @randomVal = RANDOM(0, 100) | |
if randomVal < 60 THEN | |
// display offer for 15% off | |
ELSE IF randomVal < 20 THEN | |
// display offer for 25% off | |
ELSE IF randomVal < 15 THEN | |
// display offer for 30% off | |
ELSE IF randomVal < 5 THEN |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
App.ApplicationAdapter = DS.RESTAdapter.extend({ | |
host: 'http://127.0.0.1:8000/api/content', | |
headers: function() { | |
return {'X-CSRFToken': $('meta[name="csrf-token"]').attr('content')}; | |
}.property("session.authToken") | |
}); |
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
App.ApplicationController = Em.ArrayController.extend({ | |
itemController: 'socialItem', | |
unapprovedItems: function() { | |
return this.get('model').filterProperty('state', 0); | |
}.property('[email protected]'), | |
}); |
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
module ApiPagination | |
Infinity = 1.0/0 | |
class Range < Grape::Validations::SingleOptionValidator | |
def validate_param!(attr_name, params) | |
unless (!@required && params[attr_name].nil?) || @option.include?(params[attr_name]) | |
throw :error, status: 400, message: "#{attr_name}: must be within #{@option}" | |
end | |
end | |
end |
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
TODO |
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
<html> | |
<head> | |
</head> | |
<body> | |
<div id="post"> | |
<p id="test" data-textannotation-id="3a850d8670a8255343a9451b42f53eb3">Derrick Rose underwent a successful repair of his medial meniscus today. That's the good news. The bad news is that the Bulls have announced that Rose is done for the season.</p> | |
<p data-textannotation-id="ca49ebe0a4b38a6785a22c3fe1343c84">The long return time for Rose likely means that he had the meniscus repaired, instead of removed, all together or partially. That it could be salvaged is a good sign for future recovery, but that procedure takes longer to recover.</p> | |
<aside data-ids="482818589">RELATED | |
<div> |
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
import com.francisli.processing.http.*; | |
import processing.serial.*; | |
Serial myPort; // The serial port | |
int value = 0; | |
float oldValue; | |
PFont InstagramFont; |
NewerOlder