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 | |
# Install apps, packages, etc. | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null | |
brew tap homebrew/cask-versions | |
# brew cask install iterm2 | |
brew install --cask iterm2 |
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 | |
git config --global user.name 'Eyal Golan' | |
# git config --global user.email "the@email" | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global alias.ci 'commit -v' | |
git config --global alias.br branch | |
git config --global alias.cob 'checkout -b' | |
git config --global alias.por 'push -u origin' |
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
29c29,30 | |
< | |
--- | |
> AppProperty { id: trackBPM; path: "app.traktor.decks." + (deckId+1) + ".tempo.base_bpm" } | |
> | |
184a186,213 | |
> Repeater { | |
> readonly property int minutes: numberOfMinutes(trackLength.value) | |
> readonly property real minuteDelta: (stripe.width * 60.0) / trackLength.value | |
> |
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
def CLdump(cl: ClassLoader = Thread.currentThread().getContextClassLoader) = { | |
val f = classOf[ClassLoader].getDeclaredField("classes") | |
f.setAccessible(true) | |
dump(cl) | |
def dump(cl: ClassLoader): Unit = { | |
if (cl == null) return | |
val classes = f.get(cl).asInstanceOf[java.util.Vector[java.lang.Class[_]]] | |
println(cl) | |
println(classes.toArray.map(cl => "\t" + cl.toString).mkString("\n")) | |
dump(cl.getParent) |
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
# create a new branch out of current branch | |
git checkout -b <NEW_FEATURE_BRANCH_NAME> | |
# share the branch | |
git push -u origin <BRANCH_NAME> | |
# show all branches | |
git remote show origin | |
# Delete remotely |
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
Eyal| | TICKET-# | | |
Co-authored-by: <name> <name@example.com> |
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
# Add to %PATH% | |
# Can run: git nb MY_BRANCH_NAME | |
#!/bin/sh | |
git checkout master | |
git pull | |
git checkout -b $1 | |
git push -u origin $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
import java.util.Date; | |
import java.util.List; | |
import org.hamcrest.CustomTypeSafeMatcher; | |
import org.hamcrest.Matcher; | |
import com.eyalgo.rssreader.model.FeedData; | |
import com.eyalgo.rssreader.model.FeedItem; | |
public class Matchers { |
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
public class RuleTest { | |
@Rule | |
public TemporaryFolder tmpFolder = new TemporaryFolder(); | |
@Test | |
public void shouldCreateNewFileInTemporaryFolder() throws IOException { | |
File created = tmpFolder.newFile("file.txt"); | |
assertTrue(created.isFile()); |
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
buildscript { | |
ext { | |
springBootVersion = '2.1.0.RELEASE' | |
springDataVersion = '2.1.2.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { |
NewerOlder