Skip to content

Instantly share code, notes, and snippets.

View palcisto's full-sized avatar

Patrick Alcisto palcisto

View GitHub Profile
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@palcisto
palcisto / myform.js
Last active June 25, 2017 19:39
basic react form
import { Component } from 'react';
import {
Firstname,
Middlename,
Lastname,
Suffix,
Title
} from './molecules';
const defaultProps = {
@palcisto
palcisto / angular-filter.js
Created February 25, 2016 17:37
Angular Filter Boilerplate
(function() {
'use strict';
angular
.module('', [])
.filter('filterName', filterName);
filterName.$inject = [];
function filterName() {
@palcisto
palcisto / angular-directive.js
Created February 25, 2016 17:23
Angular Directive Boilerplate
(function() {
'use strict';
angular
.module('', [])
.directive('xxDirectiveName', xxDirectiveName)
.controller('DirectiveNameController', DirectiveNameController);
xxDirectiveName.$inject = [];
@palcisto
palcisto / angular-controller.js
Last active October 27, 2017 20:44
Angular Controller Boilerplate
(function() {
'use strict';
angular
.module('', [])
.controller('ControllerName', ControllerName);
ControllerName.$inject = [];
function ControllerName(argument) {
@palcisto
palcisto / angular-factory.js
Last active April 15, 2016 17:53
Angular Factory Boilerplate
(function() {
'use strict';
angular
.module('', [])
.factory('serviceName', serviceName);
serviceName.$inject = [];
function serviceName() {
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>I'm in a React app!</title>
<style>
html {
box-sizing: border-box;
}