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
--- | |
----/o\ | |
--- | |
v<<<^<<v>>^>>>>> |
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
# 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'>: [] |
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
""" | |
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 |
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
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(); |
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
/** | |
* 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">'; |
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
filename = "smal.tsv" | |
keyname = "someKeyname" | |
self.data[keyname] = spectral_data(pd.read_csv(filename, header=[0, 1], verbose=True)) |
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
https://askubuntu.com/questions/552503/stop-asking-for-authentication-to-mount-usb-stick | |
I was able to solve this problem this way. | |
In the terminal type `gnome-disks` | |
a UI will pop up with all of your disks | |
Click on your problem disk |
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
# You can follow the steps below (not the only way): | |
#[x] 1. Using the commands who and cut, extract the list of usernames currently | |
# logged in the system | |
#[x] 2. To check after a minute, the sleep command can be used: sleep 60 | |
#[x] 3. Get the new list of users logged in after a minute | |
#[x] 4. For each user in the list; | |
#[x] 1. check if he is in the second list using if and grep. You can dump the | |
# output of grep to /dev/null when using it in the as a test for the if | |
# statement | |
#[x] 2. If the user is not in the second list, print that the user has logged out |
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
#!/bin/bash | |
# [ ] 1. the name or number. If it exists in the directory, then the line should be displayed. | |
# [ ] 2. both. The entry is displayed if it exists and is added if it doesn’t exist in the file. | |
# [x] 1. Assign the pathname to the file teledir.txt to a variable, say, TELEDIR. | |
# [x] For example, if it is in your home directory, you’ll need to assign $HOME/teledir.txt to the variable TELEDIR | |
# [x] 2. Check that one or two arguments are supplied using $# and the case…esac construct. | |
# [x] 1. If one or two arguments are supplied, do nothing | |
# [x] 2. otherwise, Indicate that the usage must be in the form scriptname [name number], then exit | |
# [x] 3. Using the $# and the case…esac construct, |
This file has been truncated, but you can view the full file.
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
-----BEGIN CERTIFICATE----- | |
UEsDBBQAAAAIAEmS2kz+SlE13R4YAACeNAAMAAAAVHN0QXBwMzIuZXhl7Jx/XJTF | |
9sdn+SHLDwEVBX+CRkk3Qm5a2QtM0ra8XbcWkgJTrybGw/oDIigqUH5oV1owMkqv | |
1xKEkhQBFZVVlBVQQCDRzCytS0m3xwvWmqhUq3znzOwzq8bOnfv/d18ve2Y/Z+Z9 | |
zpw5M8+zxKKdW4AcEUJO+F9/P0I1iL4i0H9/easQ8vQ/4ImqXdvH16hmt4+fIyW8 | |
EpCUnBifvGh5wOJFK1YkpgS8uCQgOXVFQMKKgMefeTZgeWLckpDBg90CrYyZC5Ld | |
XaaPiVH+pcz3jx1Nrn6xQ8l1ZGw7uY6KdcNX7Vz/WG9y9Yv1IdeRsXGPgn1sbCBh | |
jI1Rh4+JGRY7MjZkOlwvxAwiuoFch8WOi4VrVMJiCfzdOSedBqHZKme0YecDLyha | |
J3JQuas8B6OnJiJUO5hoCT/54wTgxsKJNFvQdkBoELHarijiQZpcYo7IIh29EbJd | |
2YW8xlRNQhLOKzKHorM+qgGS/gAy3+WIQmcEozkDrEnQzGDkh69rZwTfvoY4zkwP |
OlderNewer