Skip to content

Instantly share code, notes, and snippets.

View schaunwheeler's full-sized avatar

Schaun Wheeler schaunwheeler

View GitHub Profile
@schaunwheeler
schaunwheeler / LICENSE
Last active October 13, 2015 14:07
Shiny code for SegmentViewer Simulation
# The MIT License (MIT)
#
# Copyright (c) 2012 Schaun Jacob Wheeler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@schaunwheeler
schaunwheeler / excelToCsv.R
Last active December 18, 2015 15:38
A function to convert an Excel workbook to CSV files by using Excel's native Visual Basic capabilities. Only works on Windows.
# The MIT License (MIT)
#
# Copyright (c) 2012 Schaun Jacob Wheeler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@schaunwheeler
schaunwheeler / xlsxToR.r
Last active December 11, 2020 16:41
Import an xlsx file into R by parsing the file's XML structure.
# The MIT License (MIT)
#
# Copyright (c) 2012 Schaun Jacob Wheeler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@schaunwheeler
schaunwheeler / linkRecords.r
Last active December 20, 2015 12:39
A wrapper for the `RLBigDataLinkage` function in the `RecordLinkage` package.
# The MIT License (MIT)
#
# Copyright (c) 2012 Schaun Jacob Wheeler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@schaunwheeler
schaunwheeler / amortize.r
Last active March 13, 2023 16:24
Amortization function
# The MIT License (MIT)
#
# Copyright (c) 2012 Schaun Jacob Wheeler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@schaunwheeler
schaunwheeler / bokeh_app_test.py
Last active August 29, 2015 14:19
An attempt to figure out how to use bokeh-server
from pandas import DataFrame
from numpy import random
from bokeh.browserlib import view
from bokeh.document import Document
from bokeh.session import Session
from bokeh.models.plots import Plot, GridPlot, ColumnDataSource, Range1d
from bokeh.models.glyphs import Circle, Rect
from bokeh.models.tools import ResetTool, PreviewSaveTool, PanTool, BoxZoomTool
from bokeh.models.widgets.inputs import Select
from bokeh.models.widgets.buttons import Button
@schaunwheeler
schaunwheeler / bokeh_menu_change.py
Created April 26, 2015 01:42
Illustration of Bokeh server failure to reflect all changes to document
from bokeh.browserlib import view
from bokeh.document import Document
from bokeh.session import Session
from bokeh.models.widgets.inputs import Select, AutocompleteInput
from bokeh.models.widgets.groups import CheckboxButtonGroup
from bokeh.models.widgets.buttons import Button
from bokeh.models.widgets.markups import Paragraph
from bokeh.models.widgets.layouts import VBox, HBox, VBoxForm
from bokeh.properties import Instance, List, Bool
from bokeh.models.widgets.buttons import Button
from bokeh.models.widgets.markups import Paragraph
from bokeh.models.widgets.layouts import VBox, HBox, VBoxForm
from bokeh.server.app import bokeh_app
from bokeh.server.utils.plugins import object_page
from bokeh.plotting import curdoc
class MenuChange(VBox):
@schaunwheeler
schaunwheeler / app_reload.py
Created April 28, 2015 18:53
Trying to figure out why app reloads
from bokeh.properties import Instance, Bool, String
from bokeh.models.widgets.buttons import Button, Toggle
from bokeh.models.widgets.markups import Paragraph
from bokeh.models.widgets.layouts import VBox, HBox, VBoxForm
from bokeh.models.widgets.inputs import Select
from bokeh.server.app import bokeh_app
from bokeh.server.utils.plugins import object_page
from bokeh.plotting import curdoc
@schaunwheeler
schaunwheeler / bokeh_resize_test.py
Created September 21, 2016 18:59
Reproduces problem with adjusting plot size
from pandas import DataFrame
from bokeh.models.axes import CategoricalAxis
from bokeh.models import Plot, ColumnDataSource
from bokeh.models.ranges import FactorRange
from bokeh.models.glyphs import Circle
from bokeh.models.widgets.markups import PreText
from bokeh.layouts import Column
from bokeh.models.widgets.inputs import Select
from bokeh.plotting import curdoc