Instructions
This file contains 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
#OSX Tweaks: | |
=========== | |
- Most need reboot to show changes | |
- Most of these tweaks are just for speed, but some are specific for development | |
- All of these are to be ran in terminal. The commands to be copy and pasted start after the less-than sign. | |
- I'm not responsible for any adverse effects to your computer, at all. | |
##Increase the speed of OS X dialogs boxes: |
This file contains 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
/* Code written by Anand K | |
contact me at itsexzion@gmail.com */ | |
module ring_count(q,clk,clr); | |
input clk,clr; | |
output [3:0]q; | |
reg [3:0]q; | |
always @(posedge clk) | |
if(clr==1) | |
q<=4′b1000; |
This file contains 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 json | |
from flask import Flask, request | |
from kiteconnect import KiteConnect | |
# Base settings | |
PORT = 5010 | |
HOST = "127.0.0.1" | |
# Kite Connect App settings. Go to https://developers.kite.trade/apps/ | |
# to create an app if you don't have one. |
This file contains 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 logging | |
from kiteconnect import WebSocket | |
logging.basicConfig(filename='ticks.log', level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
# Initialise. | |
kws = WebSocket("api_key", "public_token", "user_id") | |
tokens = [5215745, 633601, 1195009, 779521, 758529, 1256193, 194561, 1837825, 952577, 1723649, 3930881, 4451329, 593665, 3431425, 2905857, 3771393, 3789569, 3463169, 381697, 54273, 415745, 2933761, 3580417, 49409, 3060993, 4464129, 3375873, 4574465, 636673, 3721473, 2796801] | |
print("Tokens length", len(tokens)) |
This file contains 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
{ | |
"name": "Gruvbox custom 1", | |
"is_dark": true, | |
"colors": { | |
"accent-color": "#bd93f9", | |
"primary-color": "#fe8019", | |
"warning-color": "#fb4934", | |
"sidebar-color": "#282828", | |
"roomlist-background-color": "#1d2021", | |
"roomlist-text-color": "#a89984", |
This file contains 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
{ | |
"name": "Gruvbox custom", | |
"is_dark": true, | |
"colors": { | |
"accent-color": "#bd93f9", | |
"primary-color": "#fe8019", | |
"warning-color": "#fb4934", | |
"sidebar-color": "#282828", | |
"roomlist-background-color": "#1d2021", | |
"roomlist-text-color": "#a89984", |
This file contains 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
{ | |
"name": "Gruvbox", | |
"is_dark": true, | |
"colors": { | |
"accent-color": "#bd93f9", | |
"primary-color": "#fe8019", | |
"warning-color": "#fb4934", | |
"sidebar-color": "#282828", | |
"roomlist-background-color": "#1d2021", | |
"roomlist-text-color": "#a89984", |
This file contains 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
{ | |
"name": "No bs theme", | |
"is_dark": false, | |
"colors": { | |
} | |
} |
This file contains 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 smtplib import SMTP # Use this for standard SMTP protocol (port 25, no encryption) | |
# from smtplib import SMTP_SSL as SMTP # This invokes the secure SMTP protocol (port 465, uses SSL) | |
from email.mime.text import MIMEText | |
class Email(object): | |
SMTP_CONFIG = dict( | |
server="your_smtp_server_hostname", | |
username="your_smtp_server_username", | |
password="your_smtp_server_password" |
NewerOlder