Skip to content

Instantly share code, notes, and snippets.

View agrublev's full-sized avatar
💭
Always moving forward

Angel Grablev agrublev

💭
Always moving forward
View GitHub Profile
//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
@agrublev
agrublev / app.js
Created September 14, 2017 04:18 — forked from ColCh/app.js
catch errors and send 'em to Crashlytics in React Native
// WARNING: SIDE-EFFECTS. ONLY FOR PROD VERSION
if (!__DEV__) {
require('./utils/log.js');
}
// SIDE-EFFECTS END
$scope.animations.push({
opacity: [0, 1],
ease: 'easeInOutExpo',
duration: 1000,
delay: 500,
animation: [
{
class: ".card-orange",
order: 1,
duration: 1500,
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
@agrublev
agrublev / auth.php
Created February 14, 2018 15:59
AUUTH O AUTH
<?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");
@agrublev
agrublev / home_data.js
Created February 23, 2018 22:20
Home Data
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',
@agrublev
agrublev / lirc-pi3.txt
Created March 15, 2018 15:41 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
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
@agrublev
agrublev / intro.html
Last active April 10, 2018 14:23
1- intro html
<!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>
@agrublev
agrublev / JS TUTORIALS
Last active April 20, 2018 04:29
JS TUTORIALS
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
@agrublev
agrublev / fixSynergy.txt
Created June 4, 2018 19:53
Synergy 1.8.8 Fixes the Mouse Erratic Movement up issue!!
http://x.co/synergydl