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
[UIView transitionWithView:view duration:0.3 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{ | |
view.image = nil; | |
} completion:nil]; |
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
CGRect frm_up = imageView.frame; | |
frm_up.origin.y -= 10; | |
[UIView animateWithDuration:0.5 | |
delay:0.0 | |
options:UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeats | |
animations:^{ | |
imageView.frame = frm_up; | |
} | |
completion:NULL |
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
import javax.servlet.http.*; | |
import javax.servlet.*; | |
public class HelloServlet extends HttpServlet { | |
public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { | |
res.setStatus(200); | |
res.setContentType("text/plain"); | |
PrintWriter out = res.getWriter(); | |
out.println("Hello world"); | |
out.close(); |
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
user> (defn fib[n] (if (< n 2) n (+ (fib (- n 1)) (fib (- n 2))))) | |
#'user/fib | |
user> (use 'clojure.tools.trace) | |
nil | |
user> (trace-vars fib) | |
#'user/fib | |
user> (fib 3) | |
TRACE t3166: (user/fib 3) | |
TRACE t3167: | (user/fib 2) | |
TRACE t3168: | | (user/fib 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
new Dictionary<string, int> | |
{ | |
{"a", 23}, {"b", 45}, {"c", 67}, {"d", 89} | |
}; | |
new string[] { "Wriju", "Writam", "Deb", "Sumitra" }; |
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
cell.backgroundView.backgroundColor = [UIColor clearColor]; | |
cell.contentView.backgroundColor = [UIColor clearColor]; | |
cell.selectedBackgroundView = cell.backgroundView; |
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
# 16jul11abu | |
# (c) Software Lab. Alexander Burger | |
# *Board a1 .. h8 | |
# *White 白方棋子 | |
# *Black | |
# *WKPos 白方King位置 | |
# *BKPos *Pinned | |
# *Depth *Moved *Undo *Redo *Me *You |
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
(de f (X) | |
(g)) | |
(de g () | |
X) | |
(f 1) | |
-> 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
service http | |
{ | |
disable = no | |
socket_type = stream | |
user = root | |
wait = no | |
redirect = 127.0.0.1 3000 | |
log_type = FILE /tmp/somefile.log | |
} |
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
openssl sha1 ${FILE_PATH} | sed 's/SHA1(.*)= //' |