A Pen by Steve Halford on CodePen.
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
<?php | |
/** | |
* Generate an entity object that provide CRUD operation for a database table. | |
* | |
* Some examples: | |
* | |
* // New Instance | |
* $users = new Entity($link, "users"); | |
* |
- Use descriptive and obvious names.
- Don't use abbreviations, use full English words.
player
is better thanplr
. - Name things as directly as possible.
wasCalled
is better thanhasBeenCalled
.notify
is better thandoNotification
. - Name booleans as if they are yes or no questions.
isFirstRun
is better thanfirstRun
. - Name functions using verb forms:
increment
is better thanplusOne
.unzip
is better thanfilesFromZip
. - Name event handlers to express when they run.
onClick
is better thanclick
. - Put statements and expressions in positive form.
isFlying
instead ofisNotFlying
.late
intead ofnotOnTime
.- Lead with positive conditionals. Avoid
if not something then ... else ... end
.
- Don't use abbreviations, use full English words.
- If we only care about the inverse of a variable, turn it into a positive name.
missingValue
instead ofnot hasValue
.
- Install Docker CE for Windows
- Go to Docker for Windows Settings -> General and enable
Expose daemon on tcp://localhost:2375 without TLS
.
This will enable the Docker remote API for requests, coming from localhost, not from another computer in your network. A TLS secured version is not yet supported in Docker for Windows. See docker/for-win#453 for more information. I also tried a daemon.json file with options tlscacert, tlscert, tlskey and tlsverify, but Docker for Windows crashed on booting.
- Enable Developer Mode as described in Enable your device for development
- Install WSL by running the following in Powershell as Administrator: `E
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
# Processing 3.5.4 IDE - dark theme | |
# Updated version by @RandomGuy3015 | |
# File location: processing-3.5.4/lib/theme.txt | |
# Make a backup of the original theme.txt | |
# Then replace it with this code | |
# Code colors can be adjusted in the preferences.txt file |
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
--- Animal.lua | |
-- | |
-- A simple example of a base class usng the classes library. | |
-- | |
-- @author PaulMoore | |
-- | |
-- Copyright (C) 2011 by Strange Ideas Software | |
-- | |
-- Permission is hereby granted, free of charge, to any person obtaining a copy | |
-- of this software and associated documentation files (the "Software"), to deal |