`
eve
  • 浏览: 13659 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表

random color

    博客分类:
  • html
Math.floor(Math.random()*16777215).toString(16)    
Baptist explanation: There must be sin in your life. Everyone else opened it fine. Presbyterian explanation: It's not God's will for you to open this link. Word of Faith explanation: You lack the faith to open this link. Your negative words have prevented you from realizing this link's fulfill ...

Extension methods

    博客分类:
  • c#
public static T As<T>(this object obj) where T : class { return obj as T; } public static bool Contains(this string source, string toCheck, StringComparison comp) { return source.IndexOf(toCheck, comp) >= 0; } public static bool Contains(this IEnumerable<string> contain ...
(function(){ if (!window.confirm("S.831?")){ alert("seriously?"); arguments.callee(); } })();  
http://css-tricks.com/snippets/css/browser-specific-hacks/
http://pnp.azurewebsites.net/en-us/
Lorem ipsum dolor sit amet consectetur adipiscing elit. Man suscipit risus id dolor sin accumsan pharetra. Proin asrisus non purus adipiscing cursus ut neque. Nullam tampus tempus lacus, amet aliquam dolor blanit. Lorem ipsum dolor amet consectetur adipiscing elit. Suscipit risus dolor accumsan pha ...
background: R 204, G 232, B 207 font: DejaVu Sans Mono size 12
WebElement element = driver.findElements(By.id("block-id")); assertNull(element);     this code snippet will get a NoSuchEleementException, use the following 2 implementations instead   1. make the test expect the very exception   @Test(expected = org.openqa.selenium.NoSuchEleme ...
/** * A-Z 1-26 * AA-AZ 27-52 * @param column * @return */ public static int getColumn(String column) { char[] columnArray = column.toUpperCase().toCharArray(); final int grade = 26; final char base = 'A' - 1; int result = 0; final int maxIndex = columnArray.length - 1; for (int i = max ...
Recent depressing driving-learning experience made me realize that my manipulative ability is worse than bad, and I begin to get the point why I cannot play pc games as good as my fellas, maybe I just did not try hard enough, but it is crystal evident I am not gifted for these stuffs. I deeply hope t ...
a.   public static int test() { try { int number = 1/0; return 1; } catch (Exception e) { return 2; } finally { return 3; } }   \(^o^)/~    3   b.   public static int test() { int number; try { number = 1; return number; } catch (Exception e) { } finally { number = 3; } numb ...
1. Store some constant nonzero value, say 17, in an int variable called result. 2. For each significant field f in your object (each field taken into account by the equals method, that is), do the following: a. Compute an int hash code c for the field: i. If the field is a boolean, compute (f ? 0 ...
1, WS (web service) 2, SOAP (simple object access protocol) 3, XSD (xml schema description) 4, UDDI (universal description,discovery and integration) 5, JMS (java message service) 6, MFL (message format language) 7, WSDL (web service description language) 8, XSLT (xml stylesheet language transformati ...
Global site tag (gtag.js) - Google Analytics