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
#!/bin/bash | |
remove() { | |
local item=$1 | |
echo adb shell pm uninstall -k --user 0 $item | |
read | |
/Users/danieltemme/Library/Android/sdk/platform-tools/adb shell pm uninstall -k --user 0 $item | |
} | |
remove com.baidu.input_huawei |
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
describe("ToolTip async", function () { | |
beforeEach(function () { | |
setFixtures("<form action='#'><input name='foo' type='text' /></form>"); | |
// putting the implementation here for brevity | |
$(':input').on("focus", function () { | |
setTimeout(function () { | |
$("<div class='tooltip'>Some Tooltip</div>").prependTo('form'); | |
}, 200); | |
}); | |
}); |
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
(def testsToConst { | |
(fn list?) :list, | |
(fn vector?) :vector | |
;; etc... | |
}) | |
;; filter keys in the map by evaluating them for a given col argument, | |
;; take the first result, use that to get the entry from the map. | |
(get testsToConst (first (filter (fn [fun] fun col) (keys testsToConst)))) | |
;; this doesn't work reliably as vectors would be a special case and | |
;; I don't yet know how to escape that when applying. Whatever. |
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
(defmulti col-type class) | |
(defmethod col-type clojure.lang.PersistentList [_] :list) | |
(defmethod col-type clojure.lang.PersistentArrayMap [_] :map) | |
(defmethod col-type clojure.lang.PersistentVector [_] :vector) | |
(defmethod col-type clojure.lang.PersistentHashSet [_] :set) | |
(defmethod col-type :default [col] (if (seq? col) :seq :oops)) | |
(col-type []) | |
-> :vector | |
(col-type {}) |
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
(defn collection-type [col] | |
(cond (set? col) :set | |
(map? col) :map | |
(list? col) :list | |
(vector? col) :vector | |
(seq? col) :seq)) | |
(deftest collection-type-returns-correct-name | |
(is (= :list (collection-type '()))) | |
(is (= :map (collection-type {}))) |
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
<profile> | |
<id>jasmine</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>searls</groupId> | |
<artifactId>jasmine-maven-plugin</artifactId> | |
<version>1.0.1-TC-SNAPSHOT</version> | |
<!-- The following includes com.jquery:jquery in the generated | |
runner html page. This does require deploying jquery yourself, though --> |