Skip to content

Instantly share code, notes, and snippets.

@mirkonasato
mirkonasato / cat-srt.js
Last active November 21, 2016 19:10
Concatenates multiple srt files together, adjusting the times
#!/usr/bin/env node
//
// Concatenates multiple srt files together, adjusting the times
//
// Requires ffprobe and an mp4 file along with each srt file to calculate time offsets
//
// Usage: cat-srt.js video1.srt video2.srt video3.srt output.srt
//
const fs = require('fs');
const path = require('path');
diff --git a/package.json b/package.json
index 7f9f117..293b4eb 100644
--- a/package.json
+++ b/package.json
@@ -15,25 +15,29 @@
"dependencies": {
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
+ "@angular/compiler-cli": "2.1.1",
"@angular/core": "2.1.1",
diff --git a/src/bundle.ts b/src/bundle.ts
index a99651e..b995701 100644
--- a/src/bundle.ts
+++ b/src/bundle.ts
@@ -35,6 +35,9 @@ export function bundleUpdate(event: string, path: string, context: BuildContext,
}
+// used to track the cache for subsequent bundles
+let bundleCache: RollupBundle = null;
@mirkonasato
mirkonasato / angular2-starter.md
Last active April 12, 2017 19:08
Angular 2 with Webpack Project Setup - Code Snippets
@mirkonasato
mirkonasato / app.js
Last active March 22, 2017 07:12
Example of Angular service using ngCordova GeoLocation
(function() {
var app = angular.module('app', ['ionic', 'ngCordova']);
app.factory('GeoService', function($ionicPlatform, $cordovaGeolocation) {
var positionOptions = {timeout: 10000, enableHighAccuracy: true};
return {
getPosition: function() {
@mirkonasato
mirkonasato / signalign
Last active April 23, 2020 12:14
Sign and align an Android APK
#!/bin/sh
#
# Automates signing and aligning Android APKs as per
# http://developer.android.com/tools/publishing/app-signing.html#signing-manually
#
# USAGE: signalign platforms/android/build/outputs/apk/android-release-unsigned.apk
#
set -e
# configure the next two properties for your own certificate