-
you need to have node.js installed
-
copy main.js & package.json to a new folder
-
in the terminal:
-
to build it, run:
npm install
and thennpm start
-
to pack it like a regular app, use 'electron-packager'. install it globally by running:
npm install electron-packager -g
-
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
# Just in case | |
sudo apt-get install -y git | |
# Grabs ssh & gpg keys | |
cd $HOME | |
BACKUP_DIR=/data/ssd/backups/manual/secrets | |
scp -r -P 62022 [email protected]:"${BACKUP_DIR}/.gnupg ${BACKUP_DIR}/.ssh ${BACKUP_DIR}/.cert" . | |
# Clones repo | |
WORKSPACE=$HOME/Documents/Work/Workspace |
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
'.platform-darwin': | |
'cmd-shift-R': 'fuzzy-finder:toggle-file-finder' | |
'ctrl-h': 'project-find:show' | |
'atom-workspace atom-text-editor:not([mini])': | |
'alt-up': 'editor:move-line-up' | |
'alt-down': 'editor:move-line-down' | |
'cmd-alt-down': 'editor:duplicate-lines' | |
'cmd-l': 'go-to-line:toggle' | |
'cmd-d': 'editor:delete-line' |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
import os | |
import sys | |
import PyPDF2 as pyPdf | |
def arabic_to_roman(arabic): | |
roman = '' | |
while arabic >= 1000: | |
roman += 'm' |
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
# NOTE: this example requires PyAudio because it uses the Microphone class | |
import time | |
import requests | |
import speech_recognition as sr | |
''' | |
LIFX API methods | |
''' |
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
#!/usr/bin/python | |
# open a microphone in pyAudio and listen for taps | |
# brew install portaudio | |
# pip install --allow-external pyaudio --allow-unverified pyaudio pyaudio | |
import pyaudio | |
import struct | |
import math |
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
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r 2> /dev/null; }; __radio' | |
# podria utilizarse mplayer en vez de vlc | |
AMs Nacionales | |
http://cdn.instream.audio:9288/stream Radio Madre 530 | |
https://streaming1.hostingmontevideo.com:7019/; Radio Colonia 550 | |
http://server.laradio.online:25224/live.mp3 Radio Argentina 570 | |
http://playerservices.streamtheworld.com/api/livestream-redirect/CONTINENTAL_SC Continental 590 | |
https://streammax.alsolnet.com/radiorivadavia Rivadavia 630 |