- add leave to calendar. leave needs to be added to multiple calendars, companies and projects
- see leaves calendar
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
public class Foo { | |
public String ping() { | |
return "ping"; | |
} | |
public String pong() { | |
return "pong"; | |
} | |
} |
https://twitter.com/lkdjiin/status/682209935237582848
1.respond_to?(:dup) #=> true
1.dup #=> TypeError
Have to manually :
class Fixnum
undef_method :dup
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
# ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] | |
# from https://bugs.ruby-lang.org/issues/11301 | |
module M | |
end | |
class A | |
prepend M | |
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
# If i have a class, which includes a module | |
# Now i cannot reopen the class and prepend the same module | |
# ran on ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] | |
class Base; end | |
module M1; end | |
module M2; end | |
class C1 < Base; 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
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.FileSystemXmlApplicationContext; | |
public class Main { | |
public static void main(String[] args) { | |
ApplicationContext context = new FileSystemXmlApplicationContext("spring.xml"); | |
Triangle shape = (Triangle) context.getBean("triangle"); | |
shape.draw(); |
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
1. save links, one per line, in a txt file. call it eg. links.txt | |
2. install wget, if not already installed. eg. brew install wget on Apple OSX | |
3. call wget as "wget --continue --content-disposition -i links.txt" | |
`--content-disposition` is useful to get the correct file name | |
`--continue` is useful for continuing a partial upload | |
from the wget man page: | |
--continue | |
Continue getting a partially-downloaded file. This is useful when you want to |
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
module A | |
def say | |
puts "in A" | |
super | |
end | |
end | |
module B | |
def say | |
puts "in B" |
The SICP page recommends MIT scheme,
so that is what we will use
to install it, on Apple OSX using Homebrew:
brew tap x11
brew cask install xquartz
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
#!/bin/bash | |
set -e | |
export RAILS_ENV=test | |
export DISABLE_SPRING=1 | |
source /usr/local/rvm/scripts/rvm | |
rvm use ruby-2.2.1 | |
bundle install --path=vendor > log/bundle_install.log |