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
app.use(function (req, res, next){ | |
res.set('X-Powered-By', 'NameApplication'); | |
next(); | |
} |
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
#!/usr/bin/env node |
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
it "delete in an Array" , -> | |
element.all(By.repeater('a in Array.list')).count() | |
.then (@number_of_rows_before) -> | |
element.all(By.css('i.fa.fa-chevron-up')).last().click() | |
element.all(By.css('a.glyphicon.glyphicon-trash')).last().click() | |
.then () -> | |
waitForAlert() | |
.then () -> | |
browser.switchTo().alert().accept() |
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
handlebars.registerHelper 'json', (context) -> | |
JSON.stringify context | |
handlebars.registerHelper 'debug', (value) -> | |
console.log 'Current Context' | |
console.log '====================' | |
console.log this | |
if value | |
console.log 'Value' | |
console.log '====================' |
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
conditional = true | |
promises_list = [] | |
if conditional? | |
#if conditional is true run this promises | |
p.push Promise.conditional conditional | |
p.push Promise.normal | |
Promise.all 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
var supporting_docs; | |
if (claim_id) { | |
supporting_docs = supporting_docs.filter(function(cla) { | |
return cla.claim_id <= claim_id && (my_role === 'CLAIMANT' && cla.claim_status === 'SUBMITTED' ? cla.created_at < cla.claim_submitted_at : true); | |
}); | |
} |
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
{ | |
"extends": [ | |
"eslint:recommended", "plugin:react/recommended", "airbnb" | |
], | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true, | |
"mocha": true | |
}, |
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
$(event.currentTarget).on("keypress", function(event){ | |
if(event.keyCode ===13){ | |
var e = $.Event("focusout"); | |
$(event.currentTarget).trigger(e); | |
event.preventDefault; | |
return false; | |
} | |
}) |
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
#!/bin/sh | |
old=radjivC | |
new=radjivF | |
git remote -v | grep $old | while read name url type; do | |
newurl=`echo $url | sed -e "s/$old/$new/"` | |
git remote set-url $name $newurl | |
done |
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
{% comment %} | |
<!-- | |
Liquid will output content, split on h3s like this: | |
<div class="accordion"> | |
<h5><a href="#free-shipping" data-accordian-action>Free & Fast USA Shipping <span>+</span></a></h5> | |
<p id="free-shipping" data-accordian-target>All orders are shipped through USPS. We pride ourselves on fast delivery. Orders typically arrive within 2-5 business days. You will receive an email with tracking information when your order is ready to ship.</p> | |
<h5><a href="#international-shipping" data-accordian-action>International Shipping <span>+</span></a></h5> | |
<p id="international-shipping" data-accordian-target>International shipping rates vary based on item(s). Shipping rates can be seen on the checkout page. International orders typically arrive within 7-10 business days, but can vary with customs clearance in each country. </p> | |
</div> |