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 solution | |
(define (min a b) | |
(if (< a b) a b)) | |
(define (min3 a b c) | |
(min a (min b c))) | |
(define (square x)(* x x)) |
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
{ | |
"directory": "public/lib", | |
"proxy":"http://<proxy>", | |
"https-proxy":"http://<proxy>" | |
} |
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
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.mycompany.app</groupId> | |
<artifactId>my-app</artifactId> | |
<version>1</version> | |
</project> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
void swap(int *a, int *b) | |
{ | |
//printf("%p %p\n", a, b); | |
//printf("%d %d\n", *a, *b); | |
int tmp = *a; | |
*a = *b; | |
*b = tmp; |
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 Permut { | |
public static void main(String[] args) { | |
int ar[] = { 1, 2, 3}; | |
permut(ar, 0); | |
} | |
public static void print(int[] ar){ | |
for(int i = 0; i < ar.length; i++){ | |
System.out.printf("%d ", ar[i]); | |
} |
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 MainSort { | |
public void print(int[] ar){ | |
for(int a : ar){ | |
System.out.print(a + " "); | |
} | |
System.out.println(); | |
} | |
public void swap(int[] ar, int a, int b){ | |
int temp = ar[b]; |
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 Permut { | |
public void print(int[] ar){ | |
for(int a : ar){ | |
System.out.print(a + " "); | |
} | |
System.out.println(); | |
} | |
public void swap(int[] ar, int a, int b){ |
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 controllers | |
import play.api._ | |
import play.api.mvc._ | |
object Application extends Controller with LoggerSupport { | |
def index = Action { implicit req => | |
logger.info(s"Serving index to ${req.remoteAddress}") | |
Ok(views.html.index()) | |
} |
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
set -g prefix C-a | |
bind C-a send-prefix | |
setw -g mode-keys vi | |
set -g mode-mouse on | |
set-window-option -g xterm-keys on | |
set-option -g renumber-windows on | |
####################################################### | |
# TPM BEGIN | |
####################################################### |
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
export JAVA_HOME=/opt/jdk-current | |
export GOROOT=/opt/go | |
export PATH=$PATH:/opt/jdk-current/bin | |
export PATH=$PATH:/opt/apache-maven-current/bin | |
export PATH=$PATH:/opt/scala-current/bin | |
export PATH=$PATH:/opt/clojure-current | |
export PATH=$PATH:/opt/go/bin | |
export PATH=$PATH:/opt/sbt/bin | |
export PATH=$PATH:/opt/mongodb-current/bin | |
export PATH=$PATH:/opt/hadoop-current/bin |
OlderNewer