Skip to content

Instantly share code, notes, and snippets.

View recs182's full-sized avatar
🏠
Working from home

Renan Cardoso Soares recs182

🏠
Working from home
View GitHub Profile
@recs182
recs182 / SqlTransactions.js
Last active August 6, 2018 18:13
Promise WebSQL
class SqlTransactions{
constructor(database, _Promise){
this.database = database;
this.Promise = _Promise;
this.stack = Array();
}
query(query, bindings = Array()){
@recs182
recs182 / awsphp70ssl.md
Last active April 25, 2018 12:29
AWS EC2 PHP70 + Let's Encrypt + Certbot

It assumes your instance is clean, if you already have another version of apache/php, you'll need to clean it first


PHP 7.0

  • yum install php70
  • yum install php70-gd
  • yum install php70-mysqlnd
  • yum install php70-zip
  • yum install mod24_ssl
@recs182
recs182 / directive.js
Created August 29, 2017 17:34
Scroll horizontally AngularJS
angular.module('app', [])
.directive('dScrollHorizontally', function(){
return {
restrict: 'A',
link: function(scope, elem, attr){
scope.scrollToRight = function(){
elem[0].scrollLeft += Number(attr.dScrollHorizontally);
}
scope.scrollToLeft = function(){