Skip to content

Instantly share code, notes, and snippets.

Avatar

Francisco svtfrancisco

  • Brasil
View GitHub Profile
View calendar.js
export default function(year = (new Date()).getFullYear()) {
year = parseInt(year)
return {
count() {
return 12
},
View CCD.js
const detectCard = (card) => {
let detected, types
detected = null
types = [
["elo", ["401178", "401179", "431274", "438935", "451416", "457393", "457631", "457632", "498405", "498410", "498411", "498412", "498418", "498419", "498420", "498421", "498422", "498427", "498428", "498429", "498432", "498433", "498472", "498473", "498487", "498493", "498494", "498497", "498498", "504175", "506699", "506700", "506701", "506702", "506703", "506704", "506705", "506706", "506707", "506708", "506709", "506710", "506711", "506712", "506713", "506714", "506715", "506716", "506717", "506718", "506719", "506720", "506721", "506722", "506723", "506724", "506725", "506726", "506727", "506728", "506729", "506730", "506731", "506732", "506733", "506734", "506735", "506736", "506737", "506738", "506739", "506740", "506741", "506742", "506743", "506744", "506745", "506746", "506747", "506748", "506749", "506750", "506751", "506752", "506753", "506754", "506755", "506756", "506757", "506758", "506759", "506760", "506761"
@svtfrancisco
svtfrancisco / backup.instagram.js
Last active Sep 7, 2018
Backup Instagram Photos
View backup.instagram.js
var path = require('path')
var wget = require('node-wget')
var _ = require('lodash')
var Promise = require('bluebird')
var Client = require('instagram-private-api').V1
var device = new Client.Device('cbo317110')
var storage = new Client.CookieFileStorage(__dirname + `/cookies/${process.env.USER}.json`)
const downloadImage = (url, file) => {
wget({url, dest: `./photos/${file}.jpg`})
View countdown.js
// Moment.js is a library to handle date and time
// Docs and more info can be found at https://momentjs.com
import * as moment from 'moment'
/**
* Create a object with days, hours, minutes and seconds remaining for a given time.
* @param {integer} timestamp - Unix Timestamp of the moment that the clock should be stopped.
*/
const clock = function(timestamp) {