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
#!/usr/bin/env boot | |
; vim: set ft=clojure: | |
(set-env! :dependencies | |
'[[com.itextpdf/forms "7.0.2"]]) | |
(import | |
'[com.itextpdf.forms PdfAcroForm] | |
'[com.itextpdf.kernel.pdf PdfDocument PdfReader PdfWriter] | |
'[java.io IOException]) |
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
#!/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 | |
caskroom=/opt/homebrew-cask/Caskroom | |
for cask in $caskroom/* | |
do |
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
on ProcessText(sentence) | |
tell application "http://typograf.artlebedev.ru/webservices/typograf.asmx" | |
return call soap {method name:"ProcessText", method namespace uri:"http://typograf.artlebedev.ru/webservices/", parameters:{|m:text|:sentence as string, |m:useP|:false as boolean, |m:useBr|:false as boolean, |m:entityType|:3 as integer}, SOAPAction:"http://typograf.artlebedev.ru/webservices/ProcessText"} | |
end tell | |
end ProcessText | |
set answer to ProcessText("миру - мир") | |
display dialog answer |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ |
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
ul { | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
} | |
input:checked + label { | |
background: yellow; | |
} |
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
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 |
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
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 |
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
#!/usr/bin/osascript | |
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" |
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
voldmar@work ~/temp % python rus.py | |
TEXT_RU | |
9.3005130291 | |
6.33021712303 | |
0.310887098312 | |
0.146034002304 | |
0.112301826477 | |
TEXT_EN | |
7.99509000778 | |
4.40287303925 |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
div { | |
border: 1px solid red; | |
width: 300px; | |
height: 300px; | |
position: relative; | |
} |
NewerOlder