Skip to content

Instantly share code, notes, and snippets.

pooot / facebook-contact-info-summary.rb
Created Mar 23, 2018 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /usr/bin/env ruby
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
# in whatever the working directory of the program is when executed.
pooot / Card.vue
Created Mar 11, 2018
Undefined property
View Card.vue
computed: {
isLoggedIn: 'auth/isLoggedIn',
activities: 'auth/activities'
booked() {
return this.isLoggedIn ? this.activities.includes( : false
View Login.vue
<form @submit.prevent="onSubmit">
<b-field label="Email"
:type="formErrors.has('email') ? 'is-warning' : ''">
<b-input type="email"
v-validate="{required: true, email: true}">
pooot / oauth.js
Created Feb 22, 2018 — forked from srph/oauth.js
axios: interceptor which includes your oauth token in every request as an Authorization header
View oauth.js
import axios from 'axios';
// You can use any cookie library or whatever
// library to access your client storage.
import cookie from 'cookie-machine';
axios.interceptors.request.use(function(config) {
const token = cookie.get(__TOKEN_KEY__);
if ( token != null ) {
config.headers.Authorization = `Bearer ${token}`;
pooot / .env
Created Feb 22, 2018 — forked from thebrubaker/.env
Laravel Passport: SPA Frontend Authentication
View .env
# Added to the bottom of my file
View vue-slick
// show.blade.php
<news-gallery :gallery="{{ $post->getMedia('gallery')"></news-gallery>
// Vue component
<div class="slick-slider">
<div class="img"
v-for="image in images"
:style="'background-image:url(' + image.url + ')'"></div>
pooot / uppy-vue-example
Created Jan 2, 2018
Very basic vuejs usage of uppy
View uppy-vue-example
<div :id="uppyId">
<div class="ThumbnailContainer" v-if="collection === 'thumbnail'">
<button id="open-thumbnail-modal" class="button">Select file</button>
<div class="DashboardContainer" v-else></div>