Clark Sell
Unspecified, https://unspecified.io
THAT Conference, https://thatconference.com, https://that.us
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="author" content="Clark Sell" /> | |
<title>Consuming an OData Service from jQuery</title> | |
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.6.2.min.js"></script> | |
<script src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script> <!-- http://api.jquery.com/category/plugins/templates/ --> |
This file contains 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
@functions { | |
public static IList<dynamic> GetRecentShow() | |
{ | |
return OData.Get(@"http://developersmackdown.com/services/odata/Shows?$orderby=ShowId%20desc&$top=1"); | |
} | |
} | |
@helper GetLatestShow() { | |
var show = DeveloperSmackdown.GetRecentShow(); |
This file contains 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
<script> | |
var something = "something else"; | |
"use strict"; // wasn't first statement | |
foo = "foo"; // will not fail | |
(function() { | |
"use strict"; | |
bar = "bar"; // will fail | |
})(); |
This file contains 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
{ | |
"u": "http://net.tutsplus.com/tutorials/javascript-ajax/the-10-javascript-mistakes-youre-making/", | |
"d": "The 10 JavaScript Mistakes you2019re Making", | |
"t": [ | |
"javascript", | |
"ajax", | |
"eval", | |
"via:zite" | |
], | |
"dt": "2011-06-06T16:13:50Z", |
This file contains 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
body { | |
} | |
@media screen and (-ms-view-state: fullscreen-landscape) { | |
} | |
@media screen and (-ms-view-state: filled) { | |
} | |
@media screen and (-ms-view-state: snapped) { |
This file contains 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
const fetchMachine = Machine( | |
{ | |
id: 'community', | |
type: 'parallel', | |
context: { | |
slug: '1234', | |
community: undefined, | |
followMachineServices: undefined, |
This file contains 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
const fetchMachine = Machine( | |
{ | |
id: 'pagingMachine', | |
initial: 'init', | |
context: { | |
items: [], | |
cursor: null, | |
hasMore: false, | |
}, |
This file contains 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch Chrome", | |
"request": "launch", | |
"type": "pwa-chrome", | |
"url": "http://localhost:3000", | |
"webRoot": "${workspaceFolder}" | |
}, |
This file contains 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
{ | |
"editor.rulers": [80], | |
"editor.formatOnSave": true, | |
"prettier.tabWidth": 2, | |
"editor.insertSpaces": false, | |
"editor.tabSize": 2, | |
"editor.snippetSuggestions": "top", | |
"editor.codeActionsOnSave": { | |
"source.fixAll": true | |
}, |
OlderNewer