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
diff --git a/app/assets/javascripts/helpers/popper.js b/app/assets/javascripts/helpers/popper.js | |
index 9225d0cb6..6bace86df 100644 | |
--- a/app/assets/javascripts/helpers/popper.js | |
+++ b/app/assets/javascripts/helpers/popper.js | |
@@ -1170,7 +1170,14 @@ const isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); | |
* @returns {Object} The data object, properly modified | |
*/ | |
function computeStyle(data, options) { | |
- const { x, y } = options; | |
+ var placement = data.placement.split('-')[0] |
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
// You need to get a new value based on the value of another variable, | |
// an if statement could get a bit messy so you might use a switch: | |
let someVariable; | |
switch (type) { | |
case 'bla': | |
someVariable 'someValue'; | |
break; | |
… | |
} | |
// This syntax is a bit of a bother, first having to define the variable and |
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
diff --git a/app/lib/views/sidebar-module.js b/app/lib/views/sidebar-module.js | |
index 64b92e9..8615822 100644 | |
--- a/app/lib/views/sidebar-module.js | |
+++ b/app/lib/views/sidebar-module.js | |
@@ -132,6 +132,7 @@ SidebarModule = module.exports = View.extend({ | |
no_items : this.getCount() === 0, | |
iconClassName : this.iconClassName, | |
more : !!(this.moreText && this.moreLink), | |
+ externalMore : this.moreLink && this.moreLink.indexOf('/') !== 0, | |
moreText : this.moreText, |
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 standup { | |
if [ $1 ]; then dayno=$1; else dayno='1'; fi | |
git log --author=marco --since=$dayno.days --until 06:00 --all --reverse --format="%Cblue%h%Creset %s %Cgreen %cr" | |
} |
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
## Argument usage: | |
## ruby pivotalthings [url] [p/t] [beta] | |
## url = path to pivotal ticket | |
## p = make a project | |
## t = make only a todo | |
## beta = add beta to the end of the command line to use Things beta if installed | |
require "appscript" | |
include Appscript | |
require "Curb" |
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 parseOutliner($url) { | |
$content=file_get_contents($url); | |
$content=simplexml_load_string($content); | |
$title=$content->head->title; | |
$content=$content->body->outline; | |
foreach ($content as $item) { | |
$titleHTML=preg_replace('! <(http.*?)>!','<a class="ref" href="$1">@</a>',$item['text']); | |
$return.='<h2>'.$titleHTML.'</h2>'; |