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
class MainDB::App < ActiveRecord::Base | |
establish_connection :main_db | |
set_table_name "APPLICATIONS" | |
end |
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
X.b.get('prop') // => 0 | |
X.b.setA(X.o) | |
X.b.get('prop') // => 0 | |
X.b.get('a').get('prop') // => 1 | |
X.b.notifyPropertyChange('prop') | |
X.b.get('prop') // => 1 |
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
# Define colors | |
RESET='\[\033[00m\]' | |
FGBK='\[\033[0;30m\]' # foreground black | |
FGRD='\[\033[0;31m\]' # foreground red | |
FGGN='\[\033[0;32m\]' # foreground green | |
FGYL='\[\033[0;33m\]' # foreground yellow | |
FGBL='\[\033[0;34m\]' # foreground blue | |
FGMG='\[\033[0;35m\]' # foreground magenta | |
FGCY='\[\033[0;36m\]' # foreground cyan | |
FGGR='\[\033[0;37m\]' # foreground gray |
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
import com.fasterxml.jackson.annotation.JsonCreator; | |
import test.protobuf.Test; | |
public class Wrapper { | |
public Test.Foo foo; | |
@JsonCreator | |
public Wrapper(Test.Foo foo) { | |
this.foo = foo; | |
} |
OlderNewer