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
LOAD DATA LOCAL INFILE ‘/your_file.csv’ | |
INTO TABLE your_table | |
FIELDS TERMINATED BY ‘,’ | |
LINES TERMINATED BY ‘\n’ | |
(field1, filed2, field3); |
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
.rounded { | |
-moz-border-radius: 3px; | |
-webkit-border-radius: 3px; | |
border-radius: 3px; | |
} |
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
Show hidden characters
{ | |
"files": | |
{ | |
"Backbone.js": "http://documentcloud.github.com/backbone/backbone-min.js", | |
"Backbone.js (AMD Fork)": "https://raw.github.com/amdjs/backbone/master/backbone-min.js", | |
"Underscore.js": "https://raw.github.com/documentcloud/underscore/master/underscore-min.js", | |
"Underscore.js (AMD Fork)": "https://raw.github.com/amdjs/underscore/master/underscore-min.js", | |
"jQuery": "http://code.jquery.com/jquery.min.js", | |
"jQuery color": "https://github.com/jquery/jquery-color/blob/master/jquery.color.js", | |
"require.js": "http://requirejs.org/docs/release/1.0.5/minified/require.js", |
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
<?php | |
class book | |
{ | |
// Singular author | |
private $_author = null; | |
public function author() | |
{ | |
if(is_null($this->_author)) | |
{ |
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
<?php | |
$foo = array( | |
array( | |
'Black', | |
'White', | |
'Green' | |
), | |
array( | |
'Small', |
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
// While you can edit this file, it's best to put your changes in | |
// "User/Preferences.sublime-settings", which overrides the settings in here. | |
// | |
// Settings may also be placed in file type specific options files, for | |
// example, in Packages/Python/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme", | |
// Valid options are "no_bold", "no_italic", "no_antialias", "gray_antialias", |
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
<?php | |
/* | |
* Coupon code generator | |
*/ | |
$num_of_coupons_to_generate = 100; | |
$coupon_count = 0; | |
while($coupon_count != $num_of_coupons_to_generate) |
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
<select> | |
<option value="ME">Maine</option> | |
<option value="FL">Florida</option> | |
</select> |
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
<?php | |
/* | |
* Fraud levels: | |
* 0 - no fraud | |
* 1 - needs to be reviewed | |
* 2 - denied | |
*/ | |
// Set the initial fraud status to zero |
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
#!/bin/bash | |
# Usage: ./command.sh http://www.google.com | |
# Help: Returns the HTTP status code for a given URL every 2 seconds | |
txtred=$(tput setaf 1) # Red | |
txtgrn=$(tput setaf 2) # Green | |
txtylw=$(tput setaf 3) # Yellow | |
txtblu=$(tput setaf 4) # Blue | |
txtpur=$(tput setaf 5) # Purple |
OlderNewer