This file contains hidden or 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
//I set to the window event to make sure it stays available. This is handy in many applications that may need to wait. | |
window.image1 = document.getElementById('img1'); | |
window.image2 = document.getElementById('img2'); | |
window.canv1 = document.getElementById('canv1'); | |
window.canv2 = document.getElementById('canv2'); | |
window.ctx1 = window.canv1.getContext('2d'); | |
window.ctx2 = window.canv2.getContext('2d'); | |
window.imagesLoaded = 0; | |
//load the images |
This file contains hidden or 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
// WARNING: SIDE-EFFECTS. ONLY FOR PROD VERSION | |
if (!__DEV__) { | |
require('./utils/log.js'); | |
} | |
// SIDE-EFFECTS END |
This file contains hidden or 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
$scope.animations.push({ | |
opacity: [0, 1], | |
ease: 'easeInOutExpo', | |
duration: 1000, | |
delay: 500, | |
animation: [ | |
{ | |
class: ".card-orange", | |
order: 1, | |
duration: 1500, |
This file contains hidden or 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 animate=function(){var h=function(a){var b=a.length;return function d(){for(var e=arguments.length,f=Array(e),g=0;g<e;g++)f[g]=arguments[g];return f.length<b?function(){for(var a=arguments.length,b=Array(a),e=0;e<a;e++)b[e]=arguments[e];return d.apply(void 0,f.concat(b))}:a.apply(void 0,f)}},p=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return function(a){return b.reduce(function(a,b){return b(a)},a)}},q=function(a){return function(){return!a.apply(void 0,arguments)}}, | |
E={linear:function(a,b,c,d){return b+a/d*c},easeInQuad:function(a,b,c,d){return c*(a/=d)*a+b},easeInCubic:function(a,b,c,d){return c*(a/=d)*a*a+b},easeInQuart:function(a,b,c,d){return c*(a/=d)*a*a*a+b},easeInQuint:function(a,b,c,d){return c*(a/=d)*a*a*a*a+b},easeInSine:function(a,b,c,d){return-c*Math.cos(a/d*(Math.PI/2))+c+b},easeInExpo:function(a,b,c,d){return 0==a?b:c*Math.pow(2,10*(a/d-1))+b},easeInCirc:function(a,b,c,d){return-c*(Math.sqrt(1-(a/=d)*a)-1)+b},easeInElastic:function(a,b,c,d){var e= | |
4>=arg |
This file contains hidden or 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
<?php | |
include_once "library/OAuthStore.php"; | |
include_once "library/OAuthRequester.php"; | |
define("FREEDCAMP_CONSUMER_KEY", "1b5e530401b5781036b0dc95aaa6be03"); // | |
define("FREEDCAMP_CONSUMER_SECRET", "5a7d79f187625cf789c1448404b0026d"); // | |
define("FREEDCAMP_OAUTH_HOST", "https://freedcamp.com/api"); | |
define("FREEDCAMP_REQUEST_TOKEN_URL", FREEDCAMP_OAUTH_HOST . "/request_token"); |
This file contains hidden or 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 apps = {'2': 'Tasks', '19': 'Events', '4': 'Milestones', '13': 'Issues', '16': 'c_item_crm_task_title_plural'}; | |
var app_data = { | |
'19': [], | |
'2': [ | |
{ | |
'type': 'todo', | |
'e_type': 'e_td', | |
'type_title': 'Task', | |
'id': '3018', | |
'title': 'Completed today', |
This file contains hidden or 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
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
Following are the changes that I made to make it work. | |
$ sudo apt-get update | |
$ sudo apt-get install lirc | |
# Add the following lines to /etc/modules file | |
lirc_dev | |
lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
This file contains hidden or 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
<!DOCTYPE html> <!-- What type of document type? Html of course! --> | |
<html> <!-- Our html element holds all the html we'll need --> | |
<head> <!-- the Head holds the meta information such as the title --> | |
<title> <!-- What shows up in the browser's tab name --> | |
Title | |
</title> | |
</head> | |
<body> <!-- ALL our visible html code goes here --> | |
</body> |
This file contains hidden or 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
http://javascript-roadtrip.codeschool.com/levels/1/challenges/2 | |
https://www.codecademy.com/courses/getting-started-v2/0/1?curriculum_id=506324b3a7dffd00020bf661 | |
https://www.freecodecamp.org/challenges/comment-your-javascript-code |
This file contains hidden or 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
http://x.co/synergydl |