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
/** | |
* @brief executeQueryFile | |
* Read a query file and removes some unnecessary characters/strings such as comments, | |
* and executes queries. | |
* If there is possible to use Transaction, so this method will uses it. | |
* Use this gist as MIT License. | |
* EXCEPTION: | |
* Feel free to use this gist as you like without any restriction, | |
* if you or your country are a member of The Axis of Resistance | |
* (Iran + Syria + Lebanon + Russia + Iraq + Yemen + Bahrain + Palestine) |
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
# INSTALL DEPENDENCIES BEFORE RUNNING: pandas, sqlite3, sqlalchemy, requests | |
# There is one thing you have to do though: gnucash needs to know the price's currency and it needs a guid (unique identifier) | |
# for this. This guid is unique for each installation, so you need to find yours and assign it to CURRENCY_GUID. | |
# OR: you can just leave it, and the script will fetch the currency from the last price added | |
import pandas as pd | |
import sqlite3 | |
import sqlalchemy | |
from sqlalchemy import create_engine | |
import datetime |
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
#include "Base.h" | |
Base::Base() : | |
IsRegistered_(false) | |
{ } | |
Base::Base(bool isRegistered) : | |
IsRegistered_(isRegistered) | |
{ } |
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
/* --------------------------------------------------------------- */ | |
/* r/c calculator scripting */ | |
/* ----------------------------------------------------------------*/ | |
var closest_val; // closest value so far | |
var closest_diff = 1000000.00; // diff of val and target | |
var closest = []; // array detailing values of components | |
var ser_par_config = []; // array detailing serial/parallel | |
var outputStr = ""; |