Skip to content

Instantly share code, notes, and snippets.

View iheart2code's full-sized avatar

Jeremy White iheart2code

View GitHub Profile
var fs = require('fs');
module.exports = function(searchPath, searchExtension, callback)
{
fs.readdir(searchPath, function(err, list)
{
if (err)
{
return callback(err);
}
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style shim-shadowdom>
:host {
position: absolute;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/iconsets/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
@iheart2code
iheart2code / gist:a855795d9aacfe23a9e2
Created August 18, 2014 22:12
Plug.dj Non-crappy UX
// credit
// Most of this is copied from https://github.com/WouterG/PlugDJ-Development/blob/master/Fullscreen-Video.js
// source
(function(){
function fullVideo() {
//select the first element inside '#playback'
//and the first element in '#playback-container'
$('#playback:first, #playback-container:first')
W, [2015-03-23T15:27:05.464161 #3046] WARN -- : #<Unicorn::HttpServer:0x007f1b835a98d0>: worker (pid: 3046) exceeds memory limit (308391936 bytes > 250695080 bytes)
W, [2015-03-23T15:27:05.464302 #3046] WARN -- : Unicorn::WorkerKiller send SIGQUIT (pid: 3046) alive: 2250624 sec (trial 1)
I, [2015-03-23T15:27:07.770265 #17674] INFO -- : reaped #<Process::Status: pid 3046 exit 0> worker=2
I, [2015-03-23T15:27:07.930956 #10137] INFO -- : worker=2 ready
I, [2015-03-23T15:58:09.057701 #17674] INFO -- : reaped #<Process::Status: pid 16645 exit 0> worker=7
I, [2015-03-23T15:58:09.058160 #17674] INFO -- : reaped #<Process::Status: pid 30921 exit 0> worker=4
I, [2015-03-23T15:58:09.259278 #17674] INFO -- : reaped #<Process::Status: pid 2795 exit 0> worker=8
I, [2015-03-23T15:58:09.259437 #17674] INFO -- : reaped #<Process::Status: pid 32065 exit 0> worker=5
I, [2015-03-23T15:58:09.359757 #17674] INFO -- : reaped #<Process::Status: pid 12413 exit 0> worker=6
I, [2015-03-23T15:58:09.760963 #17674] INFO -- : re
@iheart2code
iheart2code / .gitlab-ci.yml
Last active April 29, 2019 10:04
.gitlab-ci.yml for Xcode project
stages:
- build
build_code:
stage: build
script:
- xcodebuild clean -project TestProject.xcodeproj -scheme TestProject | xcpretty
- xcodebuild test -project TestProject.xcodeproj -scheme TestProject | xcpretty -c && exit ${PIPESTATUS[0]}
tags:
- ios
FROM balenalib/%%BALENA_ARCH%%-debian-node:10.16-jessie-build as build
COPY package*.json ./
RUN npm ci --only=production
FROM balenalib/%%BALENA_ARCH%%-debian-node:10.16-jessie-run
ENV INITSYSTEM=on