This file contains hidden or 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
/** | |
* Checks if the given value is null or undefined. | |
* | |
* @param {any} value - The value to check. | |
* @returns {boolean} - Returns true if the value is null or undefined, false otherwise. | |
*/ | |
const isNullOrUndefined = (value: any): boolean => value === null || value === undefined; | |
/** | |
* Checks if the given value is an array. |
This file contains hidden or 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
### | |
# https://gcits.com/knowledge-base/check-it-glue-passwords-against-have-i-been-pwned-breaches/ | |
### | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$key = "ENTERAPIKEYHERE" | |
$ITGbaseURI = "https://api.itglue.com" | |
$headers = @{ |
This file contains hidden or 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
### | |
# SOURCE: https://gcits.com/knowledge-base/export-customers-microsoft-secure-scores-to-csv-and-html-reports/ | |
### | |
# This script needs to be run by an admin account in your Office 365 tenant | |
# This script will create an Azure AD app in your organisation with permission | |
# to access resources in yours and your customers' tenants. | |
$externalCSS = "<link rel=`"stylesheet`" href=`"https://dl.dropbox.com/s/vpx9ysgr11cah4u/reports.css?dl=0`">" | |
$yourLogo = "https://gcits.com.au/wp-content/uploads/GCITSlogowordpress.png" |
This file contains hidden or 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
;; Basic Specs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(spec/def ::fn fn?) | |
(spec/def ::any any?) | |
(spec/def ::map map?) | |
(spec/def ::nil nil?) | |
(spec/def ::set set?) |
This file contains hidden or 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
(page "index.html" | |
(:require [hoplon.bidi] | |
[app.views :as view] | |
[app.routing :as routing]) | |
(:require-macros [hoplon.bidi :refer [route-tpl]])) | |
(html | |
(head | |
(html-meta :http-equiv "content-type" :content "text/html; charset=utf-8") | |
(html-meta :name "viewport" :content "width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0") |
This file contains hidden or 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 app.client | |
(:require [cljsjs.socket-io] | |
[goog.object :as obj] | |
[feathers.client :as feathers] | |
[feathers.client.services :as svc])) | |
;; Feathers Client ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(def app (feathers/feathers)) |
This file contains hidden or 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 app.server | |
(:require [feathers.app :as feathers] | |
[app.services :as services])) | |
(enable-console-print!) | |
(def app (feathers/feathers)) | |
(def public (str js/__dirname "/../../")) |
This file contains hidden or 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 | |
'[adzerk.bootlaces :refer :all] | |
'[adzerk.boot-cljs :refer :all] | |
'[degree9.boot-semver :refer :all] | |
'[degree9.boot-nodejs :refer :all] | |
'[feathers.boot-feathers :refer :all] | |
'[hoplon.boot-hoplon :refer :all]) | |
(task-options! | |
cljs {:source-map true |
This file contains hidden or 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
(deftask develop | |
"Build Hoplon/Feathers.js for local development." | |
[] | |
(comp | |
(feathers) | |
(watch) | |
(hoplon) | |
(nodejs :init-fn 'app.server/init) | |
(cljs) | |
(target) |
This file contains hidden or 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-env! | |
:dependencies '[[org.clojure/clojure "1.8.0" :scope "provided"] | |
[org.clojure/clojurescript "1.9.293" :scope "provided"] | |
[adzerk/boot-cljs "1.7.228-2" :scope "test" ] | |
[adzerk/bootlaces "0.1.13" :scope "test" ] | |
[degree9/boot-semver "1.3.6" :scope "test" ]] | |
:source-paths #{"src"} | |
:resource-paths #{"resources"} | |
:asset-paths #{"assets"}) |
NewerOlder