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
| function makeUnique(object){ | |
| jsonObject = object.map(JSON.stringify) | |
| const uniqueSet = new Set(jsonObject) | |
| const uniqueArray = Array.from(uniqueSet).map(JSON.parse) | |
| return uniqueArray | |
| } |
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
| <?php | |
| chdir('/home/wildi013/symfony4'); | |
| if(getcwd()=="/home/wildi013/symfony4"){ | |
| exec('php bin/console cache:clear',$v, $o); | |
| echo $v; | |
| echo $o; | |
| } else { | |
| echo "Error (D13)"; | |
| } |
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
| # NextJS | |
| pm2 start yarn --name "nextjs" --interpreter bash -- start |
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
| // Ensure the folder exists for the mount target (e.g. /mnt/m) | |
| // Open /etc/fstab and add a line such as the following: | |
| M: /mnt/m drvfs defaults 0 0 | |
| // Reload the fstab file with sudo mount -a |
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
| sudo mount -t drvfs W: /mnt/w |
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
| absolute_path_to_blender.exe -b absolute_path_to_file.blend -f 1 | |
| -f frame number | |
| -s 1 -e 25 [start and ending frame] |
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
| // Bold | |
| { | |
| "key":"ctrl+b", | |
| "scope":"html", | |
| "command":"editor.action.insertSnippet", | |
| "when":"editorTextFocus && editorLangId == 'html'", | |
| "args":{ | |
| "snippet":"<strong>$TM_SELECTED_TEXT</strong>$0" | |
| } | |
| } |
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
| dateparse = lambda dates: pd.datetime.strptime(dates, '%Y-%m') | |
| dataset = pd.read_csv('{}arquivo.csv'.format(path), parse_dates = ['Month'], index_col = 'Month', date_parser = dateparse) |
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
| from sklearn.preprocessing import StandardScaler | |
| scaler = StandardScaler() | |
| scaler_base = scaler.fit_transform(base) |
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
| button { | |
| --h: 100; | |
| --s: 50%; | |
| --l: 50%; | |
| --a: 1; | |
| background: hsl(var(--h) var(--s) var(--l) / var(--a)); | |
| } | |
| button:hover { /* Change the lightness on hover */ | |
| --l: 75%; |