Skip to content

Instantly share code, notes, and snippets.

@nobita4176
nobita4176 / packages.config
Last active August 29, 2015 14:14
Chocolatey設定ファイル
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="firefox" />
<package id="google-chrome-x64" />
<package id="KaoriyaVim" source="c:\Users\nobita\misc\Chocolatey-KaoriyaVim-master" />
<package id="git.install" />
<package id="nyagos" />
<package id="visualstudiocommunity2013" />
<package id="unity" />
<package id="nodist" version="0.4.6-beta" />
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>時間割</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.95.3/css/materialize.min.css">
<style>
th, td {
width: 6rem;
height: 8ex;

Gitとは


Git is-a VCS

  • VCS: Version Control System
    • バージョン管理システム
    • 他にもSubversionとかMercurialとかあるらしい

バベルタイル 個別評価

定義

  • A:世代

  • 援助

    • 資源[resource]: 全員が使用可能な資源
    • 建造[type]: typeを建造した際に効果誘発
      • 連鎖建造: 連鎖を用いて建造した際
    • 軽減n[type]: typeの建造コストをn減らす(コインは除く)
package com.github.nobita.deck.priceSalvager
import scala.io.Source
import scala.collection.JavaConversions._
import org.openqa.selenium.htmlunit.HtmlUnitDriver
import org.openqa.selenium.{By, WebElement}
object PriceSalvager {
case class CardData(name: String, price: Int, url: String)
case class DeckUnit(num: Int, card: CardData)
@nobita4176
nobita4176 / imenu.js
Last active October 29, 2015 08:05
http://keysnail.g.hatena.ne.jp/mooz/20120212/1329040579 を真似したVimperatorプラグイン
// PLUGIN_INFO {{{
var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>imenu</description>
<author mail="nobita4176@gmail.com" homepage="https://twitter.com/nobita4176">nobita4176</author>
<version>0.0.1</version>
<minVersion>2.2pre</minVersion>
<maxVersion>2.2pre</maxVersion>
<license>public domain</license>
@nobita4176
nobita4176 / smart-yank.js
Created November 10, 2015 03:49
vimpr plugin: 賢くyank
// PLUGIN_INFO {{{
let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>smart yank</name>
<description>yank wisely.</description>
<description lang="ja">賢くyank</description>
<version>1.0.0</version>
<author>nobita</author>
<minVersion>2.0pre</minVersion>
<maxVersion>*</maxVersion>
@nobita4176
nobita4176 / pixiv-controller.js
Last active November 10, 2015 19:26
Vimperatorでpixivを操作
/* BSD license {{{
Copyright (c) 2015-2015, nobita.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
#!/usr/bin/env node
Number.prototype.times = function(f) {
for (var i = 0; i < this; i++) {
f(this);
}
};
Array.prototype.shuffle = function() {
var a = [].concat(this);
for (var i = this.length - 1; i > 0; i = 0 | i - 1) {
@echo off
setlocal enabledelayedexpansion
for /l %%i in (0, 1, 40) do (
set x=%%i
if %%i LSS 10 (
set x=0!x!
)