전체 글471 Toggle 1 to 0 and 9 to 1 using xor { static int x = 0; // Toggles 1 to 0 and 0 to 1 using xor x ^= 1; // Call the method that expects a 1 or 0 [methodCallHere toggle:x]; } 2014. 11. 28. [정규식] b tag to strong var input = String("값\n\n\n\n\n\n\n"); var reg = new RegExp( '"\']|"[^"]*"|\'[^\']*\')*)>',"gim"); // console.info(reg); if(reg.test(input)){ alert ( 'ok' ); } console.info(input.replace(reg,"")); 2014. 11. 23. 이문세 2014. 11. 21. highlightjs 문법강조 1. https://highlightjs.org/ 접속 ■ “Get version 8.4” 클릭 2. highlight js 링크 복사 ■ css변경( https://highlightjs.org/static/demo/ ) 3. 초기화 스크립트 복사 첫화면에서 Usage 클릭 à 사용방법 https://highlightjs.org/usage/ 4. 적용 package net.softm.test;import java.util.Random;public class RandomTest { public static void main(String[] args) throws Exception { exec(); } public static String exec() { String rtn = ""; Random rando.. 2014. 11. 21. android tutorial http://tutorialspoint.com 2014. 11. 21. 트리메뉴(tree menu) - json data 2014. 11. 16. 이전 1 ··· 69 70 71 72 73 74 75 ··· 79 다음