I hereby claim:
- I am saifabid on github.
- I am saifabid (https://keybase.io/saifabid) on keybase.
- I have a public key ASCQ0Isj6chDIoNd-qRb3AXOx_FEOOrL50fe1SnRYybJigo
To claim this, I am signing this object:
tell application "Evernote" | |
repeat with n1 in notebooks | |
delete n1 | |
end repeat | |
end tell |
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore fix" |
import zipfile | |
zip_ref = zipfile.ZipFile(path_to_zip_file, 'r') | |
zip_ref.extractall(directory_to_extract_to) | |
zip_ref.close() |
version: '3' | |
services: | |
twitterhelp: | |
build: | |
context: . | |
image: twitterhelp:latest | |
ports: | |
- 3000:3000 |
FROM golang:1.9 | |
# This is only so you can store it a proper go workspace layout | |
ENV dirPath $GOPATH/src/github.com/username/repo | |
RUN mkdir -p $dirPath | |
ADD . $dirPath | |
WORKDIR $dirPath | |
EXPOSE 3000 |
I hereby claim:
To claim this, I am signing this object:
func currentTime() string { | |
loc, _ := time.LoadLocation("Canada/Eastern") | |
return time.Now().In(loc).Format(time.Kitchen) | |
} |
I think the most confusing thing that I have found about Ruby on Rails so far has been the transition from (trying to) write code myself to the use of the fabled "Rails Magic". So, to help my own understanding of a few core Ruby on Rails concepts, I have decided to write something on what I think is a CRITICAL topic... the idea of Convention over Configuration and why (in my mind) it is the most important thing that helps Rails become magic!
(This may be a topic that we cover in more detail in class but as I said, I'm writing this for my own understanding... I hope it helps someone else understand things too... Perhaps you can give me a hand when I'm crying next week!)
##Convention over configuration ###What does this "actually" mean...
def featureScaling(arr): | |
scaled_arr = [] | |
max_val = max(arr) | |
min_val = min(arr) | |
if max_val == min_val: | |
return arr | |
denom = max_val - min_val | |
for val in arr: | |
new_val = float((val - min_val))/denom |
package datadog | |
import ( | |
"fmt" | |
"time" | |
"github.com/ooyala/go-dogstatsd" | |
) | |
// Statsd wraps the datadog interface |