Skip to content

Instantly share code, notes, and snippets.

@ermaker
ermaker / KerasExampleOnJupyter.py
Last active June 22, 2016 05:56
Keras Example on Jupyter (works on old version of Keras, not current version)
# Python 2.7 on Jupyter
# Libraries: Keras, pandas, numpy, matplotlib, seaborn
# For compatibility
from __future__ import absolute_import
from __future__ import print_function
# For manipulating data
import pandas as pd
import numpy as np
from keras.utils import np_utils # For y values
@ermaker
ermaker / ie_driver_server_log
Created January 20, 2015 05:41
IEDriverServer (ver 2.44.0) Error log of BrowserFactory.cpp(280) -2147467263
14:35:36.769 INFO - Launching a standalone server
Setting system property webdriver.ie.driver.loglevel to TRACE
14:35:36.918 INFO - Java: Oracle Corporation 25.20-b23
14:35:36.918 INFO - OS: Windows 7 6.1 amd64
14:35:36.929 INFO - v2.44.0, with Core v2.44.0. Built from revision 76d78cf
14:35:36.929 INFO - Selenium server running in debug mode.
14:35:36.942 DEBUG - add component: SocketListener0@0.0.0.0:4444
14:35:36.950 DEBUG - add component: org.openqa.jetty.http.ResourceCache@5010be6
14:35:36.952 DEBUG - add component: org.openqa.selenium.server.ProxyHandler in HttpContext[/,/]
14:35:36.953 DEBUG - add component: HttpContext[/,/]
@ermaker
ermaker / gist:71afe2c0ea6bf0b7be03
Created December 23, 2014 00:27
A log failing chef-install check with vagrant
INFO global: Vagrant version: 1.7.1
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.1/bin/vagrant"
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Linux"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
#include <typeinfo>
#include <cxxabi.h>
#include <cstdlib>
#include <iostream>
int example1()
{
return 0;
}
@ermaker
ermaker / dmesg.log
Created April 13, 2011 04:25
booting log
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.37 (root@ubuntu) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #1 SMP Wed Apr 13 05:28:26 KST 2011
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
[ 0.000000] BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000001fffd000 (usable)
[ 0.000000] BIOS-e820: 000000001fffd000 - 0000000020000000 (reserved)
[ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
@ermaker
ermaker / .irbenv.rb
Created April 2, 2010 18:35
.irbenv.rb
def safe_require *args
begin
require *args
yield if block_given?
rescue LoadError => e
warn e
end
end
IRB.conf[:PROMPT_MODE] = :SIMPLE
@ermaker
ermaker / env.bat
Created June 17, 2009 03:52
set vs env
@echo off
rem use Visual Studio 9 2008
if not "%VS90COMNTOOLS%" == "" (
set ENV_VS_STRING=Visual Studio 9 2008
call "%VS90COMNTOOLS%vsvars32.bat"
goto eof
)
rem use Visual Studio 8 2005