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
Show hidden characters
{ | |
"cmd": ["g++","-std=c++11","-Wall","*.cpp", "-I", | |
"../header","-o", "${file_path}/${file_base_name}", | |
"&&", | |
"${file_path}/${file_base_name}"], | |
"selector": "source.c++", | |
"shell": true | |
} |
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 | |
import os, zipfile, pyunpack | |
basis_folder = r'C:\Users\ssv\Documents\tmp' | |
for root, dirs, files in os.walk(basis_folder): | |
for filename in files: | |
if filename.endswith(".rar") : | |
print('RAR:'+os.path.join(root,filename)) | |
elif filename.endswith(".zip"): | |
print('ZIP:'+os.path.join(root,filename)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 sublime | |
import sublime_plugin | |
import os | |
import subprocess | |
import threading | |
class HtlatexCommand(sublime_plugin.TextCommand): | |
def run(self, edit, filename=None): |
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 re | |
sel_component_numbers = [30, 31, 438, 440, 27, 26, 455, 66, 96, 61] | |
print('Selected components:') | |
print(sel_component_numbers) | |
print('') | |
test_exp_descriptors = '(^[0-9]{1,3})\|(.*)\|(.*)\|' + \ | |
'([0-9]{1,7}-[0-9]{1,7}-[0-9]{1,7})' |
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 numpy as np | |
from scipy.interpolate import interp1d | |
from scipy import interpolate | |
t = 25 + 273.15 # K | |
p = 1.01325 # bar | |
komponente = np.array(['N2','O2','Ar','Luft']) | |
# Bird Tabelle E.1 | |
tc = np.array([126.2, 154.4, 150.7, 132]) # K | |
pc = np.array([33.5, 49.7, 48.0, 36.4]) # atm | |
muc = np.array([180., 250., 264., 193.])*1e-6 # g/cm/s |
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 numpy as np | |
komponente=np.array(['CO2','O2','N2']) | |
mm_i=np.array([44.01,32,28.02]) | |
mu=np.array([1462e-7,2031e-7,1754e-7]) | |
x_a=np.array([0.133,0.039,0.828]) | |
phi_ab = np.zeros([komponente.size, komponente.size]) | |
for alpha in range(phi_ab.shape[0]): | |
for beta in range(phi_ab.shape[1]): | |
phi_ab[alpha, beta] = 1/np.sqrt(8)*( | |
1+mm_i[alpha]/mm_i[beta])**(-1/2.)*( |

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 | |
from mutagen.easyid3 import EasyID3 | |
folder = os.path.abspath(u'.') | |
folder_exists = os.path.exists(folder) | |
for file in os.scandir(folder): | |
file_path = os.path.join(folder, file.name) | |
print(file_path) | |
actual_number = file.name.split('_')[0] |