Instantly share code, notes, and snippets.

View fill.clj
#!/usr/bin/env boot
; vim: set ft=clojure:
(set-env! :dependencies
'[[com.itextpdf/forms "7.0.2"]])
'[com.itextpdf.forms PdfAcroForm]
'[com.itextpdf.kernel.pdf PdfDocument PdfReader PdfWriter]
'[ IOException])
View brew-total.zsh
#!/usr/bin/env zsh
# Put it to /usr/local/bin/brew-total and use as `brew total`
brew update && brew upgrade --all && brew cleanup
brew cask list | xargs brew cask install && brew cask cleanup
for cask in $caskroom/*
View gist:7d86ece6f1b37d274767
on ProcessText(sentence)
tell application ""
return call soap {method name:"ProcessText", method namespace uri:"", parameters:{|m:text|:sentence as string, |m:useP|:false as boolean, |m:useBr|:false as boolean, |m:entityType|:3 as integer}, SOAPAction:""}
end tell
end ProcessText
set answer to ProcessText("миру - мир")
display dialog answer
View dabblet.css
* The first commented line is your dabblet’s title
View dabblet.css
ul {
list-style: none;
padding: 0;
margin: 0;
input:checked + label {
background: yellow;
View gist:5089123
Andrew: Coming up, today’s guest failed and then he did one thing differently and then he succeeded. I won’t tell you what that one thing is, but if you catch this interview all the way through the end you’ll know it for yourself, and if could have just as big an impact on your life. Also, notice the grin on today’s guest when he tells you how he got a high end develop shop to help him design the look, the feel, the features of his mobile app. You’ll understand why he’s grinning and then I want to know from you, is it something that you’d want to do to get your product developed? Finally how do you get strangers to tell you what to build for them and then to plunk down their credit cards and pay for it. All that and so much more is coming up.
Before we get started I want to congratulate Mixergy fan, Brad Mills, for creating this, Nuvia Cafe. He says he did it while listening to Mixergy interviews based on what he learned from those interviews. Can you imagine the first time by the way that an idea that he ha
from decimal import Decimal as D
from math import ceil
eur = D(387)
rub = D(15516.52)
convert = D(0.774893452150329) / D(31.192)
converted = D(ceil(float(rub * convert)))
print eur, converted
View reload.applescript
on run argv
set theUrl to "http://localhost:8000/api/"
if (count of argv) > 0 then
set theUrl to item 1 of argv
if not (theUrl starts with "http://" or theUrl starts with "https://") then
set theUrl to "http://" & theUrl
end if
end if
tell application "Google Chrome"
View result.txt
voldmar@work ~/temp % python
View dabblet.css
* The first commented line is your dabblet’s title
div {
border: 1px solid red;
width: 300px;
height: 300px;
position: relative;