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
| [ | |
| // ctrl+d 로 줄삭제 | |
| { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
| // 기존 ctrl+d의 기능을 옮김 | |
| { "keys": ["ctrl+shift+k"], "command": "find_under_expand" }, | |
| { "keys": ["ctrl+k", "ctrl+shift+k"], "command": "find_under_expand_skip" }, | |
| // 들여쓰기 활성화 | |
| { "keys": ["f12"], "command": "reindent" , "args": { "single_line": false } }, | |
| // 파일 새로고침 | |
| { "keys": ["f5"], "command": "revert" }, |
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
| <script> | |
| var request = JSON.parse('<?=addcslashes(json_encode($_REQUEST), '"\\')?>'); | |
| var session = JSON.parse('<?=json_encode($_SESSION)?>'); | |
| Object.freeze(request); | |
| Object.freeze(session); | |
| </script> |
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
| <? | |
| /** | |
| * @author http://php.net/manual/en/function.imagettftext.php#57416 | |
| */ | |
| function foxy_utf8_to_nce($utf = '') { | |
| if(empty($utf)) { | |
| return($utf); | |
| } | |
| $max_count = 5; // flag-bits in $max_mark ( 1111 1000 == 5 times 1) |
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
| private void setTrustAllCerts() throws Exception{ | |
| TrustManager[] trustAllCerts = new TrustManager[]{ | |
| new X509TrustManager() { | |
| public java.security.cert.X509Certificate[] getAcceptedIssuers() { | |
| return null; | |
| } | |
| public void checkClientTrusted( java.security.cert.X509Certificate[] certs, String authType ) { } | |
| public void checkServerTrusted( java.security.cert.X509Certificate[] certs, String authType ) { } | |
| } | |
| }; |
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
| using MySql.Data.MySqlClient; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading; | |
| using System.Web; | |
| namespace WebApplication.ClassFolder{ | |
| public class DBConfig{ |
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
| <script src="/bower_components/d3/d3.min.js"></script> | |
| <script src="/bower_components/d3-cloud/build/d3.layout.cloud.js"></script> | |
| <script> | |
| var fill = function(i){ return d3.schemeCategory20b[i];}; | |
| var layout = d3.layout.cloud() | |
| .size([500, 500]) | |
| .words([ | |
| "텍스트", "마이닝", "샘플", "좋아요", "R", "Word", "Cloud", | |
| "text", "mining"].map(function(d) { |
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
| FB.login(function(login_result){ | |
| if (login_result.status === 'connected') { | |
| getFbAccessToken(); | |
| } else if (login_result.status === 'not_authorized') { | |
| alert('페이스북 인증에 실패했습니다'); | |
| } else { | |
| alert('페이스북 API 호출에 실패했습니다'); | |
| } | |
| }, {scope: 'publish_pages,manage_pages'}); |
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
| <!--#include virtual = "/JSON_2.0.4.asp"--> | |
| <% | |
| 'request TO JSON | |
| Dim req:Set req = jsObject() | |
| FOR EACH i IN Request.QueryString | |
| IF Request.QueryString(i).count > 1 THEN | |
| i = Replace(i,"&", "") | |
| Set req(i) = jsArray() | |
| FOR EACH j IN Request.QueryString(i) |
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
| { | |
| "esnext": true, | |
| "asi": false, | |
| "boss": false, | |
| "curly": true, | |
| "eqeqeq": true, | |
| "eqnull": false, | |
| "evil": false, | |
| "expr": true, | |
| "forin": true, |
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
| /** | |
| @author https://www.christianheilmann.com/2015/12/25/detecting-adblock-without-an-extra-http-overhead/ | |
| */ | |
| ;(function(adBlockEnabled) { | |
| 'use strict'; | |
| var testAd = document.createElement('div'); | |
| testAd.innerHTML = ' '; | |
| testAd.className = 'adsbox'; | |
| document.body.appendChild(testAd); |