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 users | |
const createBulkUsers = (numberOfUsers) => { | |
// skip validation is true | |
for (let i = 0; i < numberOfUsers; i++) { | |
console.log(`user:create_employee[highspot.com, user${i}@highspot.com, abc123!, user${i}, surname, true]`); | |
} | |
} | |
// for emails to feed to people picker to assign as admin roles, add to spot as spot owners, ect | |
const createEmailList = (numberOfUsers) => { |
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
# while something is true, do the thing | |
# print all numbers that are less than 5 | |
def less_than_5(): | |
thing_to_return = [] | |
i = 0 # set something to less than 5 () | |
while i < 5: | |
thing_to_return.append(i) | |
i += 1 | |
print(thing_to_return) |
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
{ | |
"atomKeymap.promptV3Features": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.formatOnPaste": true, | |
"workbench.sideBar.location": "right", | |
"editor.fontSize": 16, | |
"editor.scrollBeyondLastLine": false, | |
"editor.tabSize": 2, | |
"editor.renderWhitespace": "all", | |
"window.zoomLevel": 0, |
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
{ | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
"**/node_modules/*/**": false, // Note: I toggle this one while debugging libraries sometimes | |
"**/bin/*/**": true, | |
"**/Config/*/**": true |
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
# Rock, Paper, Scissors hardcoded values | |
computer = 'paper' | |
user = 'rock' | |
# win, lose, tie strings | |
game_strings = { | |
'win': 'You Win!', | |
'lose': 'You Lose!', | |
'tie': 'Tie!' | |
} |
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
print("Aloha, Aina") |
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
{ | |
"sync.gist": "60b2bd8c42840839e41a306d94fdca29", | |
"sync.lastUpload": "2018-08-02T19:35:09.031Z", | |
"sync.autoDownload": true, | |
"sync.autoUpload": true, | |
"sync.lastDownload": "", | |
"sync.forceDownload": false, | |
"sync.anonymousGist": false, | |
"sync.host": "", | |
"sync.pathPrefix": "", |
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" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<script src="https://code.jquery.com/jquery-3.3.1.js"></script> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
<script type="text/javascript" src="index.js"></script> | |
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
require 'minitest/autorun' | |
require 'minitest/reporters' | |
require_relative '../lib/fourbit_values.rb' | |
# [Optional] Write a program to print all possible values that can be represented using 4 bits. e.g. 0000, 0001, 0010, 0011, 0100 ... and so on. | |
describe 'four_bit to value' do | |
it "0 value for 0000" do | |
# Arrange |
NewerOlder