This file contains 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 java.util.Calendar; | |
import java.util.Date; | |
public class TimeAgo { | |
public static String timeAgoString(Date date) { | |
Calendar now = Calendar.getInstance(); | |
Calendar c = Calendar.getInstance(); | |
if(date != null){ |
This file contains 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
(ns oneroom.image | |
(:import javax.imageio.ImageIO | |
java.awt.image.BufferedImageOp | |
java.awt.geom.AffineTransform | |
java.awt.Image | |
java.io.File | |
org.imgscalr.Scalr) | |
(:refer-clojure :exclude [load])) | |
(defn load [f] |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<RelativeLayout android:id="@+id/map_container" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> |
This file contains 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
(defun customize-clojure-mode () | |
(paredit-mode 1) | |
(local-set-key (kbd "M-{") 'paredit-wrap-curly) | |
(local-set-key (kbd "M-}") 'paredit-close-curly-and-newline) | |
(local-set-key (kbd "M-[") 'paredit-wrap-square) | |
(local-set-key (kbd "M-]") 'paredit-close-square-and-newline)) | |
(add-hook 'clojure-mode-hook 'customize-clojure-mode) |
NewerOlder