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
<div> | |
yeeee I'm rendered | |
<p> | |
<%= yield :paragraph %> | |
</p> | |
<strong> | |
<%= yield :bold_text %> | |
</strong> |
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
<style type="text/css"> | |
/* Star hover using lang hack in its own style wrapper, otherwise Gmail will strip it out */ | |
* [lang~="star-wrapper"]:hover *[lang~="star-number"]{ | |
color: #119da2 !important; | |
border-color: #119da2 !important; | |
} | |
* [lang~="star-wrapper"]:hover *[lang~="full-star"], | |
* [lang~="star-wrapper"]:hover ~ *[lang~="star-wrapper"] *[lang~="full-star"] { |
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
Users.login(username, password) | |
.then(function () { | |
return usersModel.load(); | |
}) | |
.then(function () { | |
mobileApp.navigate('views/notesView.html'); | |
}) | |
.then(function() { | |
alert("You've logged in!"); | |
}) |
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
Users.login( | |
username, | |
password, | |
function () { | |
usersModel.load( | |
function () { | |
App.navigate('profile.html', | |
function () { | |
alert("You've logged in!"); | |
}, |
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 histogram.core | |
(:gen-class) | |
(require [clojure.java.io :refer [file output-stream input-stream]] | |
[clojure.pprint :as pprint] | |
[clojure.data.priority-map :as pm]) | |
(:import (java.util.concurrent Executors) | |
(java.util.BitSet))) | |
(defprotocol HuffmanTree | |
(leaf? [tree]) |
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 histogram.core | |
(:gen-class) | |
(require [criterium.core :as criterium] | |
[clojure.pprint :as pprint])) | |
(defn do-sort-map [x] | |
(into | |
(sorted-map-by | |
(fn [key1 key2] | |
(compare [(get x key2) key2] |