Skip to content

Instantly share code, notes, and snippets.

View okunokentaro's full-sized avatar

OKUNOKENTARO okunokentaro

View GitHub Profile
@okunokentaro
okunokentaro / app.js
Created April 11, 2015 01:56
NewRouterでこれできんの?ってやつ
angular.module('app', ['ngNewRouter']);
function RootController() {
// noop
}
RootController.$routeConfig = [
{
path: '/',
redirectTo: '/home'
}, {
@okunokentaro
okunokentaro / 方針.md
Last active August 29, 2015 14:20
Toccataの今後の設計と採用APIについて
@okunokentaro
okunokentaro / angular2.d.ts
Last active August 29, 2015 14:21
angular2.d.ts 自分用
declare module "angular2/angular2" {
export function Directive(arg: any);
export function Component(arg: any);
export function View(arg: any);
export function bootstrap(...args: any[]);
export function bind(...args: any[]): any;
export function onChange(...args: any[]): any;
export class PropertyUpdate{}
export class NgFor{}
export class Pipe{}
@okunokentaro
okunokentaro / component.ts
Last active August 29, 2015 14:23
Angular 2のpropertyどーするよって話
@Component({
selector: 'organizer',
properties: {
organizer: 'organizer' // Keyは変数名this.organizer, Value は属性名(bindToControllerと一緒、=@&とかはない)
}
})
@View({
directives: [Row, Col, NgFor],
templateUrl: './app/components/organizer.html'
})
@okunokentaro
okunokentaro / gist:72ed886825ffa891cc50
Last active August 31, 2015 12:23
ng-kyoto Angular Meetup #2資料まとめ
@okunokentaro
okunokentaro / string.d.ts
Last active September 24, 2015 08:02
string.d.ts
declare module 'string' {
export default stringjs;
}
declare function stringjs(str: string): stringjs.Instance
declare namespace stringjs {
export class Instance {
s: string;
dasherize(): Instance;
}
@okunokentaro
okunokentaro / bemmer.d.ts
Last active September 24, 2015 08:32
bemmer.d.ts
declare module 'bemmer' {
export default bemmer;
}
declare namespace bemmer {
export function create<T>(...classNames: Array<string>): Builder<T>;
export interface Builder<T> {
(): string;
(elements: string): string;
@okunokentaro
okunokentaro / cw-log.d.ts
Created September 24, 2015 09:51
cw-log.d.ts
/**
* cw-log
*
* @copyright © 2015 OKUNOKENTARO
* @since cw-log v 0.1.0 (Mar 5, 2015)
*/
declare module 'cw-log' {
export default cw;
}
@okunokentaro
okunokentaro / gist:b9b88edf427140dedf29
Last active November 23, 2015 04:52
ng-kyoto Angular Meetup #3資料まとめ
<!DOCTYPE html>
<html>
<head>
<base href="/">
<title>ng-kyoto is very cool</title>
</head>
<body>
<my-app></my-app>
<script src="./bundle.js"></script>