View fill.clj
#!/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])
View signals.py
# coding:utf-8
from sys import modules
import gc
import inspect
import six
from django.core.management.base import BaseCommand
from django.dispatch.dispatcher import Signal, WeakMethod
View tag_info.py
# coding: utf-8
'''Django command for getting info about template tags and filters within your project
It suports two output formats: human readable (with extra doc) and vim quickfix format
Usage: ./manage.py tag_info tag_or_filter_name
'''
import os
import sys
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
caskroom=/opt/homebrew-cask/Caskroom
for cask in $caskroom/*
do
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
View ceil.py
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
#!/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"
View result.txt
voldmar@work ~/temp % python rus.py
TEXT_RU
9.3005130291
6.33021712303
0.310887098312
0.146034002304
0.112301826477
TEXT_EN
7.99509000778
4.40287303925
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
div {
border: 1px solid red;
width: 300px;
height: 300px;
position: relative;
}