Skip to content

Instantly share code, notes, and snippets.

View akz92's full-sized avatar

Lucas Moulin akz92

  • Cambridge Brain Sciences
View GitHub Profile
@akz92
akz92 / gist:3593a68839e156db1748309170cba89c
Created January 3, 2018 16:31
Vzaar category cleaner
#!/bin/sh
# This script depends on jd, to install it using Homebrew: brew install jd
next="https://api.vzaar.com/api/v2/videos?category_id=9488&per_page=100"
while [ ! "$next" == "null" ]
do
echo "*** Starting page: $next ***"
data=$(curl -s --request GET \
@akz92
akz92 / Dockerfile
Created June 14, 2017 12:19
Ionic 2 Dockerfile
# Ionic 2 developer environment based on Saddey's Dockerfile
# See https://blog.saddey.net/2016/07/03/jump-start-into-angular-2-and-ionic-2
FROM ubuntu:16.04
MAINTAINER Lucas Moulin <[email protected]>
LABEL Description="Interactive Ionic 2 Framework example using volume /projects as the root for your app directories"
RUN apt-get update
@akz92
akz92 / npm-debug.log
Created January 30, 2017 11:32
mac-icons npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/akz/.nvm/versions/node/v7.4.0/bin/node',
1 verbose cli '/Users/akz/.nvm/versions/node/v7.4.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'test' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'pretest', 'test', 'posttest' ]
5 info lifecycle [email protected]~pretest: [email protected]
6 silly lifecycle [email protected]~pretest: no script for pretest, continuing
@akz92
akz92 / log
Created January 24, 2017 16:17
dext-darwin-applications-plugin npm install log
../src/ffi.cc:111:11: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
target->ForceSet(Nan::New<String>("RTLD_NEXT").ToLocalChecked(), WrapPointer((char *)RTLD_NEXT), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
^
/Users/akz/.node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2702:22: note: 'ForceSet' has been explicitly marked deprecated here
bool ForceSet(Local<Value> key, Local<Value> value,
^
../src/ffi.cc:114:11: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
target->ForceSet(Nan::New<String>("RTLD_DEFAULT").ToLocalChecked(), WrapPointer((char *)RTLD_DEFAULT), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
^
/Users/akz/.node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2702:22: note: 'ForceSet' has been explicitly marked deprecated here
Running 'run:before' gulp task before run
[16:01:46] Starting 'clean'...
[16:01:46] Finished 'clean' after 44 ms
[16:01:46] Starting 'build'...
[16:01:46] Starting 'sass'...
[16:01:46] Starting 'html'...
[16:01:46] Starting 'fonts'...
[16:01:46] Starting 'scripts'...
[16:01:46] Starting 'ic_notification'...
// BOOTSTRAP FIX
$(function() {
$('body').on("click", "ul.dropdown-menu a[data-remote='true'].no-bootstrap", function(e) {
e.stopPropagation();
e.preventDefault();
$(e.target).trigger('click.rails');
});
});
@akz92
akz92 / brazilian_states.rb
Last active April 7, 2016 16:03
Ruby hash of Brazilian states
BR_STATES = {
'AC': 'Acre',
'AL': 'Alagoas',
'AP': 'Amapá',
'AM': 'Amazonas',
'BA': 'Bahia',
'CE': 'Ceará',
'DF': 'Distrito Federal',
'ES': 'Espírito Santo',
'GO': 'Goiás',