Skip to content

Instantly share code, notes, and snippets.

extends KinematicBody2D
signal dragsignalstart
signal dragsignalstop
var dragging = false
var mouse_over = false
var offset
var tween
var flipped = false

Front End Capstone Journal

This gist details the decisions I made, the tests I conducted, the observations recorded, and the directions I took while building out our Front End Capstone project.

Goals

To create the Item Detail pages for Project Atelier, an eCommerce product page built in React, focusing on Performance Optimization

Achievements

This file has been truncated, but you can view the full file.
AA rough, cindery lava [n AAS]
AB an abdominal muscle [n ABS]
AD an {advertisement=n} [n ADS]
AE one [adj]
AG {agriculture=n} [n AGS]
AH {aah=v} [v AHED, AHING, AHS]
AI a three-toed sloth [n AIS]
AL an East Indian tree [n ALS]
AM <be=v> [v]
AN used before words beginning with a vowel sound [article]
var test = [
9,
null,
true,
false,
'Hello world',
[],
[8],
['hi'],
[8, 'hi'],
<div id="hands-grid">
{ orderedHands.map(function(hand) {
{const sortedActions = Object.entries(handState[hand]["actions"])
.sort(([,a],[,b]) => b-a)
.reduce((r, [k, v]) => ({ ...r, [k]: v }), {});
console.log("sortedActions", sortedActions)
const firstAction = Object.keys(sortedActions)[0]
const firstColor = actionColors[firstAction]
const firstActionWeight = sortedActions[firstAction]
const secondAction = Object.keys(sortedActions)[1]
@cwg83
cwg83 / update.py
Last active January 21, 2022 22:39
<div class="confirm-column">
{% if not timeslot.confirmed %}
{% csrf_token %}
<button id="confirm-btn" onclick="confirm()" data-teacherslug="{{ slug }}" data-timeslotid="{{ timeslot.id }}">Confirm</button>
{% else %}
<span id="checkmark"></span>
{% endif %}
</div>
def confirm_timeslot(request, teacher_slug, timeslot_id):
import itertools
given_matrix = [[1, 2, 3, 4, 5, 6],
[7, 8, 9, 10, 11, 12],
[13, 14, 15, 16, 17, 18],
[19, 20, 21, 22, 23, 24],
[25, 26, 27, 28, 29, 30],
[31, 32, 33, 34, 35, 36]]
rotations = 2
import itertools
import pandas as pd
import matplotlib.pyplot as plt
from tkinter import *
from tkinter import ttk
def input_ui(results_text):
# Create Tkinter frame instance
win = Tk()
def input_ui(results_text):
# Create Tkinter frame instance
win = Tk()
# Set Tkinter frame geometry
win.geometry("750x250")
# Initialize Label widgets to display the total accuracy, instructions, and validation warning text
results_label = Label(win, text=results_text, font="Courier 12")
results_label.grid(row=0, column=0, columnspan=4)
def input_ui(results_text):
# Create Tkinter frame instance
win = Tk()
# Set Tkinter frame geometry
win.geometry("750x250")
# Initialize Label widgets to display the total accuracy, instructions, and validation warning text
results_label = Label(win, text=results_text, font="Courier 12")
results_label.grid(row=0, column=0, columnspan=4)