- Do the practice test to get you in the right frame of mind - get the wtfs out the way there
- While the questions can seem foreign, you've probably done some very similar things before, just in a more "practical" context
- You're allowed to use the Python docs - do so. The most useful page is probably gonna be https://docs.python.org/3/library/stdtypes.html, which has info on all the builtin types and what you can do with them.
- Python handles for-loops a bit differently to most other languages - you probably wanna read up on that
- Make sure you've got python 3.X (probably 3.6) installed and an editor you're comfortable with
- seriously do the practice test it took me 6 hours (with some big breaks) to do 10 questions and then under 90 minutes to do 14 it really helps
- They'll be a couple of times where you put your code in and it fails a couple of tests - don't panic, it's not too big of a deal.
- You'll do well.
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
local lovetoys = require('lovetoys') | |
lovetoys.initialize({globals = true, debug = true}) | |
function love.load() | |
local Position = Component.create("position", {"x", "y"}, {x = 0, y = 0}) | |
local Velocity = Component.create("velocity", {"vx", "vy"}) | |
local player = Entity() | |
player:initialize() |
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
crispin@myrddin:~/Documents/scratch/jshit ⍬ cloc . | |
11794 text files. | |
9418 unique files. | |
2907 files ignored. | |
2 errors: | |
Line count, exceeded timeout: ./node_modules/acorn/dist/acorn_loose.es.js | |
Line count, exceeded timeout: ./node_modules/acorn/dist/acorn_loose.js | |
github.com/AlDanial/cloc v 1.80 T=8.94 s (999.5 files/s, 120319.6 lines/s) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
void press_and_release(long key) { | |
Keyboard.press(key); | |
delay(100); | |
Keyboard.release(key); | |
} | |
void setup() { | |
const int ledPin = 13; | |
pinMode(ledPin, OUTPUT); | |
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
// ==UserScript== | |
// @name Scratch Discuss Link Adder | |
// @namespace __init__.scratchdiscuss | |
// @description The only link you need By __init__, ninjagolloyd, and MrFlash67 | |
// @include https://scratch.mit.edu/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
osx-laptop:build crispin$ ls | |
CMakeCache.txt bin rules.ninja | |
CMakeFiles build.ninja src | |
CPackConfig.cmake cmake_install.cmake third_party | |
CPackSourceConfig.cmake lib | |
CTestTestfile.cmake pixman-version.h | |
osx-laptop:build crispin$ rm -rf * | |
osx-laptop:build crispin$ cmake -D "CMAKE_OSX_ARCHITECTURES:STRING=x86_64" -DUSE_ALLEG4_BACKEND=OFF -DUSE_SKIA_BACKEND=ON -DSKIA_DIR=/Users/crispin/Documents/skia/skia/ \ | |
> -D "CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7" \ | |
> -D "CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk" \ |
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
osx-laptop:~ crispin$ cd Documents/skia/skia/ | |
osx-laptop:skia crispin$ ls | |
AUTHORS bin make.bat | |
CONTRIBUTING cmake make.py | |
CQ_COMMITTERS codereview.settings out | |
DEPS common platform_tools | |
Doxyfile debugger public.bzl | |
LICENSE dm resources | |
Makefile example samplecode | |
OWNERS experimental site |
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
osx-laptop:Documents crispin$ git clone --recursive https://github.com/aseprite/aseprite.git | |
Cloning into 'aseprite'... | |
{It all works) | |
osx-laptop:Documents crispin$ cd aseprite/ | |
osx-laptop:aseprite crispin$ mkdir build | |
osx-laptop:aseprite crispin$ cd build | |
osx-laptop:build crispin$ cmake -D "CMAKE_OSX_ARCHITECTURES:STRING=x86_64" -DUSE_ALLEG4_BACKEND=OFF -DUSE_SKIA_BACKEND=ON -DSKIA_DIR=/Users/crispin/Documents/skia/skia/ -GNinja \ | |
> -D "CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7" \ | |
> -D "CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk" \ | |
> -D "WITH_HarfBuzz:BOOL=OFF" .. |