Skip to content

Instantly share code, notes, and snippets.

View aiya000's full-sized avatar
🐶
Inu

aiya000 aiya000

🐶
Inu
View GitHub Profile
{
var x = 10;
}
console.log(x);
<!DOCTYPE html>
<html lang="ja" ng-app="appName">
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="./bower_components/angular/angular.min.js"></script>
<script type="text/javascript" src="./controller_basic.js"></script>
</head>
<body>
<div ng-controller="MainController">
var appName = angular.module("appName", []);
appName.controller("MainController", ["$scope", function($scope) {
$scope.foo = "ahoge";
}]);
"-------------------------"
" パラメータ設定 "
"-------------------------"
"{{{
"----------------------------------------
" ヒント "
" @Undecide => 完全に動作するか未確定
" @Wakegawa => わけがわからないよ(なぜかこれなら動作する…等)
" @Provisional => 仮設定 | 仮配置
import Control.Applicative
main = putStrLn $ show divisorList
divisorList = a
where
max = 120
a = {-filter (<=max) $ -}(*) <$> [1..] <*> [3,5..]
loseNumber = filter (/=5) [0..9]
f :: [Int] -> [Int]
f [] = []
f [_] = []
f (a:b:xs) = if (a - b /= -1) then a : f (b:xs) else a : g (b:xs)
where g ys = map (-1) ys
"----------------------------"
" Target of this config "
" - UNIX like OS "
" - Cygwin "
" - Kaoriya Vim "
"----------------------------"
"---------------------"
" Vi互換をオフ
set nocompatible
" filetypeをoffにする
filetype off
""" Vundle '''
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" 利用中のプラグインをBundle。コメントは書いちゃダメ。
import java.util.Optional;
import java.util.stream.*;
public class FizzBuzz8 {
public static void main(String[] args){
Stream.iterate(1, n -> n+1)
.map(
n -> n + ": " + ((n%3)==0 ? (n%5)==0 ? "FizzBuzz"
: "Buzz"
"@See http://qiita.com/kamichidu/items/e3e6c16ed84b8f72de1b
function! PreviewDatbase(dbFileName, tableName)
try
let s:C = vdbc#connect_by_dsn('vdbc:sqlite3:dbname=./' . a:dbFileName)
let s:data = s:C.select_as_dict('SELECT * FROM '.a:tableName.';')
let s:columns = []
for i in items(s:data[0])
call add(s:columns, i[0])
endfor