This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
class Accessor(object): | |
def __init__(self, wrapper, d): | |
self.wrapper = wrapper | |
self.d = d | |
def __repr__(self): | |
return repr(self.d) | |
def _get_failback(self, k): | |
chained = self.wrapper.chained |
class Tab | |
constructor: -> | |
@$tabs = ($ '.tab') | |
@$sections = ($ '.section') | |
@_idx = 0 | |
current_tab: => | |
@$tabs.eq(@_idx) | |
current_section: => |
if (!context.setup) { | |
context.setup = true; | |
var app = { | |
counts: { | |
GET: 0, | |
POST: 0, | |
}, | |
$log: $('<pre>').appendTo($(document.body)), | |
urls: [], |
def cbv_decorator(decorator): | |
""" | |
Turns a normal view decorator into a class-based-view decorator. | |
Usage: | |
@cbv_decorator(login_required) | |
class MyClassBasedView(View): | |
pass | |
""" |
import os | |
import pty | |
pair = pty.fork() | |
if not pair[0]: | |
os.execvp('python', ['python']) | |
s = os.fdopen(pair[1], 'w+') | |
while True: |
var page = new WebPage(), | |
address, output, size; | |
if (phantom.args.length != 2) { | |
console.log('Give me URL and filename'); | |
phantom.exit(); | |
} else { | |
address = phantom.args[0]; | |
output = phantom.args[1]; | |
page.viewportSize = { width: 1024, height: 768 }; |
from django.forms import ModelForm | |
from django.forms.models import inlineformset_factory | |
from models import Sponsor, Sponsorship | |
class SponsorForm(ModelForm): | |
class Meta: | |
model = Sponsor |
ζ₯ζ: | 2025-05-13 |
---|---|
δ½: | ζι¨ε |
γγΌγΈγ§γ³: | 2025.3 |
URL: | https://shiguredo.jp/ |
θ¨θͺ
ζ΄ζ°: | 2013-12-08 |
---|---|
γγΌγΈγ§γ³: | 0.1.8 |
δ½θ : | @voluntas |
URL: | http://voluntas.github.io/ |
ζ¦θ¦