Skip to content

Instantly share code, notes, and snippets.

View ErnWong's full-sized avatar
🦆

Ernest Wong ErnWong

🦆
View GitHub Profile
@ErnWong
ErnWong / STM_controller.v0.map
Last active November 11, 2019 08:00
BeatBot memory map before optimising for space
Component: ARM Compiler 5.06 update 6 (build 750) Tool: armlink [4d35ed]
==============================================================================
Section Cross References
startup_stm32f103xb.o(RESET) refers to startup_stm32f103xb.o(STACK) for __initial_sp
startup_stm32f103xb.o(RESET) refers to startup_stm32f103xb.o(.text) for Reset_Handler
startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.NMI_Handler) for NMI_Handler
startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.HardFault_Handler) for HardFault_Handler

People look at reviews and show ratings for show recommendation
Rating is 1 dimensional
People who like one highly ranked show
May not like another highly ranked show
Some people like watching lowly ranked shows
Not all shows are good because of their
Story-Character-Art-Music combination
Then
Why not
Get users to share what they expect

Grid of buttons
That can light up
Behaving like a finite state machine
But obfuscate the state machine logic
In a large neural network
Just for fun
And get the player
To get all buttons lit up
And have lots of fun designing
The CSS and animations

  • Selection has a cursor
  • Selection has an origin
  • Selection, when dragging, can snap to certain points to select various granularity, such as whole words, whole sentences, etc.
    • Granularity can be specified by a custom getSnapPoints function or something similar.
      • Or infer granularity from single/double/triple click?
    • Preset getSnapPoints functions for common mediums such as text can be provided
    • Selection starts off without snapping, and snapping is only activated once it passes the first snap point.
  • Dragging the selection backwards could still snap, but if the backward motion is slow enough, the selection snapping will be disabled until selection is dragged to the right past a snapping point.
  • When snapping is activated, both the cursor and origin is snapped in opposite directions to extend the selection. Is this a desired user feature?
  • When selection cursor is brought back close to the origin, between the origin and the first snapping point, then snapping is disabled for that d
environment_genome.from_flattened({
'water_genes': [
{
'amount': 2.58712292237539,
'smell_signature': [-0.28899390479502074, -0.00830629590648524, 0.09767028130163857, -0.05182467021560022, 0.7185100142896303]
},
{
'amount': 1.439923830198761,
'smell_signature': [ 0.38302337370748285, -0.617770547361407, 0.8557760937332404, -0.7526113883887016, -0.34273501187112054]
}

Ideally we want the following behaviour:

  • Feel the inertia of the hammer
  • Feel the "bump" as the action mechanism reaches the escapement stage
  • Re-engage above the escapement stage without a full reset
  • The keys should feel lighter when the damper pedal is pressed
  • Key should have an appropriately large radius of rotation as it is pressed so that the effective "weight" is roughly uniform regardless where the key is pressed from.

Essential components:

Tokens From below From horizontal From above To below To horizontal To above
+ Yes ✔️ Yes ✔️ Yes ✔️ Yes ✔️ Yes ✔️ Yes ✔️
< No ❌ Yes ✔️ No ❌ Yes ✔️ Yes ✔️ Yes ✔️
> Yes ✔️ Yes ✔️ Yes ✔️ No ❌ Yes ✔️ No ❌
.,_ Yes ✔️ Yes ✔️ No ❌ Yes ✔️ Yes ✔️ No ❌
'`^* No ❌ Yes :hea
/home/ernwong/anaconda3/envs/NL2code/bin/python /home/ernwong/Downloads/Software/PyCharm/pycharm-professional-2020.1.1/pycharm-2020.1.1/plugins/python/helpers/pydev/pydevconsole.py --mode=client --port=44163
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/ernwong/uni/se700/part4project/NL2code'])
PyDev console: starting.
Python 2.7.17 |Anaconda, Inc.| (default, Oct 21 2019, 19:04:46)
[GCC 7.3.0] on linux2
>>> runfile('/home/ernwong/uni/se700/part4project/cpp_parser.py', wdir='/home/ernwong/uni/se700/part4project')
/home/ernwong/anaconda3/envs/NL2code/bin/python /home/ernwong/Downloads/Software/PyCharm/pycharm-professional-2020.1.1/pycharm-2020.1.1/plugins/python/helpers/pydev/pydevconsole.py --mode=client --port=35069
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/ernwong/uni/se700/part4project/NL2code'])
PyDev console: starting.
Python 2.7.17 |Anaconda, Inc.| (default, Oct 21 2019, 19:04:46)
[GCC 7.3.0] on linux2
>>> import os
This file has been truncated, but you can view the full file.
7282
Pass 2 - terminal vocab - #7283
Pass 2 - terminal vocab - #7284
Pass 2 - terminal vocab - #7285
Pass 2 - terminal vocab - #7286
Pass 2 - terminal vocab - #7287
Pass 2 - terminal vocab - #7288
Pass 2 - terminal vocab - #7289
Pass 2 - terminal vocab - #7290
Pass 2 - terminal vocab - #7291