A Pen by Seun Martins on CodePen.
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
{ | |
"firstName": "Reginald", | |
"lastName": "Fake", | |
"gender": "Male", | |
"dob":"1983-01-01", | |
"email":"[email protected]", | |
"address": { | |
"streetAddress": "21 Fake Street", | |
"city": "New York City", | |
"state": "NY", |
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
# include z | |
. /usr/local/Cellar/z/1.8/etc/profile.d/z.sh | |
plugins=(git extract node npm bower brew cloudapp) | |
source $ZSH/oh-my-zsh.sh | |
HISTSIZE=SAVEHIST=100000 | |
setopt sharehistory |
This one is from Scientific American.
A Pen by Chris Coyier on CodePen.
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
{% capture content_words %} | |
{{ post.content | number_of_words }} | |
{% endcapture %} | |
{% capture excerpt_words %} | |
{{ post.content | truncatewords: 250 | number_of_words }} | |
{% endcapture %} | |
{% if content_words != excerpt_words %} | |
<p class="right"><a href="{{site.baseurl}}{{ post.url }}">Read more</a></p> |
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
angular.module('app', []) | |
.directive('loader', function() { | |
return { | |
restrict: 'A', | |
link: function link(scope, element, attrs) { | |
var loaderHTML = angular.element('<div class="loading-spinner-context"><div class="loading-spinner-wrapper"' + 'id="app-loader"><span class="loading-spinner white"><i class="one"></i><i class="two"></i><i class="three"></i></span></div></div>'); | |
scope.$watch(attrs.loader, function(newVal) { | |
if (!newVal) { | |
if ($(element).children('.loading-spinner-context').length) { | |
$('.loading-spinner-context').css('display', 'block'); |
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
const UserController = { | |
create(req, res) { | |
const userData = req.body; | |
const query = { | |
where: { email: userData.email } | |
}; | |
const defaultRole = { | |
where: { title: 'Writer' } | |
}; |
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
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true, | |
"mocha": true | |
}, | |
"extends": "airbnb", | |
"rules": { | |
"comma-dangle" : [2, "never"], |
I've always used this to load an image from a tar
docker load < image.tar
is same as:
docker load --input image.tar
Useful when I had to run something like:
I hereby claim:
- I am impactmass on github.
- I am impactmass (https://keybase.io/impactmass) on keybase.
- I have a public key ASBqgz36Iy3-ppxP0aPRQJbtEk0fpRlGkOpYtDXDHYq20Ao
To claim this, I am signing this object:
OlderNewer