Skip to content

Instantly share code, notes, and snippets.

View lyralemos's full-sized avatar

Alexandre Marinho lyralemos

View GitHub Profile
# Example to extract the persistence diagram from a neuronal tree
# Step 1: Import the tmd module
import tmd
# Step 2: Load your morphology
filename = './test_data/valid/C010398B-P2.CNG.swc'
neu = tmd.io.load_neuron(filename)
# Step 3: Extract the ph diagram of a tree
<?xml version="1.0" encoding="utf-8" ?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:itunesu="http://www.itunesu.com/feed" version="2.0">
<channel>
<title>Feed</title>
<link>http://localhost:8080/radio/feed</link>
<language>pt-br</language>
<copyright></copyright>
<itunes:subtitle></itunes:subtitle>
<itunes:author></itunes:author>
<itunes:owner>
@lyralemos
lyralemos / globo_adblock.js
Created August 17, 2018 16:56
Remove bloqueio do adblock
// ==UserScript==
// @name Remove Paywall da Globo
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.globo.com/*
// @grant GM_registerMenuCommand
// ==/UserScript==
@lyralemos
lyralemos / showrss.py
Created February 4, 2018 20:29
Downloads torrents from showrss and adds them to transmission; Dependencies: Feedparser and Transmissionrpc
import os
import feedparser
import transmissionrpc as tm
script_dir = os.path.dirname(__file__)
downloaded_file = os.path.join(script_dir, 'showrss.downloaded')
base_path = '/media/seagate/Video/Series/'
feed_url = 'http://showrss.info/user/448.rss'
feed = feedparser.parse(feed_url)
Artigos de referencia:
1. A. C. Graesser, P. Chipman, B. C. Haynes, and A. Olney, “AutoTutor: An intelligent tutoring system with mixed-initiative dialogue”, IEEE Transactions in Education, 2005, vol 48, pp. 612-618.
2. B. Kort, R. Reilly and R. W. Picard, “An Affective Model of Interplay Between Emotions and Learning: Reengineering Educational Pedagogy-Building a Learning Companion”, Proc. 2nd
IEEE Int’l Conf. Advanced
Learning Technologies (ICALT 2001), IEEE CS Press, 2001, pp. 0043.
3. C. Conati, “Probabilistic Assessment of User’s Emotions in Educational Games”, Journal of Applied Artificial Intelligence, 2002, vol 16, no. 7-8, pp. 555-575.
4. D. J. Litman and S. Silliman, “ITSPOKE: An intelligent tutoring spoken dialogue system”. Proc. 4th meeting of HLT/NAACL, 2004, pp. 52-54.
5. M. Pantic and L.J.M. Rothkrantz, “Towards an Affect-sensitive Multimodal Human-Computer Interaction”, IEEE Special Issue on Multimodal Human-Computer Interaction, 2003, vol. 91, no. 9, pp. 1370-1390.
6. P. Ekman and W. V. Fries
@lyralemos
lyralemos / plots_report3.R
Created January 10, 2017 14:29
Plots for report 3
anos <- c(2011,2012,2013,2014,2015)
fator1 <- c(24,27,33,25,14)
fator2 <- c(43,50,67,43,18)
eigen1 <- c(30,37,37,40,42)
eigen2 <- c(98,118,117,121,123)
dados1 <- data.frame(anos,fator1,eigen1)
dados2 <- data.frame(anos,fator2,eigen2)
@lyralemos
lyralemos / jquery.formularize.js
Last active December 17, 2015 04:39 — forked from anonymous/jquery.formalize.js
A jQuery plugin that tries to facilitate the creation of forms based on the twitter's bootstrap layout!
/*!
* jQuery Formularize Plugin
*
* Copyright 2013, Alexandre Marinho
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
;(function($){