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
services: | |
- type: web | |
name: render-http-header-test | |
env: static | |
staticPublishPath: ./ | |
headers: | |
# Matches all files (overridden by the rules that follow) | |
- path: /* | |
name: Cache-Control | |
value: no-cache |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// import all of the things | |
const TodoList = (props) => { | |
const [todoList, setTodoList] = useState([]); | |
const [newTodo, setNewTodo] = useState(""); | |
function updateNewTodo(event) { | |
setNewTodo(event.target.value); | |
}; |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
for file in *.md | |
do | |
mv "$file" "${file%.md}.markdown" | |
done |
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
(function() { | |
var position | |
function saveScrollPosition() { | |
// If we don’t already have a saved scroll position | |
if (position == null || position <= 0) { | |
position = window.scrollY | |
} | |
} |
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
// https://github.com/gulpjs/gulp | |
var gulp = require('gulp'); | |
// https://www.npmjs.com/package/gulp-image-resize | |
var imageResize = require('gulp-image-resize'); | |
var parallel = require("concurrent-transform"); | |
var os = require("os"); |
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
// If we all shook each others' hands once (and only once), | |
// how many handshakes would that be?? | |
// Write a function that calculates how many handshakes will | |
// occur for a given number of people. | |
function countHandshakes (numPeople) { | |
var total_count = 0; | |
// loop through each of the people | |
for (var index = 0; index < numPeople; index++ ){ | |
// shake each person’s hand who you haven’t shaken yet |
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
// If we all shook each others' hands once (and only once), | |
// how many handshakes would that be?? | |
// Write a function that calculates how many handshakes will | |
// occur for a given number of people. | |
function countHandshakes (numPeople) { | |
var total_count = 0; | |
// loop through each of the people | |
for (var counter = 0; counter < numPeople; counter++ ){ | |
// shake each person’s hand who you haven’t shaken yet |
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
// If we all shook each others' hands once (and only once), | |
// how many handshakes would that be?? | |
// Write a function that calculates how many handshakes will | |
// occur for a given number of people. | |
function countHandshakes (people) { | |
var total_count = 0; | |
// loop through each of the people | |
for (var counter = 0; counter < people;counter++ ){ | |
// shake each person’s hand who you haven’t shaken yet |
NewerOlder