Skip to content

Instantly share code, notes, and snippets.

Michael Sokol mikaa123

Block or report user

Report or block mikaa123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View calendars.py
import datetime
import dateutil.parser
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from math import ceil
import pandas as pd
import matplotlib.pyplot as plt
@mikaa123
mikaa123 / lang.js
Created Nov 19, 2018
Detect language
View lang.js
const LanguageDetect = require('languagedetect');
const lngDetector = new LanguageDetect();
const AlgoliaIndexTransform = require('algolia-index-transform');
const algoliaIndexTransform = new AlgoliaIndexTransform({
sourceApplicationID: 'source_app_id',
sourceApiKey: 'source_key_here',
sourceIndexName: 'site-search',
destinationApplicationID: 'dest_app_id',
destinationApiKey: 'dest_key_here',
destinationIndexName: 'site-search',
View .gitconfig
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
ff = merge --ff-only
pullff = pull --ff-only
View gist:6c65f1b5bc3362cba571
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugins
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
call plug#begin('~/.vim/plugged')
Plug 'whatyouhide/vim-gotham'
Plug 'https://github.com/kien/ctrlp.vim.git'
Plug 'tpope/vim-sensible'
Plug 'https://github.com/vim-scripts/Smart-Tabs'
Plug 'bling/vim-airline'
View gist:a9380af5cd1d56a387ce
var express = require('express'),
app = express();
var bodyParser = require('body-parser');
app.use(bodyParser());
var makeResource = require('catnap').makeResource;
// This simulates our datastore.
var users = [{
@mikaa123
mikaa123 / gulpfile.js
Created May 22, 2014
Gulp xsl reload
View gulpfile.js
var gulp = require('gulp'),
gutil = require('gulp-util'),
spawn = require('child_process').spawn,
livereload = require('gulp-livereload')
replace = require('gulp-replace');
gulp.task('staticsvr', function(next) {
var staticS = require('node-static'),
server = new staticS.Server('./'),
port = 2888;
@mikaa123
mikaa123 / havesome
Last active Aug 29, 2015
Makes your browser drink
View havesome
-----------------------------------------------------------------------------
"THE BEER-WARE LICENSE" (Revision 42):
<misokol123@gmail.com> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return. -Michaël Sokol
-----------------------------------------------------------------------------
eval(atob("\
dmFyIGpxID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc2NyaXB0Jyk7CmpxLnNyYyA9ICIvL2N \
@mikaa123
mikaa123 / gist:8506887
Created Jan 19, 2014
Bigquery JS Frameworks
View gist:8506887
SELECT COUNT(*)
FROM [githubarchive:github.timeline]
WHERE repository_language == "JavaScript"
AND type == "CreateEvent"
AND (
LOWER(repository_description) CONTAINS "framework" AND (
LOWER(repository_description) CONTAINS "mvc" OR
LOWER(repository_description) CONTAINS "mvvm" OR
LOWER(repository_description) CONTAINS "mvp" OR
LOWER(repository_description) CONTAINS "mv*"
View minimal html5 template
<!DOCTYPE html>
<html>
<head>
<title>title</title>
</head>
<body>
</body>
</html>
@mikaa123
mikaa123 / asog_sounds.go
Created Mar 30, 2013
Unmarshal JSON from API.
View asog_sounds.go
// vim:set sw=4 sts=4:
package main
import (
"io/ioutil"
"net/http"
"encoding/json"
"time"
"os/exec"
)
You can’t perform that action at this time.