ChangeLog を書く際によく使われる英語をまとめました。
ほとんど引用です。
angular.module('testApp', []). | |
directive('lazyLoad', ['$window', '$q', function ($window, $q) { | |
function load_script() { | |
var s = document.createElement('script'); // use global document since Angular's $document is weak | |
s.src = 'https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize'; | |
document.body.appendChild(s); | |
} | |
function lazyLoadApi(key) { | |
var deferred = $q.defer(); | |
$window.initialize = function () { |
/* | |
* Copyright 2013 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
private static void addValue(String val, String key, OutputStream strm, String boundary) throws UnsupportedEncodingException, IOException { | |
strm.write(boundary.getBytes("UTF-8")); | |
strm.write("\r\n".getBytes("UTF-8")); | |
strm.write("Content-Disposition: form-data; name=\"".getBytes("UTF-8")); | |
strm.write(key.getBytes("UTF-8")); | |
strm.write("\"\r\n\r\n".getBytes("UTF-8")); | |
strm.write(val.getBytes("UTF-8")); | |
strm.write("\r\n".getBytes("UTF-8")); | |
} | |
#import <UIKit/UIKit.h> | |
#import <ImageIO/ImageIO.h> | |
#import <MobileCoreServices/MobileCoreServices.h> | |
static UIImage *frameImage(CGSize size, CGFloat radians) { | |
UIGraphicsBeginImageContextWithOptions(size, YES, 1); { | |
[[UIColor whiteColor] setFill]; | |
UIRectFill(CGRectInfinite); | |
CGContextRef gc = UIGraphicsGetCurrentContext(); | |
CGContextTranslateCTM(gc, size.width / 2, size.height / 2); |
double photoSize = 640; | |
// フィルターの設定 | |
//// まずフィルターグループを作る。フィルターを一つにまとめることで、あとで画像をつくるときに全部のフィルターがかかった画像が得られる | |
self.filterGroup = [[GPUImageFilterGroup alloc] init]; | |
//// 最初のフィルター便宜的に | |
GPUImageFilter *firstFilter = [[GPUImageCropFilter alloc] initWithCropRegion:CGRectMake(0, 0.125f, 1.0f, 0.75f)]; | |
[self.filterGroup addFilter:firstFilter]; | |
/** | |
* This code is originally from here: | |
* http://stackoverflow.com/questions/7203047/code-for-download-video-from-youtube-on-java-android | |
* | |
* And some code about HTTP header is from here: | |
* http://xissy.github.com/dev/2012/09/28/get-a-youtube-mp4-file-link-which-can-be-played-iphone/ | |
*/ | |
package com.example.zzz; | |
import java.io.IOException; |
import java.util.Scanner; | |
import org.jinstagram.Instagram; | |
import org.jinstagram.auth.InstagramAuthService; | |
import org.jinstagram.auth.model.Token; | |
import org.jinstagram.auth.model.Verifier; | |
import org.jinstagram.auth.oauth.InstagramService; | |
import org.jinstagram.entity.users.basicinfo.UserInfo; | |
public class Demo { |
#import <UIKit/UIKit.h> | |
@interface UIColor (AppleCrayons) | |
+ (UIColor *)cantaloupeColor; | |
+ (UIColor *)honeydewColor; | |
+ (UIColor *)spindriftColor; | |
+ (UIColor *)skyColor; | |
+ (UIColor *)lavenderColor; | |
+ (UIColor *)carnationColor; |
using UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
struct Triangle { | |
public int p1; | |
public int p2; | |
public int p3; | |
public Triangle(int point1, int point2, int point3) { |