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
static void in_received_handler(DictionaryIterator *iter, void *context) { | |
APP_LOG(APP_LOG_LEVEL_DEBUG, "App Message Received"); | |
Tuple *word_tuple = dict_find(iter, QUOTE_KEY_INIT); | |
strncpy(word, word_tuple->value->cstring, 100); | |
text_layer_set_text(text_layer, word); | |
} |
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
stats = Sidekiq::Stats.new | |
stats.queues | |
stats.enqueued | |
stats.processed | |
stats.failed |
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
(defrecord Team [name]) | |
(defrecord Player [name team]) | |
(def player-1 (Player. 'Joe (Team. 'Arsenal))) | |
(print (:name player-1)) | |
(print (:name (:team player-1))) |
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 Random) | |
(def rnd (new Random)) | |
(. rnd nextInt) |
OlderNewer