Skip to content

Instantly share code, notes, and snippets.

@ermaker
ermaker / KerasExampleOnJupyter.py
Last active Jun 22, 2016
Keras Example on Jupyter (works on old version of Keras, not current version)
View KerasExampleOnJupyter.py
# 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 Jan 20, 2015
IEDriverServer (ver 2.44.0) Error log of BrowserFactory.cpp(280) -2147467263
View ie_driver_server_log
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 Dec 23, 2014
A log failing chef-install check with vagrant
View gist:71afe2c0ea6bf0b7be03
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"
View rtti_example.cpp
#include <typeinfo>
#include <cxxabi.h>
#include <cstdlib>
#include <iostream>
int example1()
{
return 0;
}
View dmesg.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)
View .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
View env.bat
@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