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
#include <iostream> | |
#include <vector> | |
class Foo | |
{ | |
public: | |
Foo(){ | |
std::cout<<"constructor"<<"\n"; | |
} | |
~Foo(){ |
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
#include <iostream> | |
#include <map> | |
class Foo | |
{ | |
public: | |
Foo(){ | |
std::cout<<"constructor"<<"\n"; | |
} | |
~Foo(){ |
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
/** | |
C++の基礎構文を学ぶプロジェクト | |
◆タイトル | |
継承・オーバーライド | |
スーパークラスのプロパティ、メソッドへのアクセス周り | |
*/ | |
#include <iostream> |
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
# -*- coding: utf-8 -*- | |
import urllib2 | |
from HTMLParser import HTMLParser | |
URL ="http://google.com" | |
OUTPUT="output.html" | |
urlList = [] | |
class TestParser(HTMLParser): |
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
// | |
// ViewController.m | |
// CALayerTest | |
// | |
// Created by Ohba Shunsuke on 2013/03/03. | |
// Copyright (c) 2013年 Ohba Shunsuke. All rights reserved. | |
// | |
#import "ViewController.h" | |
//CALayerを使用する際は、以下のクラスをインポートする必要がある |
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
//layer生成 | |
CALayer *layer = [CALayer layer]; | |
layer.frame = CGRectMake(0, 0, 20, 20); | |
layer.backgroundColor = [[UIColor redColor] CGColor]; | |
//layer設定 | |
layer.position = CGPointMake(100, 200); | |
//枠線カラー |
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
- (void)drawRect:(CGRect)rect | |
{ | |
[super drawRect:rect]; | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
CGContextSetRGBFillColor(context, | |
1.0, 0.5, 0.0, 1.0); | |
CGContextSetRGBStrokeColor(context, | |
1.0, 0.0, 0.5, 1.0); | |
CGContextSetLineWidth(context, 10.0); | |
CGRect r1 = CGRectMake(50.0 , 50.0, 100.0, 100.0); |
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
- (void)drawRect:(CGRect)rect | |
{ | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
//塗りつぶしカラーを選択 | |
CGContextSetRGBFillColor(context, 100, 0, 30, 1); | |
//ラインのカラーを選択 | |
CGContextSetRGBStrokeColor(context, 255, 255, 255, 1); | |
UIBezierPath *path = [UIBezierPath bezierPath]; |
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
javascript:(function()%7Bvar%20d=document,e=d.createElement('script'),url='http://dl.dropbox.com/u/2271551/javascript/photohtml.js';if(!url.match(/%5C?/))url+='?t='+(new%20Date()).getTime();url+='&out='+'draftpad'+'&api='+'c931229b31c228ab60f71bb317119473'+'&fid='+'shunsuke123'+'&knd='+'perpage'+'&scs='+'485'+'&cnt='+'20'+'&tim='+'5'+'&typ='+'M500'+'&fmt='+'%3Cimg%20class%3D%22flickr_photo%22%20src%3D%22%24%7BimgURL%7D%22%20alt%3D%22%24%7Btitle%7D%22%20%24%7Bwidth%7D/%3E';e.charset='utf-8';e.src=url;e.id='bmlt';d.body.appendChild(e);%7D)(); |
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
$(function(){ | |
var scene1 = "<img src='assets/scene1.png' />"; | |
$("#content").append("<div id='scene'></div>"); | |
//非表示 | |
$("#scene").css("visibility", "hidden"); | |
OlderNewer