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
; https://github.com/borkdude/draggable-button-in-reagent/blob/master/src-cljs/drag/main.cljs | |
(def columns | |
[{:key :one :display "One"} | |
{:key :two :display "Two"} | |
{:key :three :display "Three"} | |
{:key :four :display "Four"} | |
{:key :five :display "Five"}]) | |
(def cell-renderers |
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 beard-oil.lib.blueprint.core | |
(:require ["@blueprintjs/core" :as bpc] | |
[camel-snake-kebab.core :refer [->kebab-case-keyword]] | |
[camel-snake-kebab.extras :refer [transform-keys]])) | |
(def ^:private constant | |
(comp | |
(partial transform-keys ->kebab-case-keyword) | |
js->clj)) |
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
// ==UserScript== | |
// @name Telegram dark theme / night mode | |
// @namespace https://github.com/digitalheir/ | |
// @version 1.0 | |
// @description Dark theme / night mode for Telegram Web | |
// @author Maarten Trompper <maartentrompper@freedom.nl> | |
// @match https://web.telegram.org/* | |
// ==/UserScript== | |
// Since GM removed it (https://wiki.greasespot.net/GM_addStyle) |
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 random | |
NOUNS = [ | |
'Tomb', 'Castle', 'Dungeon', 'Catacombs', 'Sewers', 'Mansion', 'Cave', 'Mines', | |
'Laboratory', 'Hobble', 'Prison', 'Asylum', 'Stockade', 'Vault', 'Reformatory', | |
'Oubliette', 'Sepulcher', 'Mausoleum', 'Pit', 'Crypt', 'Necropolis', 'Culverts', | |
'Grotto', | |
] | |
ADJECTIVES = [ |
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 svg.core | |
(:require [reagent.core :refer [render-component]] | |
[svg.lib.core :as s])) | |
(def sand-color "#efc58d") | |
(defn cool-image | |
[] | |
(-> (s/svg {:view-box "0 0 100 100" | |
:stroke "none" |
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
#pragma once | |
#define sli60 |
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 handler = { | |
get: (obj, prop) => { | |
// Call should be run when calling invoke(). | |
if (prop === 'invoke') { | |
return body => console.log(`Would call ${obj.route} with body: ${JSON.stringify(body)}`) | |
} | |
// First access sets the request method. | |
if (obj.route === null) { | |
return (new Proxy({ route: '', method: prop }, handler)) |
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 makeCourse = (code, name) => ({ code, name }) | |
const makeHonors = (course, section, semester) => ({ course, section, semester }) | |
const courses = [ | |
makeCourse(220, 'D Two Two Zero'), | |
makeCourse(110, 'A One One Zero'), | |
makeCourse(130, 'C One Three Zero'), | |
makeCourse(120, 'B One Two Zero') | |
] |
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 Html exposing (Html, Attribute, text, program, section, div, button, input, label) | |
import Html.Events exposing (onClick) | |
import Html.Attributes exposing (class, type_, placeholder) | |
type alias Todo = | |
{ id : Int | |
, description : String | |
, done : Bool | |
} | |
type alias Model = { todos : List Todo } |
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 | |
# Get root if needed | |
if [ "$EUID" -ne 0 ] | |
echo This script must be run as root. Enter root password to continue. | |
sudo su | |
fi | |
# Install most things | |
dnf install vim git nginx mariadb-server mariadb php php-cli php-curl php-mcrypt php-apcu php-fpm |