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
angular.module("ui.bootstrap", ["ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.carousel","ui.bootstrap.collapse","ui.bootstrap.dialog","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tabs","ui.bootstrap.tooltip","ui.bootstrap.transition","ui.bootstrap.config"]); | |
angular.module("ui.bootstrap.config", []).value("ui.bootstrap.config", {templatePrefix: "template"}); | |
... | |
angular.module('ui.bootstrap.pagination', ["ui.bootstrap.config"]) | |
.directive('pagination', ["ui.bootstrap.config", function(uiBootstrapConfig) { | |
return { |
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
(0 until 12).drop(4).filter(_ % 2 == 0) | |
(->> (range 12) (drop 4) (filter #(= (mod % 2) 0))) | |
LongStream.range(0, 12).skip(4).filter((n) -> (n % 2) == 0) | |
// of course for the Java the whole story is: | |
import java.util.Arrays; | |
import java.util.stream.LongStream; |
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
(require '[clojure.test :refer [is]]) | |
(defn rolls [pins] | |
(loop [p pins score 0] | |
(if (seq p) | |
(let [current-pins (first p) | |
next-pins (fnext p) | |
nnext-pins (fnext (next p))] | |
(cond | |
; strike |
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"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- | |
Documented at | |
http://linux.die.net/man/5/fonts-conf | |
To check font mapping run the command at terminal | |
$ fc-match 'helvetica Neue' |
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
--- | |
- name: download deb packages from the web | |
get_url: url={{ item.url }} dest=/tmp/{{ item.name }} force=no | |
with_items: | |
- { url: "http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb", name: "viber.deb" } | |
- { url: "https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-1.2.6-amd64.deb", name: "slack.deb" } | |
- name: install downloaded deb packages | |
become: yes | |
apt: deb=/tmp/{{ item }}.deb state=present |
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
General: | |
http://www.joelonsoftware.com/articles/Unicode.html | |
Unicode: | |
http://www.unicode.org/standard/WhatIsUnicode.html | |
http://www.unicode.org/history/unicode88.pdf | |
http://unicode.org/charts/ | |
http://unicode.org/cldr/utility/character.jsp | |
https://en.wikipedia.org/wiki/List_of_Unicode_characters |
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
package experiments.ignite; | |
import java.util.Arrays; | |
import org.apache.ignite.Ignite; | |
import org.apache.ignite.IgniteLogger; | |
import org.apache.ignite.IgniteSet; | |
import org.apache.ignite.Ignition; | |
import org.apache.ignite.configuration.CollectionConfiguration; | |
import org.apache.ignite.lang.IgniteRunnable; |
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"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the Google coding conventions from Google Java Style | |
that can be found at https://google.github.io/styleguide/javaguide.html. | |
Checkstyle is very configurable. Be sure to read the documentation at |
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.io.IOException; | |
import java.util.concurrent.TimeoutException; | |
import io.nats.stan.Connection; | |
import io.nats.stan.ConnectionFactory; | |
class PubSub { | |
protected Connection createConnection(final String clientId) throws IOException, TimeoutException { | |
final io.nats.client.Connection natsConnection = new io.nats.client.ConnectionFactory("nats://127.0.0.1:4333") | |
.createConnection(); |
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 bash | |
. versions.sh | |
CONF_DIR=conf | |
TELEGRAF_CONF=${CONF_DIR}/telegraf.conf | |
INFLUXDB_CONF=${CONF_DIR}/influxdb.conf | |
CHRONOGRAF_CONF=${CONF_DIR}/chronograf.conf | |
KAPACITOR_CONF=${CONF_DIR}/kapacitor.conf |
OlderNewer