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
void Extrae (string lin) { | |
string aux; | |
int cont; // this is setup to be a counting variable | |
aux = ""; | |
cont = 0; | |
while ((lin.Substring(cont, 1) != ",") && (cont < lin.Length)) { // basically checking the lengh minus any commas | |
aux = aux + lin.Substring(cont, 1); // I'm guessing the aux is new string minus any commas? | |
cont++; // increase the cont var by 1, then loop. |
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
#! /bin/bash | |
# postdownload.sh by Sander Ploegsma | |
{ | |
CP_API_KEY="apikeyhere" | |
CP_HOST="<ip>:<port>" | |
echo $(date +%Y-%m-%d\ %H:%M:%S) "Forcing CouchPotato rescan..." | |
curl --silent -X POST "http://$CP_HOST/api/$CP_API_KEY/renamer.scan" > /dev/null | |
echo $(date +%Y-%m-%d\ %H:%M:%S) "Done." | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |