Skip to content

Instantly share code, notes, and snippets.

View BLamy's full-sized avatar

Brett Lamy BLamy

View GitHub Profile
@BLamy
BLamy / designer.html
Last active August 29, 2015 14:14
designer
<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">
@BLamy
BLamy / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@BLamy
BLamy / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.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">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element">
@BLamy
BLamy / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="components/polymer/polymer.html">
<link rel="import" href="/bower_components/core-iconset-svg/core-iconset-svg.html">
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,500italic" rel="stylesheet" type="text/css">
<polymer-element name="my-element">
<template>
<style>
@BLamy
BLamy / designer.html
Last active December 7, 2015 20:16
designer
<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">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../cool-clock/cool-clock.html">
'use strict';
const electron = require('electron');
const app = electron.app;
const globalShortcut = electron.globalShortcut;
// report crashes to the Electron project
require('crash-reporter').start();
// adds debug features like hotkeys for triggering dev tools and reload
require('electron-debug')();
@BLamy
BLamy / designer.html
Last active December 16, 2015 17:57
designer
<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">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../google-map/google-map.html">
[{
"name": "red",
"key": "red",
"android": "red",
"shades": {
"50": {
"hex": "#ffebee",
"contrast": "black"
},
"100": {
<?php
echo "<h1> #1 - Standard indexed Array</h1>";
$array1 = array(55, 66, 77, 88);
$array1[] = 99;
$array1[0] = 11;
for ($i = 0; $i < count($array1); $i++) {
echo $array1[$i]."<br />";
}
@BLamy
BLamy / ramda_where_types.js
Last active October 31, 2016 00:43
Ramda Where Types
const { where, equals, gt, is, pipe, __, curry, tryCatch, either } = require('ramda');
const enforceType = curry((pred, obj) => {
if (pred(obj)) return obj;
throw new Error();
});
const catchTypeError = tryCatch(__, (err, obj) => void 0);
const gaurdedFn = (typePredicate, fn) => catchTypeError(