brew install fswatch brew install coreutils
curl -o /usr/local/bin/docker-osx-dev https://raw.githubusercontent.com/brikis98/docker-osx-dev/master/src/docker-osx-dev chmod +x /usr/local/bin/docker-osx-dev docker-osx-dev install
| const webpack = require('webpack'); | |
| const externals = require('./config-externals'); | |
| const packageJson = require('./package.json'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| module.exports = { | |
| // The Webpack config to use when compiling your react app for development or production. | |
| webpack: function(config, env) { | |
| Following the installation for both of those packages on react native causes problems, since one is removing the framework path of the other. | |
| Framework Search params should look like this: https://imgur.com/a/09Mam | |
| https://github.com/invertase/react-native-firebase | |
| https://github.com/facebook/react-native-fbsdk | |
| using polyfill.io with the `unknown=polyfil` and with out `flags=gated` breaks react. |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title><hello-world></title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.js"></script> | |
| <!-- Imports polyfill --> | |
| <script src="../webcomponentsjs/webcomponents.min.js"></script> |
| function BinarySearch() { | |
| this.search = function (needle, haystack) { | |
| var middle = parseInt(haystack.length/2), | |
| compareAgainst = haystack[middle]; | |
| if(needle == compareAgainst) { return needle; } | |
| if(needle < compareAgainst) { return this.search(needle, haystack.slice(0, middle))} | |
| if(needle >= compareAgainst) { return this.search(needle, haystack.slice(middle))} | |
| return false; | |
| } |
brew install fswatch brew install coreutils
curl -o /usr/local/bin/docker-osx-dev https://raw.githubusercontent.com/brikis98/docker-osx-dev/master/src/docker-osx-dev chmod +x /usr/local/bin/docker-osx-dev docker-osx-dev install
| CREATE OR REPLACE FUNCTION decode_uuid(encoded_uuid text) RETURNS uuid AS $$ | |
| BEGIN | |
| RETURN uuid(encode(decode((encoded_uuid || '==') ,'base64'), 'hex')); | |
| END; | |
| $$ LANGUAGE plpgsql; | |
| -- usage | |
| SELECT * from ditto_entity where id = decode_uuid('mttF0tAFSbq1of1oFNfAJw'); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| var right = slate.operation("push", { | |
| "direction" : "right", | |
| "style" : "bar-resize:screenSizeX/2" | |
| }); | |
| var left = slate.operation("push", { | |
| "direction" : "left", | |
| "style" : "bar-resize:screenSizeX/2" | |
| }); |
| document.getElementsByClassName('Ya-sc-sa El-gg')[0].style.width="100%"; | |
| document.getElementsByClassName('Ya-sc-sa El-gg')[0].style.height="100%"; | |
| document.getElementsByClassName('Ya-sc-sa El-gg')[0].style.position="fixed"; | |
| document.getElementsByClassName('Ya-sc-sa El-gg')[0].style.top="0px"; |