Skip to content

Instantly share code, notes, and snippets.

View kat-perreira's full-sized avatar

Kat Perreira ♡ kat-perreira

View GitHub Profile
@kat-perreira
kat-perreira / bulkUsers.js
Created March 8, 2023 18:14
To paste in a REPL like repl.it to create `n` users
// 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) => {
@kat-perreira
kat-perreira / less_than_5.py
Created January 27, 2021 06:06
While loop practice
# 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)
@kat-perreira
kat-perreira / BackendSettings.json
Last active August 16, 2021 16:44
VS Code Settings, Backend
{
"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,
@kat-perreira
kat-perreira / FrontendSettings.json
Last active August 16, 2021 16:51
VS Code Settings - Frontend (Kris B)
{
"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
@kat-perreira
kat-perreira / jan_ken_po.py
Created August 9, 2020 20:02
Ada Build project
# Rock, Paper, Scissors hardcoded values
computer = 'paper'
user = 'rock'
# win, lose, tie strings
game_strings = {
'win': 'You Win!',
'lose': 'You Lose!',
'tie': 'Tie!'
}
print("Aloha, Aina")
@kat-perreira
kat-perreira / pic.md
Created April 21, 2020 16:48
spirited

spirited1

@kat-perreira
kat-perreira / settings.json
Last active August 14, 2020 16:30
VS Code Settings
{
"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": "",
@kat-perreira
kat-perreira / template.html
Created December 19, 2018 00:44 — forked from Aurea-Li/template.html
HTML Template
<!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>
@kat-perreira
kat-perreira / fourbit_values_specs.rb
Last active August 20, 2018 21:16
fourbit_value_specs.rb
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