๐ฏ
This file contains hidden or 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
| /* css */ | |
| /* Start Body */ | |
| body{ | |
| margin: auto; | |
| padding: 20px 50px; | |
| } | |
This file contains hidden or 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
| # Decorators | |
| def my_logger(orig_func): | |
| import logging | |
| logging.basicConfig(filename='{}.log'.format(orig_func.__name__),level=logging.INFO) | |
| def wrapper(*args,**kwargs): | |
| logging.info( | |
| 'Ran with args : {} , and kargs : {}'.format(args,kwargs) | |
| ) |
This file contains hidden or 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 _each(list, iter): | |
| for i in range(len(list)): | |
| iter(list[i], i) | |
| def _map(list, iter): | |
| new_list = [] | |
| _each(list, lambda v, i: new_list.append(iter(v))) | |
| return new_list |
This file contains hidden or 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
| var _ = {}; | |
| var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1; | |
| function getLength(array) { | |
| return array == null ? void 0 : array.length; | |
| } | |
| function isArrayLike(array) { | |
| var length = getLength(array); |
This file contains hidden or 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
| _.pipeline = function () { | |
| var funs = arguments; | |
| return function (seed) { | |
| return _.reduce(funs, function (l, r) { return r(l); } | |
| , seed); | |
| } | |
| }; |
This file contains hidden or 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
| var fs = require('fs'); | |
| var es = require('event-stream'); | |
| var url = './data/smartIndoorAPI/'; | |
| var REGEX = /branchEventList/g; | |
| fs.readdir(url, function (err, files) { | |
| if (err) throw err; | |
| files.forEach(function (file) { | |
| var cnt = 0; |
This file contains hidden or 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> | |
| <head> | |
| </head> | |
| <body> | |
| <div id="div1">div1</div> | |
| <div id="div2">div2</div> | |
| <div id="div3">div3</div> | |
| <div id="div4">div4</div> | |
| <div id="div5">div5</div> |
This file contains hidden or 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
| /* SECTIONS ============================================================================= */ | |
| .section { | |
| clear: both; | |
| padding: 0px; | |
| margin: 0px; | |
| } | |
| /* GROUPING ============================================================================= */ |
This file contains hidden or 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 convertStringToArrayBufferView(str){ | |
| var bytes = new Uint8Array(str.length); | |
| for(var iii = 0 ; iii<str.lenght;iii++){ | |
| bytes[iii] = str.charCodeAt(iii); | |
| } | |
This file contains hidden or 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
| <!-- tomcat context.xml ์์ค ์์ ํ ์ฌ์ฉํ์ธ์ --> | |
| <Resource auth="Container" | |
| description="Global Address Database" | |
| driverClassName="com.mysql.jdbc.Driver" | |
| maxActive="8" | |
| maxIdle="10" | |
| maxWait="10" | |
| name="jdbc/mysql" | |
| password="" | |
| type="javax.sql.DataSource" |