View utmとは
(sifi(aralia(~ (23:54:36))))
@ ipython
iPython 2.7.12 (default, Nov 19 2016, 06:48:10)
Type "copyright", "credits" or "license" for more information.
IPython 2.4.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
View cute_AA.txt
あせ (・_・;) 顔文字
あせ (・∀・;) 顔文字
あせ (^ω^;;) 顔文字
あせ (゚∀゚ ;)タラー 顔文字
あたふた ヽ(´・ω・`ヽ)​ 顔文字
あつい (。>﹏<)あㄘ”ゅい 顔文字
あつい ι(´Д`υ)アジィー 顔文字
あつい あㄘ”ゅい(>﹏<。Ξ。>﹏<)あㄘ”ゅい 顔文字
あはは ( ゚∀゚)アハハ八八ノヽノヽノヽノ \ / \/ \ 顔文字
あひゃ アヒャヒャヒャ(゚∀゚≡゚∀゚)ヒャヒャヒャ 顔文字
View not_nn.py
from keras.models import Sequential
from keras.layers import Dense, Activation
from keras import backend as K
model = Sequential()
model.add(Dense(output_dim = 1, input_dim=2))
model.add(Activation('sigmoid'))
model.compile(loss='binary_crossentropy', optimizer='sgd', metrics=['accuracy'])
test_inputs = [(0, 0), (0, 1), (1, 0), (1, 1)]
#correct_outputs = [False, False, False, True]
View extend.sh
#!/bin/sh
# extend non-HiDPI external display on DP* above HiDPI internal display eDP*
# see also https://wiki.archlinux.org/index.php/HiDPI
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319
EXT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v '^eDP' | head -n 1`
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v '^DP' |grep -v 'HDMI' | head -n 1`
ext_w=`xrandr | sed 's/^'"${EXT}"' [^0-9]* \([0-9]\+\)x.*$/\1/p;d'`
View blinkyoureyes.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "ompugao"
import sys
from PyQt4 import QtGui, QtCore
class BlinkYourEyesWidget(QtGui.QWidget):
View io_export_md5.py
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
View vim.md

実践Vim

先頭に連番をつける

:let i=1
qa
I<c-r>=i<CR><Esc>j
:let i+=1
q
View fix_roszsh_completion.txt
# /opt/ros/indigo/share/rosbash/roszsh
# https://github.com/ros/ros/issues/48
#catkin_package_libexec_dir=`catkin_find --without-underlays --libexec ${pkg} 2> /dev/null`
catkin_package_libexec_dir=`catkin_find --first-only --without-underlays --libexec ${pkg} 2> /dev/null`
View git-submodule-fetch
#!/bin/bash
set -e
set -u
if [ $# -eq 0 ]; then
git submodule -q foreach 'echo $name' | xargs -n 1 -P 10 git-submodule-fetch
else
while [ $# -gt 0 ]; do
(cd $1; git fetch -q || echo "Failed to fetch $1">&2)
View winnerscircle.sh
#/bin/bash
download_story()
{
local storynum=$1
local numimages=$2
echo mkdir -p $storynum
mkdir -p $storynum
for i in $(seq 1 $numimages) ; do