CLICK ME
yes, even hidden code blocks!
print("hello world!")
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix | |
;; and optionally can refer functions to the current ns. | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; | |
;; * :refer-clojure affects availability of built-in (clojure.core) | |
;; functions. |
Copyright (c) 2015 Matthias Esterl | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
module Expression | |
def ops | |
{ :+ => :add, | |
:- => :sub, | |
:* => :mult, | |
:/ => :div, | |
:** => :exp } | |
end | |
module_function :ops |
package main | |
import ( | |
"flag" | |
"golang.org/x/net/websocket" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"os" |
#usage "en: <b>Calculate the price of a dual-layer PCB if you order them at OSH Park.</b>" | |
"<p>Usage: run oshprice</p>" | |
"<p>Author: <author>Arno Moonen <[email protected]></author><br />" | |
"Version: <em>201405042026</em></p>" | |
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED | |
void main() { | |
if(!board) { | |
// No board |
javascript: "i.reddit.com"===document.location.hostname||"old.reddit.com"===document.location.hostname||"amp.reddit.com"===document.location.hostname||"reddit.com"===document.location.hostname||"www.reddit.com"===document.location.hostname?document.location="https://teddit.net"+document.location.pathname:alert("Invalid domain! This bookmarklet only works with Reddit.com"); |
const maxCount = 500; | |
const counterSelector = '.rtExYb'; | |
const checkboxSelector = '.ckGgle[aria-checked=false]'; | |
const photoDivSelector = ".yDSiEe.uGCjIb.zcLWac.eejsDc.TWmIyd"; | |
const deleteButtonSelector = 'button[aria-label="Delete"]'; | |
const confirmationButtonSelector = '#yDmH0d > div.VfPpkd-Sx9Kwc.cC1eCc.UDxLd.PzCPDd.V639qd.bvQPzd.oEOLpc.A9Uzve.VfPpkd-Sx9Kwc-OWXEXe-FNFY6c > div.VfPpkd-wzTsW.O4g5Md.iWO5td > div > div.VfPpkd-cnG4Wd.m5OsGf > div > div.VfPpkd-T0kwCb.IdSMxc > button.VfPpkd-LgbsSe.VfPpkd-LgbsSe-OWXEXe-k8QpJ.nCP5yc.AjY5Oe.LQeN7.kDryjd'; | |
async function deleteGooglePhotos() { | |
// Retrieves the current count of selected photos | |
const getCount = () => { |