time.google.com
time1.google.com
time2.google.com
time3.google.com
| to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
| stun: | |
| stun.l.google.com:19302, | |
| stun1.l.google.com:19302, | |
| stun2.l.google.com:19302, | |
| stun3.l.google.com:19302, | |
| stun4.l.google.com:19302, | |
| stun.ekiga.net, | |
| stun.ideasip.com, |
| // connect() is a function that injects Redux-related props into your component. | |
| // You can inject data and callbacks that change that data by dispatching actions. | |
| function connect(mapStateToProps, mapDispatchToProps) { | |
| // It lets us inject component as the last step so people can use it as a decorator. | |
| // Generally you don't need to worry about it. | |
| return function (WrappedComponent) { | |
| // It returns a component | |
| return class extends React.Component { | |
| render() { | |
| return ( |
This Gist is about how I use PyAudio, NumPy, and Matplotlib to plot freqency spectrum of system sound or microphone.
You can read this blog post for more detail or watch this video:
| // | |
| // NSURL+FavoritesList.h | |
| // FavoritesListTester | |
| // | |
| // Appends the URL to the end of the Favorite Items or Favorite Volumes list | |
| // (found in the side bar of Finder windows and open/save dialogs, etc.) | |
| // | |
| // Notes: | |
| // | |
| // 1. Must be a file URL. |
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <section> | |
| <video> controls autoplay width="1920"></video> | |
| </section> | |
| <script type="text/javascript"> | |
| var buffer; |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| var Promise = require('bluebird'), | |
| User = require('./user'), | |
| knex, query; | |
| knex = User.prototype._builder(User.prototype.tableName); | |
| query = function (q) { | |
| q.distinct() | |
| .innerJoin('orders', function () { | |
| this.on('users.id', '=', 'orders.user_id') |
| // This our standard require js bootstrap file. It assumes you are using the | |
| // require-jquery.js file that require.js provides | |
| // Set the require.js configuration for the application | |
| require.config({ | |
| // Base path used to load scripts | |
| baseUrl: 'js/', | |
| // Prevent caching during dev | |
| urlArgs: "bust=" + (new Date()).getTime(), |