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
a = 10 ** 2 | |
a + 10 |
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
$ ruby sparql_client_example.rb | |
+--------------------------------------------------------------------+-------------------------------------------------+-------------------------------------+ | |
| s | p | o | | |
+--------------------------------------------------------------------+-------------------------------------------------+-------------------------------------+ | |
| http://dbpedia.org/resource/Elizabeth_Peabody__Teacher | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2002/07/owl#Thing | | |
| http://dbpedia.org/resource/Bonython_Hall | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2002/07/owl#Thing | | |
| http://dbpedia.org/resource/Zemfira | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2002/07/owl#Thing | | |
| http://dbpedia.org/resource/Myles_Ke |
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
# Add to ~/.riplrc | |
module Ripl::MultiLineHistory | |
attr_reader :last_buffer | |
# hacks multi-line's loop_once | |
def loop_once |
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
#!/usr/bin/env ruby | |
# == Description | |
# Prints out a tree of classes and their methods for a rails project. Can be run from the | |
# root directory of a rails project or with a specified rails directory. By default | |
# this script only looks in the models, controllers and helpers directories for ruby classes but that can be | |
# configured. | |
# | |
# This was useful back in the day when Rails projects were small and I wanted to a quick overview of | |
# the project. |
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
Searching over Artifact ID... | |
+----------------------+-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------+ | |
| artifact | group | version | desc | | |
+----------------------+-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------+ | |
| lein-create-template | lein-create-template | 0.1.1 | A Leiningen plugin for creating templates from existing skeleton projects | | |
| lein-template | misaki | 0.0.1-alpha | FIXME: write description |
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
(defroutes chapter-routes | |
;; Example story-slug: 42-my-first-story | |
;; Example chapter-slug: 99-introduction | |
;; (util/parse-uid "42-my-first-story") -> 42 | |
;; (util/parse-uid "99-introduction") -> 99 | |
(GET "/chapters/:chapter-slug" [story-slug chapter-slug] | |
(let [story (some-> story-slug util/parse-uid db/find-story-by-uid) | |
chapter (some-> chapter-slug util/parse-uid db/find-chapter-by-uid)] | |
(and story chapter | |
(zizkov.views/show-chapter layout story chapter))))) |
- Fast growing library and ecosystem
- Runs on multiple platforms - officially android and ios
- Being brought to the web by twitter - https://github.com/necolas/react-native-web
- Runs on appletv - https://github.com/douglowder/react-native-appletv
- Maybe more - options grows as the community continues to expand
- Rich set of base components
- First class approach to setting up platform-specific components -
react-native link
- Great 3rd party tools
I like to learn, index and retrieve information a lot. I know a lot of others do as well. We share data but I don't think we share our information and rarely our ontologies (a.k.a. our mental models). If we shared our ontologies, I think we could learn more from each other. With this hope in mind, I'm looking for a tool that provides these features:
- Shares my ontology publicly
- Shares my bookmarks publicly
- Provides easy entry, extension and querying of my ontology
- Provides easy entry and querying of my bookmarks
- Shares interesting snapshots of my bookmarks
- Encourages discovery of information that is new and interesting to others
Since I have not found such a tool, I have built a tool that:
- publishes my ontology using https://schema.org/ as a foundation.
I looked into the state of GraalVM and Clojure and wrote some small work-related scripts.
- Downloaded GraalVM and set $GRAALVM_HOME
- Found two main libraries for building GraalVM CLIs - https://github.com/luchiniatwork/cambada#packaging-as-a-native-image and https://github.com/taylorwood/clj.native-image (or https://github.com/taylorwood/lein-native-image for the lein equivalent). I chose clj.native-image as it seemed more focused on doing one thing well.
- First tried its template example which was easy to follow.
- Then added a graalvm build to one of our small cli tools
- Found it to be pretty straightforward except for a stdout flushing issue that was trivial to fix