Some Notes:
- Need to import
take
anddo
fromrxjs
. - Use
snapeshotChanges()
instead ofvalueChanges()
take(1)
so you do not end up in an infinite loop since you are editing the same object you are reading- DO NOT FORGET
.subscribe()
at the end.
// src/setupProxy.js | |
const proxy = require('http-proxy-middleware') | |
const pkg = require('../package.json') | |
const target = process.env.PROXY || pkg.proxy | |
// tslint:disable-next-line:no-console | |
console.log("setupProxy",target); | |
module.exports = function(app) { | |
// app.use(proxy({ target })); | |
app.use(proxy('/api', { |
/** | |
If you Ever receive the following error from AWS Elastic Beanstalk: | |
"com.amazonaws.services.elasticbeanstalk.model.TooManyApplicationVersionsException: | |
You cannot have more than 1000 Application Versions. Either remove some Application Versions or request a limit increase. " | |
And you want to delete several versions at once but don't want to click all day, open the JavaScript console and script it! | |
Probably a way to script it using AWS CLI... | |
*/ | |
var cb = document.querySelectorAll("input[type=checkbox]"); | |
for(var e = 1; e < 100; e++){ cb[cb.length-e].click(); } |
import React from "react" | |
import { DragDropContainer } from 'react-drag-drop-container'; | |
import { Resizable, ResizableBox } from 'react-resizable'; | |
export default class DragAndResize extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
noDragging:false, | |
clipperWidth:100, |
Some Notes:
take
and do
from rxjs
.snapeshotChanges()
instead of valueChanges()
take(1)
so you do not end up in an infinite loop since you are editing the same object you are reading.subscribe()
at the end.Install FFMPEG Mac
$ brew install ffmpeg
""" | |
https://api.slack.com/incoming-webhooks#sending_messages | |
{ | |
"text":"Read <https://api.slack.com/incoming-webhooks#sending_messages|Send Slack Message> for more details @slackuser #general" | |
"link_names": 1 | |
} | |
""" | |
import requests,json | |
def slack_message(message_text=None,payload_obj=None,slack_url=None): | |
if(not slack_url): |
// ==UserScript== | |
// @name Wired Easy Read | |
// @namespace samuelstevens9 | |
// @include https://www.wired.com/story/* | |
// @include https://www.wired.com/\d+?/\d+?/.* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var arts = document.getElementsByTagName('article'); | |
var bge = document.createElement('div'); |