Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
🎿
Code web apps from the alps

Alex Duval xlanex6

🎿
Code web apps from the alps
View GitHub Profile
@xlanex6
xlanex6 / s3-dropzone-upload.php
Created July 19, 2019 05:50 — forked from mmoehrlein/s3-dropzone-upload.php
s3 upload with dropzone.js
View s3-dropzone-upload.php
<?php
// AWS data
$bucketName = "BUCKET-NAME";
$AWSAccessKeyId = "XXXXXXXXXXXXXXXXXXXX";
$AWSSecretAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$date = date("Y-m-d");
$dateISO = date("Ymd");
$validTill = date('Y-m-d\TH:i:s.000\Z', time() + (60 * 60 * 4)); // 4 hours
@xlanex6
xlanex6 / main.ts
Created April 4, 2019 10:19 — forked from tablekat/main.ts
Making gmail push notifications to webhook
View main.ts
import * as request from 'request';
import * as fs from 'fs';
import * as readline from 'readline';
var google = require('googleapis');
var googleAuth = require('google-auth-library');
/*************** STEPS
- made a project on https://console.cloud.google.com/cloudpubsub/topicList?project=testmabs thing?
@xlanex6
xlanex6 / _vue-rails.md
Created May 24, 2018 12:48 — forked from przbadu/_vue-rails.md
Vue js and Rails integration
View _vue-rails.md

Setup Rails and Vuejs

  1. Generate new rails app using --webpack flag
rails new myApp --webpack=vue

Note:

  1. You can use --webpack=angular for angular application and --webpack=react for react.
@xlanex6
xlanex6 / _vue-rails.md
Created May 24, 2018 12:48 — forked from przbadu/_vue-rails.md
Vue js and Rails integration
View _vue-rails.md

Setup Rails and Vuejs

  1. Generate new rails app using --webpack flag
rails new myApp --webpack=vue

Note:

  1. You can use --webpack=angular for angular application and --webpack=react for react.
@xlanex6
xlanex6 / jquery-turbolinks-compatibility.js
Created April 19, 2017 07:44 — forked from AndrewSouthpaw/jquery-turbolinks-compatibility.js
jQuery Turbolinks compatibility file in JS
View jquery-turbolinks-compatibility.js
@xlanex6
xlanex6 / active_admin.js
Created November 30, 2016 15:24 — forked from balvig/active_admin.js
Active Admin Cloudinary
View active_admin.js
# app / assets / javascripts / active_admin.js
//= require active_admin/base
//= require jquery.ui.widget
//= require jquery.iframe-transport
//= require jquery.fileupload
//= require cloudinary/jquery.cloudinary
//= require attachinary
//= require attachments