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 React, { Component } from "react"; | |
| import axios from "axios"; | |
| class Comments extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| postId: '', | |
| commentBody:'' | |
| }; |
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
| -- as admin | |
| CREATE TABLESPACE fda_ts DATAFILE 'fda_ts_tabspace' SIZE 10M AUTOEXTEND ON NEXT 1M; | |
| ALTER USER scott QUOTA UNLIMITED ON fda_ts; | |
| CREATE FLASHBACK ARCHIVE fda_1month TABLESPACE fda_ts QUOTA 15M RETENTION 1 MONTH; | |
| GRANT FLASHBACK ARCHIVE ON fda_1month TO scott; | |
| GRANT FLASHBACK ARCHIVE ADMINISTER TO scott; | |
| GRANT EXECUTE ON DBMS_FLASHBACK_ARCHIVE TO scott; | |
| GRANT CREATE ANY CONTEXT TO scott; |
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
| hg branch newfeature && hg ci -m "start feature branch" - create branch | |
| hg update default - switch to default branch | |
| hg merge newfeature - merge newfeature into default | |
| // echo sprintf("<script>console.debug(\"%s --- %s --- %s\");</script>", __FILE__, __METHOD__, $json_encode($array)); | |
| hg update -r 500 && hg branch newbranch && hg commit -A -m 'made a new branch from revision 500' | |
| hg add . && hg commit -A -m "alert" && hg push | |
| hg log -l 3 | |
| hg incoming -> hg pull -> hg heads -> hg merge -> hg commit -A -m "" -> hg push |
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
| Get-ChildItem D:\folder\*.* | Select-Object FullName | Export-Csv list.csv -NoTypeInformation |
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 | |
| // Lufthansa REST API with OAuth | |
| // exchange client_id and client_secret for the token | |
| $post = [ | |
| 'client_id' => 'Your client Id', | |
| 'client_secret' => 'Your client secret', | |
| 'grant_type' => 'client_credentials', | |
| ]; | |
| $ch = curl_init(); |
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
| ls -la | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf("%0o ",k);print}' |