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
locals { | |
example_app_origin_id = "example-app-site-origin" | |
example_app_domain = "app.example.com" | |
} | |
data "aws_route53_zone" "example_com" { | |
name = "example.com" | |
private_zone = 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
#!/bin/bash | |
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after. | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents | |
# Agents to disable | |
#TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydev |
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
express = require('express') | |
app = express() | |
app.post '/experiments/:name/start', (req, res) -> | |
message = "#{req.params.name} Started" | |
console.log message | |
res.send message | |
app.post '/experiments/:name/stop', (req, res) -> | |
message = "#{req.params.name} Stopped" |
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
// | |
// Stephen Habegger (final submission -- removed some if/else statements) | |
// | |
void MergeIntoFirstArray(int[] firstArray, int[] mergeArray) | |
{ | |
int f, m; | |
f = m = mergeArray.Length - 1; | |
for (int i = firstArray.Length - 1; i >= 0; i--) | |
{ |
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
void Main() | |
{ | |
int[] a = { 1, 5, 12 }; | |
int[] b = { 2, 6, 9 }; | |
Console.WriteLine(MergeArrays(a, b)); | |
} | |
int[] MergeArrays(int[] a, int[] b) | |
{ | |
} |
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
void Main() | |
{ | |
int[] resizedArray = { 1, 4, 7, 0, 0, 0 }; | |
int[] mergeArray = { 2, 3, 5 }; | |
MergeIntoFirstArray(resizedArray, mergeArray); | |
Console.WriteLine(resizedArray); | |
} | |
void MergeIntoFirstArray(int[] firstArray, int[] mergeArray) | |
{ |
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
npm info it worked if it ends with ok | |
npm verb cli [ 'node', | |
npm verb cli '/usr/local/bin/npm', | |
npm verb cli 'install', | |
npm verb cli '-g', | |
npm verb cli '--verbose', | |
npm verb cli 'testem' ] | |
npm info using npm@1.1.24 | |
npm info using node@v0.6.19 | |
npm verb config file /Users/stevenoxley/.npmrc |