Skip to content

Instantly share code, notes, and snippets.

View jiyeonseo's full-sized avatar
🧀
Say cheese 🧀

Cheese jiyeonseo

🧀
Say cheese 🧀
View GitHub Profile
@jiyeonseo
jiyeonseo / test1.m
Created August 30, 2012 06:40
testtest
#import "test.h"
@implementation
-(id) viewDidLoad{
NSString *str = @"test for using highlighting syntax";
NSLog(@"%@", str);
}
package springbook.user.domain;
public class User {
String id;
String name;
String password;
public String getId() {
return id;
}
<!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>
@jiyeonseo
jiyeonseo / helloworld.py
Created February 2, 2015 15:08
Programming for Everybody - wk1
print "hello world"
@jiyeonseo
jiyeonseo / index.html
Created February 7, 2015 14:43
easteregg-overscroll
<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>
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
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 :
@jiyeonseo
jiyeonseo / gist:a0d3582b1176cede4b15
Created February 22, 2015 14:04
Assignment 4.6
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))
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
@jiyeonseo
jiyeonseo / fp-solve-me-first.scala
Created September 4, 2016 14:07
Solve Me First FP
// 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)
}
}