Making pixelated effect with Amplify Impostors
Videos:
In my example I used this assets:
-- WebcamReload v1.1 | |
-- A simple Lua script to reload your OBS Studio video source (webcam, other UVC sources...) every x minutes. | |
-- From FlyingFathead (https://github.com/FlyingFathead) | |
-- For years, OBS has had a problem where UVC video sources (such as USB webcams) are freezing up intermittently. | |
-- This is "somewhat-of-a-workaround" script to reload a USB video source such as a UVC webcam to prevent freezes. | |
-- I've ran this in Ubuntu 22.04 & OBS Studio 29.0.2, and it's been working well with a dual webcam setup. | |
-- Note that you need one script per video source that needs to be reloaded. |
Videos:
In my example I used this assets:
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
function isItFriday() { | |
return new Date().getDay() === 5 ? | |
'It is!' : | |
'It is not.'; | |
} | |
function whenWillItBeFriday() { | |
var d = 5 - new Date().getDay(); | |
return d === 0 ? | |
'Right now!' : |
// set-up a connection between the client and the server | |
var socket = io.connect(); | |
// let's assume that the client page, once rendered, knows what room it wants to join | |
var room = "abc123"; | |
socket.on('connect', function() { | |
// Connected, let's sign-up for to receive messages for this room | |
socket.emit('room', room); | |
}); |
<script> | |
angular.directive('tj:focus', function(){ | |
return function(scope, element){ | |
element[0].focus(); | |
}; | |
}); | |
</script> | |
<div> | |
<input type="text" ng:model="model" tj:focus /> |
// Generates a URL-friendly "slug" from a provided string. | |
// For example: "This Is Great!!!" transforms into "this-is-great" | |
function generateSlug (value) { | |
// 1) convert to lowercase | |
// 2) remove dashes and pluses | |
// 3) replace spaces with dashes | |
// 4) remove everything but alphanumeric characters and dashes | |
return value.toLowerCase().replace(/-+/g, '').replace(/\s+/g, '-').replace(/[^a-z0-9-]/g, ''); | |
}; |
# These are my notes from the PragProg book on CoffeeScript of things that either | |
# aren't in the main CS language reference or I didn't pick them up there. I wrote | |
# them down before I forgot, and put it here for others but mainly as a reference for | |
# myself. | |
# assign arguments in constructor to properties of the same name: | |
class Thingie | |
constructor: (@name, @url) -> | |
# is the same as: |
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |