To get started, it's highly recommended to use lein
for automating things like running the project, fetch dependencies, run project tasks, set clojure versions, etc.
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
user.id | user.firstName | user.lastName | user.email | user.status | |
---|---|---|---|---|---|
00u5vogndju36975tn | First | Last | email@example.com | ACTIVE |
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
set lc_time to 'pt_BR.utf8'; | |
select TO_CHAR(DATE(NOW()), 'TMDay'); | |
-- Quarta | |
CREATE TABLE dim_date | |
( | |
date_dim_id INT NOT NULL, | |
date_actual DATE NOT NULL, | |
epoch BIGINT NOT NULL, |
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 data | |
(:require [datomic.client.api :as datomic])) | |
(def client | |
(datomic/client {:db-name "" | |
:system "" | |
:server-type :cloud | |
:region "" | |
:endpoint ""})) |
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
{:deps {com.wsscode/pathom3 {:mvn/version "2022.07.08-alpha"}}} |
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 crux-zoned-date-time | |
(:require [crux.api :as crux] | |
[clojure.pprint :refer [pprint]]) | |
(:import [java.util UUID Date] | |
[java.time LocalDateTime ZonedDateTime LocalDate Instant])) | |
(def sample-n 10) | |
(defonce node | |
(crux/start-node {})) |
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
const items = [{ | |
"Username": "First", | |
"Timestamp": "2017-08-07T19:51:00.794Z", | |
"Message": "first item in batch" | |
}, | |
{ | |
"Username": "Second", | |
"Timestamp": "2017-08-07T19:51:00.794Z", | |
"Message": "second item in batch" | |
}, |
For when you have incomplete JSON strings like:
{"Fault":
{"faultcode": "StartTransmissionFail",
"faultstring": {"content": "Internal Error"
Given an incomplete JSON-encoded string, attempts to complete it with the missing "
, }
and ]
characters necessary for it to be valid.
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 | |
### BEGIN INIT INFO | |
# Provides: tomcat | |
# Defalt-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Apache Tomcat 7 | |
### END INIT INFO | |
# base dir of tomcat installation # | |
CATALINA_HOME=/opt/tomcat/ |
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
function appendRow(el, test, status, link) { | |
var testName = document.createElement("div"); | |
var statusCell = document.createElement("div"); | |
statusCell.innerText = status; | |
var order = (status == "Succeeded" ? 10 : 5); | |
testName.style = "flex-basis: 50%; flex-grow: 2; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px dashed #666; order: " + order + ";"; | |
statusCell.style = "flex-grow: 1; text-align: right; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px dashed #666; order: " + order + ";"; | |
if (link) { | |
var a = document.createElement("a"); | |
a.innerText = test; |
NewerOlder