This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const fs = require('fs') | |
const path = require('path') | |
const { sync: resolveSync } = require('resolve') | |
const acornLoose = require('acorn-loose') | |
const walk = require('acorn-walk') | |
const resolveImportSourcePathSync = (filePath, importSource) => { | |
return resolveSync(importSource, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("myApp").directive("autoGrow", function(){ | |
return function(scope, element, attr){ | |
var update = function(){ | |
element.css("height", "auto"); | |
var height = element[0].scrollHeight; | |
if(height > 0){ | |
element.css("height", height + "px"); | |
} | |
}; | |
scope.$watch(attr.ngModel, function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* GAnalytics - Google Analytics PHP Interface for Code Igniter | |
* Uses google php api https://github.com/google/google-api-php-client | |
* | |
* Support material: | |
* How to set-up the app and configure the analytics profile http://stackoverflow.com/a/10089698/1666071 | |
* Analytics query explorer http://ga-dev-tools.appspot.com/explorer/ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import httpAdapter from 'axios/lib/adapters/http' | |
import { API_URL } from '../src/config/environment' | |
axios.defaults.host = API_URL | |
axios.defaults.adapter = httpAdapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
ENV AUDIO_PATH '/proc/asound/card0/pcm0p/sub0/status' | |
ENV ENDPOINT_ON 'http://localhost:1880/amp/on' | |
ENV ENDPOINT_OFF 'http://localhost:1880/amp/off' | |
COPY . /usr/src/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"printWidth": 100, | |
"tabWidth": 2, | |
"singleQuote": true, | |
"trailingComma": "es5", | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false, | |
"parser": "babylon", | |
"semi": false, | |
"arrowParens": "always" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = enapupe@gmail.com | |
name = enapupe | |
[push] | |
default = current | |
[core] | |
excludesfile = ~/.gitignore_global | |
pager = diff-so-fancy | less --tabs=4 -RFX | |
editor = subl -n -w | |
[alias] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = {"building": [ | |
{ | |
"volume": 3338.91764606872, | |
"perimeter": 137.87671346974363, | |
"points": [ | |
[ | |
78.7396821640909, | |
106.35271207241327, | |
0 | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_settings_config { | |
var $group = "enapupe"; // defines setting groups (should be bespoke to your settings) | |
var $page_name = "enapupe"; // defines which pages settings will appear on. Either bespoke or media/discussion/reading etc | |
var $title = "Detrick"; // page title that is displayed | |
var $nav_title = "Detrick"; // how page is listed on left-hand Settings panel | |
var $sections = array( |
NewerOlder