Skip to content

Instantly share code, notes, and snippets.

View casssiahaluu's full-sized avatar
🖖
Vida longa e próspera

Halu casssiahaluu

🖖
Vida longa e próspera
View GitHub Profile
import json
def load_json(file_path):
with open(file_path, 'r', encoding='utf-8') as file:
return json.load(file)
def collect_keys(data, parent_key=''):
keys = []
for k, v in data.items():
full_key = f"{parent_key}.{k}" if parent_key else k
@casssiahaluu
casssiahaluu / toolbar.cson
Last active April 25, 2019 17:21
Flex Toolbar Config
[
{
type: "button"
icon: "pencil-alt"
iconset: "fa"
callback: "flex-tool-bar:edit-config-file"
tooltip: "Edit Tool Bar"
style:
color: "#fff"
}
@casssiahaluu
casssiahaluu / atom_update.sh
Last active July 11, 2017 23:14
Script Shell para Atualização automática do Atom Editor em Ubuntu/Debian
#!/bin/bash
cd /tmp
wget https://atom-installer.github.com/v1.18.0/atom-amd64.deb
ver=false
if [ -e /tmp/atom-amd64.deb ]; then
echo "*******Pack Baixado"
ver=true
else
echo "*******Erro ao baixar"
ver=false