対象者
- 名無しさん
- git (ぎっと) とか知らない
- GitHub (ぎっとはぶ) は、なぜか名前だけ知ってる
# Extension of http://www.yilmazhuseyin.com/blog/dev/create-thumbnails-imagefield-django/ | |
# Note: image_folder and thumbnail_folder are both a callable (ie. a lambda that does a '/'.join()) | |
class Image(Media): | |
image = models.ImageField( | |
upload_to=image_folder | |
) | |
thumbnail = models.ImageField( |
Name: Seiya Ishibashi
Nationality: Japan
Address: Tokyo Japan
Email: [email protected]
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import feedparser | |
import pydocumentdb.documents as documents | |
import pydocumentdb.document_client as document_client | |
import pydocumentdb.errors as errors | |
import pydocumentdb.http_constants as http_constants | |
Docdb_masterKey = '<Your Documentdb master key string>' | |
Docdb_host = 'https://<documentdb account>.documents.azure.com:443/' |
# coding: utf-8 | |
# swap([0,1,2], 0, 2) | |
# => [2, 1, 0] | |
def swap(v, n, m) | |
v2 = v.dup | |
v2[m] = v[n] | |
v2[n] = v[m] | |
v2 | |
end |
(function(){ | |
var text = 'F1ドライバーのロズベルグ選手は、所属するメルセデスチームとの契約をカリブ海の英領バージン諸島にある企業を介して行っていることが判明。'; | |
var canvas, context; | |
canvas = document.createElement('canvas'); | |
canvas.width = 512; | |
canvas.height = 256; |
obs = obslua | |
source_name = "" | |
tick = 1000 | |
last_text = "" | |
format = "" | |
activated = false | |
local s_unit = 1000 * 1000 * 1000 -- [ns] |