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
import * as rootRequire from 'root-require'; | |
import * as cp from 'child_process'; | |
import * as fs from 'fs'; | |
const packageLockJSON = rootRequire('./package-lock.json'); | |
const packageJSON = rootRequire('./package.json'); | |
const versionFile = 'dist/assets/version.json'; | |
const orgPrefix = '@mhe' | |
const output = { |
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
1 | |
00:00:02,123 --> 00:00:04,123 | |
This is the first subtitle | |
2 | |
00:00:05,000 --> 00:00:08,000 | |
Another subtitle demonstrating tags: | |
<b>bold</b>, <i>italic</i>, <u>underlined</u> | |
<font color="#ff0000">red text</font> |
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
.sr-only { | |
position: absolute; | |
width: 1px; | |
height: 1px; | |
padding: 0; | |
margin: -1px; | |
overflow: hidden; | |
clip: rect(0,0,0,0); | |
border: 0; | |
} |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ['ember-component'] | |
}); |
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
function numToWords (num) { | |
var a = ['','one ','two ','three ','four ', 'five ','six ','seven ','eight ','nine ','ten ','eleven ','twelve ','thirteen ','fourteen ','fifteen ','sixteen ','seventeen ','eighteen ','nineteen ']; | |
var b = ['', '', 'twenty','thirty','forty','fifty', 'sixty','seventy','eighty','ninety']; | |
if ((num = num.toString()).length > 9) { | |
return 'num overflow'; | |
} | |
var n = ('000000000' + num).substr(-9).match(/^(\d{2})(\d{2})(\d{2})(\d{1})(\d{2})$/); | |
if (!n) return; | |
var str = ''; |
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
// taken from http://ng.malsup.com/#!/counting-watchers | |
(function countAngularWatchers(angular) { | |
var i, data, scope, | |
count = 0, | |
all = document.all, | |
len = all.length, | |
test = {}; | |
var mostWatchers = 0; |
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
<table border="0" cellpadding="0" cellspacing="0" class="ez-t-account"> | |
<thead> | |
<th colspan="2">A T-Account</th> | |
</thead> | |
<tbody> | |
<tr> | |
<td>$300<br>$1,200</td> | |
<td>$1,500</td> | |
</tr> | |
</tbody> |
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
yum install -y jenkins | |
yum install -y git | |
yum install -y nodejs | |
yum install -y npm | |
echo "Fix Node JS naming issue with a symlink" | |
ln -s /usr/bin/nodejs /usr/bin/node | |
#download jenkins CLI | |
wget http://localhost:6060/jnlpJars/jenkins-cli.jar |
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
:s/#each\s\v\zs(<\w*>)\sin\s(<(\w|.)*)>/\2 as |\1|/ |
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
// file: /server/proxies/products.js | |
// instead of a mock, i always want to hit the API for this endpoint... | |
module.exports = function(app) { | |
var url = require('url'); | |
var proxy = require('proxy-middleware'); | |
app.post("/api/products/*", proxy(url.parse('http://foo.bar.com/api/products'))); | |
}; |
NewerOlder