Skip to content

Instantly share code, notes, and snippets.

Avatar

Samuel Teixeira Santos arcanosam

View GitHub Profile
@arcanosam
arcanosam / install_Python381.sh
Last active Oct 29, 2020
my Python 3.8.1 build script on CentOS 7
View install_Python381.sh
#!/bin/bash
# original source/tip: https://www.workaround.cz/howto-compile-install-latest-python-37-38-centos-7-8/
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz -P /tmp/
tar xzfv /tmp/Python-3.8.1.tgz -C /tmp
cd /tmp/Python-3.8.1
@arcanosam
arcanosam / csv-to-json.js
Last active Mar 11, 2018
Microsoft: DEV283x Introduction to Node.js - Module 1 Assignment Lab: CSV to JSON Converter
View csv-to-json.js
# Sorry.In the end, I follow the instructions and make a repository to assignments
# check here https://github.com/arcanosam/edx-ms-dev283x-intronodejs
@arcanosam
arcanosam / re_json_file.py
Last active Jun 29, 2017
Reading chunks of a json file and identifying each json structures as they chunks are read
View re_json_file.py
"""reading from a json file in chunks and added each json structure on a list
"""
import re
import json
# path to a json file
json_file = '<<fill with a complete path to a json file>>'
# this variable hold text read from file until found a json structure
text_read = ''
@arcanosam
arcanosam / gist:1342a2c9c18de379ca4e
Last active Aug 29, 2015
Particle Panda - Help Tab Error - TabbedPanelHeader panel attribute no longer exist
View gist:1342a2c9c18de379ca4e
[INFO ] [Logger ] Record log in C:\Users\arcan_000\.kivy\logs\kivy_14-05-22_10.txt
[INFO ] Kivy v1.8.1-dev
[INFO ] [Python ] v3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)]
[INFO ] [Factory ] 168 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
[INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img_gif (img_pil ignored)
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600s