New to slack?
This is my quick-enough guide to give you a taste of the slack awesomeness, in a few minutes
Windows users: This is an OSX guide, on Windows replace ⌘ with Ctrl
Why not just use Skype
var getService = function (serviceName) { | |
return angular.element(document.body).injector().get(serviceName); | |
} | |
var getRootScope = function () { | |
return angular.element(document.body).scope().$root; | |
} |
My flavour/fork of the an OSX setup guide
# Usage: | |
# | |
# ``` | |
# $sh tell-slack-git-log.sh 2 | |
# ``` | |
# | |
# Creates slack message: | |
# ``` | |
# Changes: | |
# |
# Tell slack when your AWS instance has restarted | |
# | |
# 1. Replace the slack service hook (or entire script from `curl -X POST...`) | |
# 2. Put this file in your .ebextensions folder called tell_slack.config | |
# | |
# .ebextensions/ | |
# └── tell_slack.config | |
# | |
# On your deployed server tell_slack.sh should be AUTOMATICALLY generated in /opt/elasticbeanstalk/hooks/appdeploy/post | |
# |
git clone $1 unique_local_name | |
cd unique_local_name | |
for remote in `git branch -r | grep -v master `; \ | |
do git checkout --track $remote ; done | |
git remote add neworigin $2 | |
git push --all neworigin | |
git push --tags neworigin |
//http://biostall.com/javascript-new-date-returning-nan-in-ie-or-invalid-date-in-safari | |
var d = new Date(2011, 01, 07); // yyyy, mm-1, dd | |
var d = new Date(2011, 01, 07, 11, 05, 00); // yyyy, mm-1, dd, hh, mm, ss | |
var d = new Date("02/07/2011"); // "mm/dd/yyyy" | |
var d = new Date("02/07/2011 11:05:00"); // "mm/dd/yyyy hh:mm:ss" | |
var d = new Date(1297076700000); // milliseconds | |
var d = new Date("Mon Feb 07 2011 11:05:00 GMT"); // ""Day Mon dd yyyy hh:mm:ss GMT/UTC |
<ol> | |
<li> | |
<span>A long sentence must be hidden</span> | |
<span>that must be inline-block</span> | |
</li> | |
<li> | |
<span>Cras dignissim cursus nibh. Curabitur.</span> | |
<span>In hac habitasse platea dictumst.</span> | |
</li> | |
</ol> |