Skip to content

Instantly share code, notes, and snippets.

View naoyashiga's full-sized avatar

Naoya / nao-chan / naoya-tech naoyashiga

View GitHub Profile
@naoyashiga
naoyashiga / test.js
Created October 10, 2013 14:12
Cubeの各面に異なるマテリアルを使うときはTHREE.jsのバージョンに注意! ref: http://qiita.com/naoyashiga/items/269a9bc3658956afc379
var cube_geo = new THREE.CubeGeometry(
CUBE_WIDTH,
CUBE_HEIGHT,
CUBE_DEPTH,
CUBE_WIDTH_SEGMENTS,
CUBE_HEIGHT_SEGMENTS,
CUBE_DEPTH_SEGMENTS
);
//空のマテリアル
var cube_material = new THREE.MeshFaceMaterial(materials);
@naoyashiga
naoyashiga / Catch-the-Particles..markdown
Created October 16, 2013 15:14
A Pen by naoyashiga.
@naoyashiga
naoyashiga / Tween-Cube-Formation.markdown
Created October 24, 2013 15:56
A Pen by naoyashiga.

Tween Cube Formation

Cubes move in formaiton,Mix,Line,Circle,Cube and Spiral.

using by Three.js and Tween.js.

A Pen by naoyashiga on CodePen.

License.

@naoyashiga
naoyashiga / gist:3fca2f2e51bc36c5fb09
Created June 3, 2014 12:16
Swift draw Particles.
//
// ViewController.swift
// DrawParticle
//
// Created by naoyashiga on 2014/06/03.
// Copyright (c) 2014年 naoyashiga. All rights reserved.
//
import UIKit
@naoyashiga
naoyashiga / catApi.rb
Created March 18, 2015 13:30
Seeing a cat image or GIF by using the Cat API
# -*- encoding: UTF-8 -*-
require 'nokogiri'
require 'open-uri'
API_URL = "http://thecatapi.com/api/images/get?format=xml"
doc = Nokogiri::XML(open(API_URL).read)
url_nodes = doc.xpath("//url").text
@naoyashiga
naoyashiga / main.js
Created May 16, 2015 10:14
Convert Photoshop Textlayer text to json
(function(){
"use strict";
var PLUGIN_ID = require("./package.json").name,
MENU_ID = "tutorial",
MENU_LABEL = "$$$/JavaScripts/Generator/Tutorial/Menu=Tutorial";
var _generator = null,
_currentDocumentId = null,
_config = null;
@naoyashiga
naoyashiga / TimingFunction.swift
Created May 28, 2015 11:46
TimingFunction.swift
import Foundation
enum timingFunction{
case Linear,EaseIn,EaseOut,EaseInOut,
Spring,
EaseInSine,EaseOutSine,EaseInOutSine,
EaseInQuad,EaseOutQuad,EaseInOutQuad,
EaseInCubic,EaseOutCubic,EaseInOutCubic,
EaseInQuart,EaseOutQuart,EaseInOutQuart,
EaseInQuint,EaseOutQuint,EaseInOutQuint,