Skip to content

Instantly share code, notes, and snippets.

View ento's full-sized avatar

ento

View GitHub Profile
@ento
ento / 0_reuse_code.js
Created February 16, 2014 06:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ento
ento / evaluation_rubric.md
Last active August 29, 2015 13:56
Evaluation rubric from Introduction to Mathematical Thinking (maththink-004)

An argument that does not address the stated result (or answer the given question) should be given 0 marks in all categories.


  • Logical correctness: 0/2/4
  • Clarity: 0/2/4
  • Opening: 0/2/4
  • Stating the conclusion: 0/2/4
  • Reasons: 0/2/4
  • Overall evaluation: 0/2/4
@ento
ento / content.md
Last active August 29, 2015 13:56
mathjax on bl.ocks experiment

`(EE x in N)[x^3 = 27] `

KANON protocol for ACL injury/reconstructive surgey rehabilitation

Source: Supplementary Appendix for "Frobell RB, Roos EM, Roos HP, Ranstam J, Lohmander LS. A randomized trial of treatment for acute anterior cruciate ligament tears. N Engl J Med. 2010;363(4):331-42."

The protocol included four levels described by exercise examples and goals for range of motion, muscle function, and functional performance for the first 24 weeks of rehabilitation. Goals for each level should be met prior to progression to the next level. Time intervals for each level were suggested but not superior to the goals. A slower progression was expected in those assigned to rehabilitation plus ACL reconstruction. Pain, swelling and discomfort slowed the progression, and if persistent a visit to the treating clinician was scheduled. Use of anti- inflammatory drugs (NSAID) was allowed if needed.

Examples of exercises appropriate for each ph

@ento
ento / index.html
Last active August 29, 2015 14:02
<!DOCTYPE html>
<html>
<style>
.centered {
position: fixed;
left: 50%;
top: 50%;
}
#message {
width: 10em;
02 # Number of bytes that follow in first AD structure
01 # Flags AD type
1A # Flags value 0x1A = 000011010  
   bit 0 (OFF) LE Limited Discoverable Mode
   bit 1 (ON) LE General Discoverable Mode
   bit 2 (OFF) BR/EDR Not Supported
   bit 3 (ON) Simultaneous LE and BR/EDR to Same Device Capable (controller)
   bit 4 (ON) Simultaneous LE and BR/EDR to Same Device Capable (Host)
1A # Number of bytes that follow in second (and last) AD structure

FF # Manufacturer specific data AD type

@ento
ento / gist:126562
Created June 9, 2009 15:03
Get script's own location in Python
import os
local_dir = os.path.dirname(__file__)
abs_dir = os.path.join(os.getcwd(), local_dir)
if __name__ == "__main__":
print("Hello World!")
@ento
ento / python.py
Created July 14, 2009 09:10
"Am I run as a script?"
if __name__ == '__main__':
main()
@ento
ento / gist:151861
Created July 22, 2009 07:22
How to access a variadic argument in Objective-C
- (void)variadic:(NSString*)strings, ... {
va_list lst;
NSString* each;
va_start(lst, strings);
while (each = va_arg(lst, NSString*)) {
[NSString stringWithString: each];
}
va_end(lst);
}
@ento
ento / Inject Javascript Profiler on document load
Created August 28, 2009 00:31
User script to inject Javascript Profiler on document load
/*
*
* Author: ento
*
* Copyright (c) 2005-2008, Jaidev K Sridhar
* Released under the GPL license
* http://www.gnu.org/copyleft/gpl.html
*/
// ==UserScript==