Skip to content

Instantly share code, notes, and snippets.

Kim T kmturley

Block or report user

Report or block kmturley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kmturley
kmturley / app.component.html
Created May 21, 2018
Angular 6 + Firebase Reactive Forms
View app.component.html
<form [formGroup]="form">
<input class="input" type="text" formControlName="title" (change)="save()" /><br/>
<input class="input" type="text" formControlName="content" (change)="save()" />
</form>
View example.json
[{
"origin": "http://example.com",
"effective_connection_type": {
"name": "4G"
},
"form_factor": {
"name": "desktop"
},
"first_paint": {
"histogram": {
View ng-ScrollSpy.js support for custom element
/* ng-ScrollSpy.js v3.2.1
* https://github.com/patrickmarabeas/ng-ScrollSpy.js
*
* Copyright 2014, Patrick Marabeas http://marabeas.io
* Released under the MIT license
* http://opensource.org/licenses/mit-license.php
*
* Date: 31/01/2015
*/
@kmturley
kmturley / VideoEditor.js
Created Nov 10, 2015
Extending video editor functionality
View VideoEditor.js
//
// VideoEditor.js
//
// Created by Josh Bavari on 01-14-2014
// Modified by Ross Martin on 01-29-15
//
var exec = require('cordova/exec'),
pluginName = 'VideoEditor';
@kmturley
kmturley / FfmpegController.java
Created Nov 10, 2015
Extending video editor functionality
View FfmpegController.java
package org.ffmpeg.android;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
@kmturley
kmturley / VideoEditor.java
Created Nov 10, 2015
Extending video editor plugin functionality
View VideoEditor.java
package org.apache.cordova.videoeditor;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.net.URLDecoder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
@kmturley
kmturley / data-functions.js
Created May 12, 2015
Re-written date functions to not use eval()
View data-functions.js
/*
* Copyright (C) 2004 Baron Schwartz <baron at sequent dot org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, version 2.1.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
You can’t perform that action at this time.