This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!Number.prototype.niceFormat) { | |
Number.prototype.niceFormat = function(options) { | |
var defaultOptions = { | |
thousandSeparator: ',', | |
leftPad: 0, | |
decimalPlaces: 2, | |
negative: '()' | |
}; | |
var env = defaultOptions; | |
if (typeof options != 'undefined') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Q4 | |
## Refer to the setting of the previous question. | |
## To further test the system, | |
## administrators selected 20 nights and | |
## randomly assigned the new triage system to be used on | |
## 10 nights and the standard system on the remaining 10 nights. | |
## They calculated the nightly median waiting time (MWT) to see | |
## a physician. The average MWT for the new system was | |
## 3 hours with a variance of 0.60 while | |
## the average MWT for the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# | |
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea | |
# | |
# Ubuntu 14.04 based web server installation script | |
# Run this by executing the following from a fresh install of Ubuntu 14.04 server: | |
# | |
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/simkimsia/0fe0a5eb9c7504ead53c/raw/58438c9a7c132be94fe5d6687b6f9623968b927f/ubuntu14.04-rails4.sh)" <mysqlPassword> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# | |
# | |
# Run this by executing the following: | |
# | |
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/simkimsia/0c218cadbb3055d53417/raw/download_composer.sh)" | |
# | |
# Also, run this as root, unless you enjoy failing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# | |
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea | |
# | |
# Ubuntu 14.04 based web server installation script | |
# Run this by executing the following from a fresh install of Ubuntu 14.04 server: | |
# | |
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/simkimsia/691e97f40b2544644f9a/raw/ubuntu14.04-cake2.4.sh)" <mysqlPassword> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RegExp.quote = function(str) { | |
return (str+'').replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"); | |
} | |
function getSearchParameters() { | |
var prmstr = window.location.search.substr(1); | |
return prmstr != null && prmstr != "" ? transformToAssocArray(prmstr) : {}; | |
} | |
function transformToAssocArray( prmstr ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('AppException', 'Lib/Exception'); | |
App::uses('ErrorHandler', 'Error'); | |
class AppErrorHandler extends ErrorHandler { | |
public static function handleException(Exception $exception) { | |
if ($exception instanceof AppException) { | |
$element = 'default'; | |
$message = $exception->getMessage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('AppException', 'Lib'); | |
App::uses('ErrorHandler', 'Error'); | |
class AppErrorHandler extends ErrorHandler { | |
public static function handleException(Exception $exception) { | |
if ($exception instanceof AppException) { | |
$element = 'default'; | |
$message = $exception->getMessage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity android:name="MainActivity"> | |
<!-- This activity is the main entry, should appear in app launcher --> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
<activity android:name="ShareActivity"> | |
<!-- This activity handles "SEND" actions with text data --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getmonitor <- function(id, directory, summarize = FALSE) { | |
path_to_directory = paste(getwd(), directory, sep="/") | |
temp = list.files(path=path_to_directory, pattern="*.csv") | |
myfiles = lapply(temp, read.delim) | |
print(temp) | |
print(myfiles) | |
} | |
print(getwd()) |