- http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/
- http://www.webdesignermag.co.uk/inspiration/10-must-know-sublime-text-2-tips/
- Markdown editing: http://www.macstories.net/roundups/sublime-text-2-and-markdown-tips-tricks-and-links/
- Perfect workflow videos: https://tutsplus.com/course/improve-workflow-in-sublime-text-2/
- Visual enhancements: http://wesbos.com/sublime-text-5-visual-tweaks/
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
--- Start GCODE | |
M118 X20.06 Y15.14 Z22.37 T0 | |
M107 | |
G90 | |
G28 | |
M132 X Y Z A B | |
G1 Z50.000 F420 | |
G161 X Y F3300 | |
M7 T0 | |
M6 T0 |
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
app = DependencyInjectionApplicationContext( | |
loadConfig(true), | |
businessRepository = BusinessRepositoryStub() | |
).create() | |
serverUrl = app.start() |
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
fun loadConfig(randomPort: Boolean = false): DependencyInjectionApplicationConfig { | |
val properties = loadRuntimeProperties() | |
return DependencyInjectionApplicationConfig( | |
if (randomPort) 0 else requiredEnv(properties, "PORT", "5000").toInt(), | |
requiredEnv(properties, "DATABASE_URL"), | |
env(properties, "DATABASE_USER") | |
) | |
} |
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
/** | |
* The class responsible for wiring it all together | |
*/ | |
class DependencyInjectionApplicationContext( | |
private val configuration: DependencyInjectionApplicationConfig, | |
private val businessRepository: BusinessRepository? = null) { | |
fun create(): DependencyInjectionApplication { | |
// Create DataSource(s) | |
// ... |
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
fun main(args: Array<String>) { | |
// We load the config first resolving and checking if we have all the values we need. | |
val config = loadConfig() | |
// Then we wire up the application into objects. The variables are translated into "rich" objects like | |
// DataSources, Services and Repositories. | |
val app = DependencyInjectionApplicationContext(config).create() | |
// Then you start the main application code. | |
app.start() |
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
#!/bin/bash -eu | |
youtube-dl \ | |
--abort-on-error \ | |
--write-sub \ | |
--convert-subs srt \ | |
--embed-subs \ | |
--sub-lang no,en \ | |
--add-metadata \ | |
--output '%(series)s.S%(season_number)02dE%(episode_number)02d.%(title)s.%(ext)s' $1 |
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
### Keybase proof | |
I hereby claim: | |
* I am anderssv on github. | |
* I am anderssv (https://keybase.io/anderssv) on keybase. | |
* I have a public key whose fingerprint is EDED A7DB F6E1 C8A6 3EEA 2246 8F15 9B9B 50B5 FC56 | |
To claim this, I am signing this object: |