This file contains hidden or 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
| [alias] | |
| st = status | |
| ci = commit | |
| br = branch | |
| co = checkout | |
| df = diff | |
| lg = log -p | |
| lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
| lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
| l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative |
This file contains hidden or 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 testShouldFailOnUnexpectedExceptionShouldFail() { | |
| shouldFail { | |
| shouldFail(MyException) { | |
| throw new NullPointerException() | |
| } | |
| } | |
| } |
This file contains hidden or 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
| Code: | |
| class RepoControllerTests extends ControllerUnitTestCase { | |
| protected void setUp() { | |
| super.setUp() | |
| } | |
| protected void tearDown() { | |
| super.tearDown() | |
| } |
This file contains hidden or 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
| $ ssh-keygen -t rsa -C "[email protected]" | |
| Generating public/private rsa key pair. | |
| Enter file in which to save the key (/home/<your_user>/.ssh/id_rsa): | |
| Enter passphrase (empty for no passphrase): | |
| Enter same passphrase again: | |
| Your identification has been saved in /home/<your_user>/.ssh/id_rsa. | |
| Your public key has been saved in /home/<your_user>/.ssh/id_rsa.pub. | |
| The key fingerprint is: | |
| 37:6c:6c:f3:a8:67:20:4f:94:b0:5b:85:fd:6c:8b:e1 [email protected] | |
| The key's randomart image is: |
This file contains hidden or 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
| section: screens | |
| Linux: | |
| OSX: | |
| ctrl = ctrl | |
| alt = meta | |
| super = alt | |
| end | |
| section: links | |
| Linux: | |
| up = OSX |
This file contains hidden or 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
| /demo/bookstore[master]$ git branch -a | |
| * master | |
| remotes/release-1.0 | |
| remotes/release-1.0.x | |
| remotes/tags/releases | |
| remotes/trunk |
This file contains hidden or 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
| grails.project.class.dir = "target/classes" | |
| grails.project.test.class.dir = "target/test-classes" | |
| grails.project.test.reports.dir = "target/test-reports" | |
| //grails.project.war.file = "target/${appName}-${appVersion}.war" | |
| grails.project.dependency.resolution = { | |
| // inherit Grails' default dependencies | |
| inherits("global") { | |
| // uncomment to disable ehcache | |
| // excludes 'ehcache' | |
| } |
This file contains hidden or 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
| No signature of method: com.example.FooCommandBean.validate() is applicable for argument types: () values: [] Possible solutions: wait() | |
| groovy.lang.MissingMethodException: No signature of method: com.example.FooCommandBean.validate() is applicable for argument types: () values: [] | |
| Possible solutions: wait() | |
| at com.example.FooCommandBeanTests.testBar(FooCommandBeanTests.groovy:16) | |
| https://github.com/ColinHarrington/Grails-Examples/blob/master/CommandIntegrationTest/test/integration/com/example/FooCommandBeanTests.groovy |
This file contains hidden or 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
| int RED_PIN = 3; | |
| int GREEN_PIN = 6; | |
| int BLUE_PIN = 11; | |
| int MAXSPEED = 255; | |
| int SPEEDPAD = 80; | |
| int tick = 1; | |
| int rSpeed = 0; | |
| int rval = 0; | |
| int rGoal = 0; |
This file contains hidden or 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
| $ arduino | |
| java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver | |
| Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path | |
| at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734) | |
| at java.lang.Runtime.loadLibrary0(Runtime.java:823) | |
| at java.lang.System.loadLibrary(System.java:1028) | |
| at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123) | |
| at processing.app.Editor.populateSerialMenu(Editor.java:965) | |
| at processing.app.Editor.buildToolsMenu(Editor.java:717) | |
| at processing.app.Editor.buildMenuBar(Editor.java:502) |