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 "test.h" | |
@implementation | |
-(id) viewDidLoad{ | |
NSString *str = @"test for using highlighting syntax"; | |
NSLog(@"%@", str); | |
} |
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 springbook.user.domain; | |
public class User { | |
String id; | |
String name; | |
String password; | |
public String getId() { | |
return id; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head lang="ko"> | |
<meta charset="UTF-8"> | |
<title>First HOMEWORK</title> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<script type="application/javascript" src="http://code.jquery.com/jquery-1.11.1.js"></script> | |
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
print "hello world" |
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
<img class="easter-egg top-cat" src="http://tholman.com/overscroll/img/cat-1.png" /> | |
<img class="easter-egg bottom-cat" src="http://tholman.com/overscroll/img/cat-2.png" /> | |
<!-- JS --> | |
<script src='http://tholman.com/overscroll/overscroll.js'></script> | |
<script> | |
var overscroll = new Overscroll(); | |
overscroll.bindElement( document.querySelector('.top-cat'), 'top', 4); | |
overscroll.bindElement( document.querySelector('.bottom-cat'), 'bottom', 4); | |
</script> |
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
hrs = raw_input("Enter Hours:") | |
h = float(hrs) | |
rate = raw_input("Enter Rate:") | |
r = float(rate) | |
if hrs > 40 : | |
pay = 40 * r + (h-40) * r * 1.5 | |
else : | |
pay = h * r | |
print pay |
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
inp = raw_input("Enter the score") | |
score = float(inp); | |
if score <= 1.0 : | |
if score >= 0.9 : | |
print("A") | |
elif score >= 0.8 : | |
print("B") | |
elif score >= 0.7 : | |
print("C") | |
elif score >= 0.6 : |
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
def computepay(h,r): | |
if h > 40 : | |
pay = 40*r+(h-40)*r*1.5 | |
else : | |
pay = h*r | |
return pay | |
hrs = raw_input("Enter Hours:") | |
rate = raw_input("Enter Rate:") | |
p = computepay(float(hrs),float(rate)) |
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
largest = None | |
smallest = None | |
while True: | |
inp = raw_input("Enter a number: ") | |
if inp == "done" : break | |
try : | |
num = int(inp) | |
if smallest is None : smallest = num | |
elif smallest > num : smallest = num |
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
// https://www.hackerrank.com/challenges/fp-solve-me-first | |
object Solution { | |
def main(args: Array[String]) { | |
println(io.Source.stdin.getLines().take(2).map(_.toInt).sum) | |
} | |
} |
OlderNewer