Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
- No Linting
| import random | |
| import click | |
| import uvicorn | |
| from fastapi import FastAPI, APIRouter, Depends, Request | |
| # Service | |
| class MySingletonService: | |
| def __init__(self): |
| import asyncio | |
| import discord | |
| from fastapi import FastAPI | |
| app = FastAPI() | |
| client = discord.Client() | |
| # where the magic happens | |
| # register an asyncio.create_task(client.start()) on app's startup event |
Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
| #import the bpy module to access blender API | |
| import bpy | |
| #WARNING: this is written and tested for blender 2.79 | |
| #blender 2.8 and newer will likely have a different python API | |
| #create a property group, this is REALLY needed so that operators | |
| #AND the UI can access, display and expose it to the user to change | |
| #in here we will have all properties(variables) that is neccessary | |
| class CustomPropertyGroup(bpy.types.PropertyGroup): |
Ctrl + Alt + Space
| #pltask functions | |
| ## pltask is a lightweight facade to taskwarrior for use with Powerlevel9k's Second Prompt Prefix (by dmidlo @querentCode) | |
| ## Be sure to set search.case.sensitive=no within .taskrc | |
| POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
| POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
| POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="\n" | |
| pltask () { | |
| setNewlinePrompt () { | |
| POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="%K{white}%F{black}\n $1 %f%k%F{white}%f $ " |
| # Config that is very close to a i3 window manager's keybinding. | |
| set -s escape-time 0 | |
| setw -g aggressive-resize on | |
| # First remove *all* keybindings | |
| unbind-key -a | |
| # List keys | |
| bind-key ? list-keys |
| To export SVG from Google Slides. | |
| 1. Open Slide deck. | |
| 2. View -> 100% | |
| 3. Click on every thumbnail from first to last, this puts the SVG into the DOM. | |
| 4. Paste the export.js in the console. | |
| 5. Make sure to allow multiple downloads. | |
| 6. All SVG should be in Downloads folder. | |
| Cheers, |
| #Reference: http://michaellwest.blogspot.com/2013/03/add-font-to-powershell-console.html | |
| #Reference: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q247815 This explains why we name it 000 | |
| Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' #Get the properties of TTF | |
| Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' -Name 000 -Value 'Source Code Pro' #Set it to SCP | |
| Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' #Check to see if we properly set it so that SCP is an option |