Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| hs.hotkey.bind({}, "F15", function() | |
| local app = hs.application.get("kitty") | |
| if app then | |
| if not app:mainWindow() then | |
| app:selectMenuItem({"kitty", "New OS window"}) | |
| elseif app:isFrontmost() then | |
| app:hide() | |
| else | |
| app:activate() |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| self: prev: | |
| let | |
| neovim-unwrapped-master = | |
| (prev.neovim-unwrapped.override { | |
| lua = self.luajit; | |
| }).overrideAttrs(oldAttrs: { | |
| cmakeBuildType="debug"; | |
| cmakeFlags = oldAttrs.cmakeFlags ++ [ "-DMIN_LOG_LEVEL=0" ]; |
| ; vi: ft=clojure | |
| (macro make [receiver classtable ...] | |
| `(local ,receiver (doto (class ,(tostring receiver) ,classtable) | |
| ,...))) | |
| ; Handler that takes a single argument 'username' | |
| (make UserHandler turbo.web.RequestHandler | |
| (tset :get (fn [self name] | |
| (self:write (.. "Username is " name))))) |
If you wan't a cljs that acts like clj, but for ClojureScript, there are a few minor changes you can make:
First, add the following entry to ~/.clojure/deps.edn under the :deps key:
org.clojure/clojurescript {:mvn/version "1.10.439"}
Then make copies of clj and clojure named cljs and clojurescript, and put those copies on your path.
| const express = require('express') | |
| const app = express() | |
| var bodyParser = require('body-parser') | |
| // knex | |
| const environment = process.env.NODE_ENV || 'development'; | |
| const configuration = require('./knexfile')[environment]; | |
| const database = require('knex')(configuration); |
| const pipe = <T, K>( | |
| iterable: IterableIterator<T>, | |
| seed: K, | |
| fn: (a: T) => K | |
| ): T => { | |
| const iterator = iterable[Symbol.iterator]() | |
| if (iterable instanceof GeneratorFunction) { | |
| iterator.next() | |
| } | |
| let result = iterator.next(seed) |
| POST https://na15.salesforce.com/services/Soap/m/29.0/00Di0000000icUB HTTP/1.1 | |
| SOAPAction: create | |
| Content-Type: text/xml; charset=utf-8 | |
| Host: na15.salesforce.com | |
| Content-Length: 894 | |
| Expect: 100-continue | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:apex="http://soap.sforce.com/2006/08/apex" xmlns:cmd="http://soap.sforce.com/2006/04/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <soapenv:Header> |