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/sh | |
if [ -z "$1" ] | |
then | |
echo "Branch name is missing" | |
else | |
# Go to relevant branch | |
git checkout $1 | |
# fetch everything |
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/sh | |
# Go to relevant branch | |
git checkout $1 | |
# fetch everything | |
git fetch | |
#rebase interactive | |
git rebase -i origin/master |
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
# Basic | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global alias.ci commit | |
git config --global alias.br branch | |
# Branches | |
git config --global alias.buf "checkout -b" | |
git config --global alias.puf "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
#!/bin/sh | |
git checkout release | |
git rebase master release | |
git push |
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
# see also http://kbroman.org/github_tutorial/pages/init.html | |
git init | |
# > Initialized empty Git repository in /home/eyalgo/development/eclipse-projects/file-system/.git/ | |
git remote add origin git@github.com:eyalgo/<repository>.git | |
git pull | |
# > remote: Counting objects: 7, done. | |
# > remote: Compressing objects: 100% (6/6), done. | |
# > remote: Total 7 (delta 1), reused 0 (delta 0) |
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
165c165 | |
< color: colors.colorWhite09 | |
--- | |
> color: colors.colorWhite31 |
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 CSI 1.0 | |
import QtQuick 2.0 | |
//-------------------------------------------------------------------------------------------------------------------- | |
// DECK HEADER TEXT | |
//-------------------------------------------------------------------------------------------------------------------- | |
Text { | |
id: header_text |
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 CSI 1.0 | |
import QtQuick 2.0 | |
import QtGraphicalEffects 1.0 | |
import './../Definitions' as Definitions | |
import './../Widgets' as Widgets | |
//-------------------------------------------------------------------------------------------------------------------- | |
// DECK HEADER | |
//-------------------------------------------------------------------------------------------------------------------- |
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 QtQuick 2.0 | |
QtObject { | |
function rgba(r,g,b,a) { return Qt.rgba( neutralizer(r)/255. , neutralizer(g)/255. , neutralizer(b)/255. , neutralizer(a)/255. ) } | |
// this categorizes any rgb value to multiples of 8 for each channel to avoid unbalanced colors on the display (r5-g6-b5 bit) | |
// function neutralizer(value) { if(value%8 > 4) { return value - value%8 + 8} else { return value - value%8 }} | |
function neutralizer(value) { return 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
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/example_db | |
at java.sql.DriverManager.getConnection(DriverManager.java:689) | |
at java.sql.DriverManager.getConnection(DriverManager.java:247) | |
at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75) | |
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) | |
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148) | |
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106) | |
at scalikejdbc.CommonsConnectionPool.borrow(CommonsConnectionPool.scala:43) | |
at scalikejdbc.NamedDB.db$lzycompute(NamedDB.scala:33) | |
at scalikejdbc.NamedDB.db(NamedDB.scala:31) |