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
10 REM anagrams | |
20 INPUT L$(1),L$(2),L$(3),L$(4) | |
30 PRINT | |
40 FOR I1=1 TO 4 | |
50 FOR I2=1 TO 4 | |
60 IF I2=I1 THEN 130 | |
70 FOR I3=1 TO 4 | |
80 IF I3=I1 THEN 120 | |
90 IF I3=I2 THEN 120 | |
100 LET I4=10-(I1+I2+I3) |
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
target/ | |
lib_managed/ | |
src_managed/ | |
project/boot/ | |
project/build/target/ | |
project/plugins/target/ | |
project/plugins/lib_managed/ | |
project/plugins/src_managed/ |
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
keytool -genkey -v -keystore ~/.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 |
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
package net.liftweb.common | |
import org.junit.runner.RunWith | |
import org.scalatest.FlatSpec | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest.matchers.ShouldMatchers | |
@RunWith(classOf[JUnitRunner]) | |
class BoxTest extends FlatSpec with ShouldMatchers { | |
val foo = "foo" |
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
if has('win32') || has('win64') | |
set runtimepath+=$HOME/Dropbox/config/vim | |
source ~\Dropbox\config\vim\vimrc.vim | |
else | |
set runtimepath+=~/Dropbox/config/vim | |
source ~/Dropbox/config/vim/vimrc.vim | |
endif |
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 the following line to ~/.bashrc: | |
# . /path/to/this/script/run.sh script_folder | |
# For example: | |
# . ~/Dropbox/config/bash/run.sh session | |
# Don't forget the dot! | |
for f in `dirname ${BASH_SOURCE[0]}`/$1/*; do | |
. $f | |
done |
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 org.parboiled.scala._ | |
import org.parboiled.errors.ErrorUtils | |
import org.junit.runner.RunWith | |
import org.scalatest.FlatSpec | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest.matchers.ShouldMatchers | |
@RunWith(classOf[JUnitRunner]) | |
class IsolationTest extends FlatSpec with ShouldMatchers { | |
val input = "abcdxyz" |
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
function _fancy_prompt { | |
local RED="\[\033[01;31m\]" | |
local GREEN="\[\033[01;32m\]" | |
local YELLOW="\[\033[01;33m\]" | |
local BLUE="\[\033[01;34m\]" | |
local WHITE="\[\033[00m\]" | |
local PROMPT="" | |
# Working directory |
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
// My implementation of Cedric Beust's coding challenge: | |
// | |
// A School has either a name (“Stanford”) or a nickname (“UCSD”) or both. | |
// | |
// Your task is to write equals() and hashCode() methods for the School class | |
// that satisfy the following requirement: two Schools are identical if they | |
// either have the same name or the same nickname. | |
// | |
// http://beust.com/weblog/2013/02/13/coding-challenge-light-edition/ |
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 net.sf.cglib.proxy.Enhancer; | |
import net.sf.cglib.proxy.NoOp; | |
import org.jetbrains.annotations.NotNull; | |
import org.junit.Test; | |
public class MyObjectTest { | |
@Test | |
public void shouldVerifyHashCodeEquals() { | |
Enhancer e = new Enhancer(); |
OlderNewer