๐คก
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 System; | |
| using System.Collections; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| using Humanizer; | |
| namespace System.Xml | |
| { |
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 System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace Nancy | |
| { |
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
| @echo off | |
| @rem \"%stPath%\" : Path to Sublime Text installation dir. | |
| @rem %UserEntry%: Key name for the registry entry. | |
| @rem %UserMenuText% : Context menu text. Set your preferred menu text (e.g.: translate to your language). | |
| @rem %AdminEntry%: Key name for the registry entry. | |
| @rem %AdminMenuText% : Context menu text. Set your preferred menu text for administrator privilege (e.g.: translate to your language). | |
| SET stPath=%~dp0atom.exe | |
| SET UserEntry=Atom | |
| SET AdminEntry=Atom As Admin |
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
| //http://upshots.org/javascript/javascript-regexp-to-remove-comments#comment-2851 | |
| function stripComments(stringIN) { | |
| var SLASH = '/'; | |
| var BACK_SLASH = '\\'; | |
| var STAR = '*'; | |
| var DOUBLE_QUOTE = '"'; | |
| var SINGLE_QUOTE = "'"; | |
| var NEW_LINE = '\n'; | |
| var CARRIAGE_RETURN = '\r'; | |
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
| <?php | |
| $sql = new SQLer('localhost', 'user', 'pass'. 'my_db'); | |
| // query_fetch example | |
| $name = ''; | |
| $fetch = $sql->query_fetch('SELECT name, content FROM my_table LIMIT 10 WHERE name LIKE CONCAT('%', ?, '%')', $name); | |
| // do something | |
| ?><dl><?php | |
| $fetch->exec(function($name, $content) { | |
| ?> | |
| <dt><?=$name?></dt> |
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
| CREATE OR REPLACE FUNCTION FN_LENGTHK(PS_STR IN VARCHAR2) RETURN NUMBER IS | |
| V_STR_LEN NUMBER; | |
| V_STR_CHR VARCHAR2(3); | |
| V_RES_LEN NUMBER; | |
| /****************************************************************************** | |
| NAME: FN_LENGTHK | |
| PURPOSE: LENGTHB์ ๋์ผํ๋ ์ ๋์ฝ๋ ํน์ฑ์ ํ๊ธ 3๋ฐ์ดํธ๋ก ๊ณ์ฐํ๊ธฐ ๋๋ฌธ | |
| ์ 2๋ฐ์ดํธ๋ก ์ฒ๋ฆฌํ์ฌ ์ถ๋ ฅํ๊ธฐ ์ํ ๊ณตํต ํจ์ | |
| ์ ๋์ฝ๋ ๋ง์ธ! |
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
| CREATE OR REPLACE TYPE TO_STUDENT IS OBJECT ( | |
| NAME VARCHAR2(20) | |
| ,AGE NUMBER(3) | |
| ,GENDER VARCHAR2(1) | |
| ,SCORE NUMBER(1,2) | |
| ,GRADE VARCHAR2(1) | |
| ); | |
| CREATE OR REPLACE TYPE TA_STUDENTS IS TABLE OF TO_STUDENT; |
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
| @REM How to use before run this batch: You need Bitvise SSH Client and NSSM. if you haven't, google it and download and install. | |
| @REM 1. open bitvise SSG Client | |
| @REM 2. click "New Profile" to save profile. | |
| @REM 3. configure SSH infomation, tunnels, etc. | |
| @REM 4. click "Save Profile" to save profile. | |
| @REM 5. on "sensitive" dialog popup, check "any account on this computer" or below to service account can connect it. | |
| @REM 6. click "Login" to connect and test SSH Connection. | |
| @REM 7. click "Accept & Save" if you see host key dialog popup. | |
| @REM 8. Click "host key manager" | |
| @REM 9. select your SSH host and click "Export". then click "Bitvise format" and save host key file. |
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
| %WINDIR%\System32\cmd.exe /c "taskkill /F /IM chrome.exe & taskkill /F /IM chromedriver.exe" |
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
| Option Explicit | |
| Function DblQuote(Str) | |
| DblQuote = Chr(34) & Str & Chr(34) | |
| End Function | |
| Dim objShell, scriptdir, rv | |
| '์ด ์๋ํ ํ๋ก๊ทธ๋จ์ ์นด์นด์คํก ๊ฒฝ๋ก ๋ด์์ ์คํํ๋ ๊ฒ ๊ธฐ๋ณธ๊ฐ์ด๋ฏ๋ก, ์นดํก ํด๋๋ก ์ด๋. | |
| scriptdir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | |
| Set objShell = CreateObject("WScript.Shell") | |
| rv = objShell.Run(DblQuote(scriptdir & "\KakaoTalk.exe"),1,False) | |
| Set objShell = Nothing |