Skip to content

Instantly share code, notes, and snippets.

View tisaconundrum2's full-sized avatar
🐢
= lambda: [print("🐢", end='') for _ in iter(int, 1)]

Nicholas Finch tisaconundrum2

🐢
= lambda: [print("🐢", end='') for _ in iter(int, 1)]
View GitHub Profile
@tisaconundrum2
tisaconundrum2 / css-inject.js
Last active March 9, 2018 03:02 — forked from ObserverOfTime/css-inject.js
GitHub Desktop Dark Theme
/**
* To apply the theme:
* 1) Open dev tools with CTRL + SHIFT + I
* 2) Go to the console
* 3) Paste the following code
* Note: You will have to do this again whenever Github Desktop updates
*/
var html_file = require("path").join(process.resourcesPath, "app/index.html");
var html = require("fs").readFileSync(html_file, "utf8");
var link_to_inject = '<link href="https://cdn.rawgit.com/ObserverOfTime/07e862ec7240d995e672818f43513bc7/raw/06c86e69c94935962b07b5302c195f7d6465eacd/desktop-dark.css" rel="stylesheet">';
@tisaconundrum2
tisaconundrum2 / code Inject.txt
Last active January 27, 2018 01:19
Python dark theme based on jetbrains PyCharm
var html_file = require("path").join(process.resourcesPath, "app/index.html");
var html = require("fs").readFileSync(html_file, "utf8");
var link_to_inject = '<link href="https://gist.githubusercontent.com/tisaconundrum2/1ebe5db688cda0eeaf37896e9e6e42fc/raw/ca416c074033177c19120aa00d07af23b7139256/desktop-dark.css" rel="stylesheet">';
html = html.replace(link_to_inject, "").replace("</head>", `\n${link_to_inject}</head>`);
require("fs").writeFileSync(html_file, html, "utf8");
location.reload();
"""
Converts a large CSV into SQL, can process some of the smaller chunks
Based on https://plot.ly/python/big-data-analytics-with-pandas-and-sqlite/
Original code probably from https://github.com/chriddyp
"""
import pandas
from sqlalchemy import create_engine
import tqdm
# Before the Run
def removerows(self, datakey, colname, value):
colname = {str} 'SiO2'
datakey = {str} 'asdf'
self = {backEndProc} <point_spectra_gui.backEndProcessing.backEndProc object at 0x0000000006FE7828>
data = {dict} {'asdf': <pysat.spectral.spectral_data.spectral_data object at 0x000000000CA78048>}
datakeys = {list} <class 'list'>: ['asdf']
dim_red_keys = {list} <class 'list'>: []
---
----/o\
---
v<<<^<<v>>^>>>>>