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 | |
| if(isset($_REQUEST['src'])){ | |
| $file_name = $_REQUEST['src']; | |
| header('Content-Type: application/octet-stream'); | |
| header("Content-Transfer-Encoding: Binary"); | |
| header("Content-disposition: attachment; filename=\"".$file_name."\""); | |
| readfile('../Your_Path_Here/'.$file_name); | |
| exit; | |
| } | |
| ?> |
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
| // Using the core $.ajax() method | |
| $.ajax({ | |
| // The URL for the request | |
| url: "post.php", | |
| // The data to send (will be converted to a query string) | |
| data: { | |
| id: 123 | |
| }, | |
| // Whether this is a POST or GET request | |
| type: "GET", |
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
| <input type="text" class="form-control" onkeypress="return isNumber(event)"> | |
| <script> | |
| function isNumber(evt) { | |
| evt = (evt) ? evt : window.event; | |
| var charCode = (evt.which) ? evt.which : evt.keyCode; | |
| if (charCode > 31 && (charCode < 48 || charCode > 57)) { | |
| return false; | |
| } | |
| return 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
| <link href='https://fonts.googleapis.com/css?family=Roboto:100,400,300,500,700' rel='stylesheet' type='text/css'> | |
| <div align="center" class="fond"> | |
| <div style="width:1000px;"> | |
| <div class="style_prevu_kit" style="background-color:#cb2025;"></div> | |
| <div class="style_prevu_kit" style="background-color:#f8b334;"></div> | |
| <div class="style_prevu_kit" style="background-color:#97bf0d;"></div> | |
| <div class="style_prevu_kit" style="background-color:#00a096;"></div> | |
| <div class="style_prevu_kit" style="background-color:#93a6a8;"></div> |
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
| #Check if a gem is installed | |
| gem list -i "^gem_name$" |
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
| # CHeck the version of the ActiveRecord | |
| bundle show activerecord |
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 onProgress(event) { | |
| if (event.lengthComputable) { | |
| var percentComplete = (event.loaded / event.total)*100; | |
| console.log("Envoi en cours: %d%%", percentComplete); | |
| } else { | |
| // Impossible de calculer la progression puisque la taille totale est inconnue | |
| } | |
| } |
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
| # Hello H.I, there is a few list of basics command to learn when you start with ionic Framework | |
| #There is the website for starter in IONIC: https://ionicframework.com/getting-started | |
| #Fisrt install npm with nodeJS | |
| #Install Cordova | |
| npm install -g cordova | |
| #Install the ionic Framework, i prefer most the IOnic 3 |
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
| #basics: | |
| rails console | |
| rails server | |
| rake | |
| rails generate | |
| rails dbconsole | |
| rails new app_name | |
| #create scaffold | |
| rails generate scaffold level |
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
| <div id="elementToprint"> | |
| Text to be in the PDF, simple function create by Sanix darker!!! | |
| </div> | |
| <input type="button" value="IMPRIME" onclick="PrintElem('elementToprint');"> | |
| <script type="text/javascript"> | |
| function PrintElem(elem) | |
| { | |
| var mywindow = window.open('', 'PRINT', 'height=400,width=600'); |
OlderNewer