Skip to content

Instantly share code, notes, and snippets.

View kmturley's full-sized avatar

Kim T kmturley

View GitHub Profile
The system is: Linux - 5.10.76-linuxkit - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/x86_64-w64-mingw32/bin/cc
Build flags:
Id flags:
The output was:
0
The target system is: Darwin - - x86_64
The host system is: Linux - 5.10.76-linuxkit - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/osxcross/bin/../bin/o64-clang
Build flags:
Id flags:
The output was:
0
The system is: Linux - 5.10.76-linuxkit - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:
The output was:
0
#!/usr/bin/env bash
# Usage:
# bash stats.sh ./directory
# bash stats.sh ./directory > stats.log
(
# Find number of children
find $1 -maxdepth 1 -type d -print0 | while read -d '' -r dir; do num=$(find $dir -ls | wc -l); printf "%5d %s\n" "$num" "$dir"; done
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@kmturley
kmturley / app.component.html
Created May 21, 2018 21:32
Angular 6 + Firebase Reactive Forms
<form [formGroup]="form">
<input class="input" type="text" formControlName="title" (change)="save()" /><br/>
<input class="input" type="text" formControlName="content" (change)="save()" />
</form>
[{
"origin": "http://example.com",
"effective_connection_type": {
"name": "4G"
},
"form_factor": {
"name": "desktop"
},
"first_paint": {
"histogram": {
/* 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 November 10, 2015 16:45
Extending video editor functionality
//
// 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';