IETF standards:
The below SDP is recreated using the following steps:
- Participant A offers audio+video to Participant B
- B answers with audio+video
- Call connected.
- A renegotiates to remove audio, making it a video-only call from it's side
- calls getUserMedia with
{ audio: false, video: true }
- calls getUserMedia with
- removes all streams from the peer connection, and adds the stream from getUserMedia
This file contains 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
<span class="hide" id="cal-slide-tick"></span> | |
<div id="cal-slide-content"> | |
<ul class="unstyled"> | |
<% _.each(events, function(event){ %> | |
<li> | |
<span class="pull-left event <%= $(event).data('event-class') %>"></span> | |
<a href="<%= $(event).attr('href') %>" target="_blank" | |
data-event-id="<%= $(event).data('event-id') %>" | |
data-event-class="<%= $(event).data('event-class') %>" | |
class="event-item"> |
This file contains 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
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
rename = require('gulp-rename'), | |
notify = require('gulp-notify'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
markdown = require('gulp-markdown'), |
Purpose: I have a map application with a list of results from a query. When I click on one of the items in the result list, I wanted the map to zoom to the associated feature, and trigger a click that shows the result in a popup.
Library: ArcGIS JavaScript API
Version: tested on versions 3.9-3.13.
This file contains 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
const express = require("express") | |
const app = express() | |
const { Pool } = require("pg") | |
const SphericalMercator = require("sphericalmercator") | |
const pool = new Pool({ | |
host: "localhost", | |
port: 15432, | |
user: "postgres", | |
database: "postgres" | |
}) |
This file contains 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
var crypto = require('crypto'); | |
/** | |
* Generates and returns a Freshdesk Single Sign On URL | |
* {@link https://gist.github.com/derekseymour/26a6fe573c1274642976 Gist} | |
* | |
* @author Derek Seymour <derek@rocketideas.com> | |
* @param {String} name - The name of the user logging in. | |
* @param {String} email - A valid email address to associate with the user. |
So we got nexe to compile nodejs projects to an executable binary:
- it downloads the nodejs source
- it creates a single file nodejs source (using sardines )
- it monkey patches the nodejs code to include this single file in the binary (adding it to the lib/nexe.js)
$ nexe -i myproject.js -o myproject.bin -r 0.10.3
Caveats:
- I had an issue with unicode chars that got converted: it uses uglify.js and this needs to be configured to leave them alone
This file contains 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
--- | |
- hosts: servers | |
gather_facts: true | |
sudo: true | |
vars: | |
fail2ban_config_ignoreip: | |
- "127.0.0.1/8" | |
- "{{ ansible_ssh_host }}" |
This file contains 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 ctest | |
// #include <time.h> | |
// void wait(int usec) | |
// { | |
// usleep(usec); | |
// } | |
import "C" | |
import "time" |
OlderNewer