This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from mutagen.id3 import ID3 | |
from mutagen.mp3 import MP3 | |
from io import BytesIO | |
import sys | |
import os | |
import glob | |
import ffmpeg | |
dir_path = os.path.dirname(os.path.realpath(__file__)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL: https://api.twitter.com/1.1/search/tweets.json?q=%23liceycampeon | |
{ | |
"metadata": { | |
"iso_language_code": "es", | |
"result_type": "recent" | |
}, | |
"created_at": "Mon Oct 19 19:53:38 +0000 2015", | |
"id": 656196530005745700, | |
"id_str": "656196530005745664", | |
"text": "Seguimos!!! #LiceyCampeón @ Ayuntamiento de Higuey. https://t.co/7Cb3bgMRTM", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
var defaultOptions = { | |
errorClass: 'has-error', | |
validClass: 'has-success', | |
highlight: function (element, errorClass, validClass) { | |
$(element).closest(".form-group") | |
.addClass(errorClass) | |
.removeClass(validClass); | |
}, | |
unhighlight: function (element, errorClass, validClass) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var module = angular.module( 'my.resource', [ 'ngResource' ] ); | |
module.factory( 'Resource', [ '$resource', function( $resource ) { | |
return function( url, params, methods ) { | |
var defaults = { | |
update: { method: 'put', isArray: false }, | |
create: { method: 'post' } | |
}; | |
methods = angular.extend( defaults, methods ); |