Skip to content

Instantly share code, notes, and snippets.

View brittanydmiller's full-sized avatar

Brittany Miller brittanydmiller

  • Mode Analytics
  • San Francisco, CA
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//@version=3
study("3-Day Swing Indicator", overlay=true)
swing_bar_index = input(1, title='Number of bars back to check for a swing')
swing_detection(swing_bar_index)=>
swing_low = false
total_bars_back = (swing_bar_index*2) //- 1 // <- need to subtract 1 in some cases
swing_point_low = low[swing_bar_index]

Keybase proof

I hereby claim:

  • I am brittanydmiller on github.
  • I am chulainna (https://keybase.io/chulainna) on keybase.
  • I have a public key ASDrgyvOi5r08Y3xcRvk_mnTtPSV5f8O_OeWVvKjgHBP8Qo

To claim this, I am signing this object:

//Binder
Binder = function(targets, controller) {
this.targets = targets;
this.controller = controller;
}
Binder.prototype = {
bindSomething: function() {
controller = this.controller
$('body').on('click', this.targets.deleteButton, function() {
@brittanydmiller
brittanydmiller / jquery_example.html
Created March 13, 2014 14:44 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@brittanydmiller
brittanydmiller / jquery_example.html
Last active August 29, 2015 13:57 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@brittanydmiller
brittanydmiller / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:55 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
class BoggleBoard
def initialize(grid)
@grid = grid
end
def create_word(*coords)
coords.map { |coord| @grid[coord.first][coord.last] }.join("")
end