This file contains hidden or 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
| package com.sam016.vsflatomation.service.ble; | |
| import java.util.HashMap; | |
| import java.util.UUID; | |
| public class AllGattCharacteristics { | |
| private static HashMap<String, String> attributes = new HashMap(); | |
| static { | |
| attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name"); |
This file contains hidden or 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
| # Dockerfile for react.js app and nginx | |
| # build environment | |
| FROM node:8-alpine as builder | |
| WORKDIR /usr/src/app | |
| ENV PATH /usr/src/app/node_modules/.bin:$PATH | |
| COPY package.json /usr/src/app/package.json | |
| RUN npm install | |
| COPY . /usr/src/app | |
| RUN npm run build --loglevel verbose |
This file contains hidden or 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
| // pulled from SO http://stackoverflow.com/questions/6393943/convert-javascript-string-in-dot-notation-into-an-object-reference | |
| // NOTE: Array.reduce() may not be available in older browsers | |
| function index(obj,i) {return obj[i]} | |
| 'a.b.etc'.split('.').reduce(index, obj); | |
| var obj = {a:{b:{etc:5}}}; | |
| index(obj,'a.b.etc'); |
This file contains hidden or 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
| RUN curl -o ioncube.tar.gz http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \ | |
| && tar -xvvzf ioncube.tar.gz \ | |
| && mv ioncube/ioncube_loader_lin_5.6.so `php-config --extension-dir` \ | |
| && rm -Rf ioncube.tar.gz ioncube \ | |
| && docker-php-ext-enable ioncube_loader_lin_5.6 |
This file contains hidden or 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
| function getFnName(fn) { | |
| var f = typeof fn == 'function'; | |
| var s = f && ((fn.name && ['', fn.name]) || fn.toString().match(/function ([^\(]+)/)); | |
| return (!f && 'not a function') || (s && s[1] || 'anonymous'); | |
| } | |
| console.log(getFnName(String)); // 'String' | |
| console.log(getFnName(function test(){})); // 'test' | |
| console.log(getFnName(function (){})); // 'anonymous' |
This file contains hidden or 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
| /* Place this after bootstrap.scss */ | |
| $screen-xl: 1560px !default; | |
| $screen-xl-min: $screen-xl !default; | |
| $screen-xl-desktop: $screen-xl-min !default; | |
| $screen-lg-max: ($screen-xl-min - 1) !default; | |
| $container-xlarge-desktop: (1530px + $grid-gutter-width) !default; | |
| $container-xl: $container-xlarge-desktop !default; | |
| .container { |
This file contains hidden or 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
| <snippet> | |
| <content><![CDATA[ | |
| <!-- begin $1 --> | |
| <div class="$1"> | |
| $2 | |
| </div> | |
| <!-- end $1 --> | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>di</tabTrigger> |