in OS X 10.4 to macOS sierra 10.12 and maybe higher!
Copy this entire code block and paste it into your terminal and push Return to create this file for you with correct permissions. It will (probably) ask for your password:
in OS X 10.4 to macOS sierra 10.12 and maybe higher!
Copy this entire code block and paste it into your terminal and push Return to create this file for you with correct permissions. It will (probably) ask for your password:
| #!/bin/bash | |
| # | |
| # This script will convert a Meteor application into a Node.js application | |
| # then deploy it to AWS Elastic Beanstalk. | |
| # | |
| # Run like `deploy_aws.sh my_eb_app my_eb_app-production`. | |
| # | |
| # That will deploy the Meteor application containing this script | |
| # to the `my_eb_app-production` environment of the `my_eb_app` EB application. |
| // License: MIT, feel free to use it! | |
| const Intercom = require('intercom-client'); | |
| const appId = 'APP_ID' | |
| const apiKey = 'APP_KEY' | |
| const client = new Intercom.Client(appId, apiKey); | |
| const async = require('async-q') | |
| //REF: https://developers.intercom.com/reference#iterating-over-all-users | |
| //WARNING: you can only have one scroll working at once. you need to wait for that scroll to clear to try again |
| .force-show-scrollbars ::-webkit-scrollbar-track:vertical { | |
| border-left: 1px solid #E7E7E7; | |
| box-shadow: 1px 0 1px 0 #F6F6F6 inset, -1px 0 1px 0 #F6F6F6 inset; | |
| } | |
| .force-show-scrollbars ::-webkit-scrollbar-track:horizontal { | |
| border-top: 1px solid #E7E7E7; | |
| box-shadow: 0 1px 1px 0 #F6F6F6 inset, 0 -1px 1px 0 #F6F6F6 inset; | |
| } |
| const lag = true; | |
| const waitingTime = 400; | |
| Meteor.startup(function() { | |
| if (!lag) return; | |
| const rootUrl = process.env.ROOT_URL; | |
| if (rootUrl !== 'http://localhost:3000/') { | |
| return; | |
| } else { |
| process.env.APP_ID | |
| process.env.APP_MONGO | |
| process.env.AUTOUPDATE_VERSION | |
| process.env.BIND_IP | |
| process.env.CONSTRAINT_SOLVER_BENCHMARK | |
| process.env.DDP_DEFAULT_CONNECTION_URL | |
| process.env.DEPLOY_DOMAIN | |
| process.env.DEPLOY_HOSTNAME | |
| process.env.DISABLE_WEBSOCKETS | |
| process.env.DISCOVERY_PORT |
| /** | |
| * Simple userland CPU profiler using v8-profiler | |
| * Usage: require('[path_to]/CpuProfiler').init('datadir') | |
| * | |
| * @module CpuProfiler | |
| * @type {exports} | |
| */ | |
| var fs = require('fs'); | |
| var profiler = require('v8-profiler'); |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't
| .git |
| configureDragDrop(registerType) { | |
| var imageThreshold = Math.max(120, window.innerHeight / 4), | |
| sectionThreshold = Math.max(140, window.innerHeight / 4), | |
| currentDY = 0, | |
| frame; | |
| function makeScrollingHandler(threshold) { | |
| function getScrollDY(clientY) { | |
| var speed; | |
| if (clientY < threshold) { |