This file contains hidden or 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
| return { | |
| renderEndOfListCustomButtonIfSet: function() { | |
| // for more complex props.children verification we can use https://facebook.github.io/react/docs/top-level-api.html#react.children | |
| if (this.props.children) { | |
| return this.props.children; | |
| } | |
| return null; | |
| } | |
| render: function() { | |
| <div> |
This file contains hidden or 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
| rm ~/changelog.txt && git shortlog --no-merges --author="Cimpean" --reverse --after="2015-1-1" >> ~/changelog.txt && git log --author="Cimpean" --after="2015-1-1" --no-merges --pretty=format:'%cn%n %B %n' >> ~/changelog.txt |
This file contains hidden or 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
| location / { | |
| proxy_pass http://127.0.0.1:9000; | |
| } | |
| location /api { | |
| proxy_pass_header Set-Cookie; | |
| proxy_pass https://XXXXXXX/api; | |
| } | |
| location /realtime { |
This file contains hidden or 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
| _.extend(Backbone.View.prototype, { | |
| serialize: function () {}, | |
| beforeRender: function () {}, | |
| afterRender: function () {}, | |
| render: function (where) { | |
| var tmp, that; | |
| this.beforeRender(); | |
| // @note assume template always set with tpl property |
This file contains hidden or 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
| define([], function () { | |
| return { | |
| bindTo: function(model, key){ | |
| return { | |
| value: model.get(key), | |
| requestChange: function(value){ | |
| model.set(key, value); | |
| }.bind(this) | |
| } | |
| } |
This file contains hidden or 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 | |
| /** | |
| * | |
| */ | |
| class PagedResourceQuery | |
| { | |
| public static $cachedQueries = array(); |
This file contains hidden or 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 | |
| SESSION_NAME="JS" | |
| cd ~/Documents/work/project/app | |
| tmux has-session -t ${SESSION_NAME} | |
| if [ $? != 0 ] | |
| then | |
| tmux -2 new-session -d -s ${SESSION_NAME} -n 'CODE' |
This file contains hidden or 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
| function get_post_thumbnail($name){ | |
| if (!estimate_its_tablet()) { | |
| the_post_thumbnail('mobile-'.$name); | |
| return ; | |
| } else { | |
| the_post_thumbnail('tablet-'.$name); | |
| return ; | |
| } | |
| the_post_thumbnail($name); | |
| } |
This file contains hidden or 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
| AbstractModalDialog += { | |
| initialize: function () { | |
| this.resolution: new Deferred(); | |
| } | |
| accept: function () { | |
| throw new Error('implement me'); | |
| }, | |
| reject: function () { | |
| throw new Error('implement me'); | |
| } |