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 '[babashka.curl :as curl]) | |
(require '[cheshire.core :as json]) | |
(require '[clojure.java.io :as io]) | |
(require '[clojure.string :as str]) | |
(import 'java.time.YearMonth) | |
(def bearer-token | |
"eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyMjhUUUQiLCJzdWIiOiI0VkNOVjYiLCJ4YWkiOiI1NTExNTU4OTU5MzIiLCJ4dmVyIjoiMCIsImlzcyI6IkZpdGJpdCIsInR5cCI6ImFjY2Vzc190b2tlbiIsInNjb3BlcyI6IndociB3bnV0IHdwcm8gd3NsZSB3d2VpIHdtZmEgd3NvYyB3YWN0IHdzZXQgd2xvYyIsImV4cCI6MTYxNTAwNjg3NCwiaWF0IjoxNjE0ODM0MDc0fQ.FdaLszvp6vS4K5kUQ06ylOF_25y_rE0AbsFuMIke4tc") |
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 bb | |
(ns app.yeelight | |
(:import [java.net DatagramPacket DatagramSocket | |
InetAddress URI Socket]) | |
(:require [clojure.string :as str] | |
[clojure.walk :as walk] | |
[clojure.java.io :as io] | |
[cheshire.core :as json] | |
[clojure.tools.cli :as cli])) |
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
<?php | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\AST\Node; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\Parser; | |
use Doctrine\ORM\Query\SqlWalker; | |
class Greatest extends FunctionNode | |
{ |