Skip to content

Instantly share code, notes, and snippets.

View eiennohito's full-sized avatar

Arseny Tolmachev eiennohito

  • Hakuhodo Technologies
  • Osaka, Japan
View GitHub Profile
(function() {
var datesCallback, process;
process = function(objs) {
var o, _i, _len, _results;
_results = [];
for (_i = 0, _len = objs.length; _i < _len; _i++) {
o = objs[_i];
_results.push([o.idx, o.count]);
}
angular.module("kotonoha", []).directive("editableSpan", ->
name: "editableSpan"
restrict: 'E'
transclude: true
scope: {
title: '='
}
template: """
<div style="border: solid 1px black;">
<div>{{title}}</div>
<!DOCTYPE html>
<!--
~ Copyright 2012 eiennohito
~
~ 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
~
(function() {
var resizer;
resizer = function(el) {
var delayedResize, resize;
resize = function() {
el.rows = 1;
$(el).css('height', 'auto');
$(el).css('height', "" + el.scrollHeight + "px");
return false;
戦場|せんじょう
原|はら
干る|ひる
偽|ぎ
クラス|くらす
いわゆる|いわゆる
病弱|びょうじゃく
女の子|おんなのこ
言う|いう
立つ|たつ
class xxx_serializer {
template<typename T>
void archive(T& obj) { serialize(obj); } //redirect
template<typename T>
void serialize(T& obj) {
xxx_serializer_impl<T> impl(&this);
impl.do_work(obj);
}
}
struct blank_size {
int KolChastVisota; int KolChastRadius; fp_t Visota; fp_t Radius; fptarr3 H; fptarr3 R; template <typename stream> void serialize_to_stream_routine(stream&
str, int level = 0) { field_t<int> field_ KolChastVisota = {KolChastVisota, "KolChastVisota"}; field_t<int> field_ KolChastRadius = {KolChastRadius, "KolChas
@eiennohito
eiennohito / join.hpp
Created September 11, 2012 14:11
Fixed join.hpp (it doesn't compile now)
// Boost.Range library
//
// Copyright Neil Groves 2009. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
//
// For more information, see http://www.boost.org/libs/range/
//
戦場|せんじょう
原|はら
干る|ひる
偽|ぎ
クラス|くらす
いわゆる|いわゆる
病弱|びょうじゃく
女の子|おんなのこ
言う|いう
立つ|たつ
/*
* Copyright 2012 eiennohito
*
* 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