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
<!-- | |
``...-----------..`` | |
`.--::::::::::::::::::::--.` | |
.--::::::::::::::::::::::::::::-.` | |
`.-::::::::::::::::::::::::::::::::::-` | |
`-:::::::::::::::::::::::::::::::::::::::-` | |
.-:::::::::::::::::::::::::::::::::::::::::-. | |
`-:::::::::::::::::::::::::::::::::::::::::::::-` | |
.-:::::::::::::::::::::::::::::::::::::::::::::::-` |
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 lang="ko"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>delay</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap-theme.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"> | |
<style> | |
#box {width: 100px; height: 100px; background-color: #000;} |
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
#!/bin/bash | |
#Basic | |
for i in {1..5} | |
do | |
echo "$i" | |
done | |
#Basic and leading zero |
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($no = $__query__.Rows - (($__query__.Page - 1) * $__query__.PageSize + ($foreach.count - 1))) |
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
CREATE OR REPLACE FUNCTION calc_distance( | |
pLat1 NUMBER, | |
pLon1 NUMBER, | |
pLat2 NUMBER, | |
pLon2 NUMBER) | |
RETURN NUMBER | |
IS | |
-- r is the spherical radius of earth in Kilometers | |
cSpherRad CONSTANT NUMBER := 6367; |
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
CREATE OR REPLACE FUNCTION get_keywords(p_powerlink in TOUR_POWER_LINK_KEYS.TPLK_POWER_LINK%TYPE) | |
RETURN VARCHAR2 | |
IS | |
l_text VARCHAR2(32767) := NULL; | |
BEGIN | |
FOR cur_rec IN (SELECT TPLK_KEYWORD FROM TOUR_POWER_LINK_KEYS WHERE TPLK_POWER_LINK = p_powerlink order by tplk_seq asc) LOOP | |
l_text := l_text || ',' || cur_rec.TPLK_KEYWORD; | |
END LOOP; | |
RETURN LTRIM(l_text, ','); | |
END; |
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
<?php | |
/*** | |
* filepath: application/core/MY_Controller.php | |
*/ | |
//setup your base controller | |
class DB_Controller extends CI_Controller { | |
//declare them globally in your controller | |
protected $billing_db; |
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 pde(e) { //Function to prevent Default Events | |
if(e.preventDefault) | |
e.preventDefault(); | |
else | |
e.returnValue = false; | |
} |
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 groovy.io.* | |
def listfiles(dir) { | |
dlist = [] | |
flist = [] | |
new File(dir).eachDir {dlist << it.name } | |
dlist.sort() | |
new File(dir).eachFile(FileType.FILES, {flist << it.name }) | |
flist.sort() | |
return (dlist << flist).flatten() |