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
| 127.0.0.1 localhost My-Mac-XXX.local | |
| ::1 localhost My-Mac-XXX.local |
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
| // https://github.com/marcvannieuwenhuijzen/BootstrapXL | |
| @screen-lg: 1200px; | |
| //@screen-xl: 1400px; | |
| @screen-xl: 1600px; | |
| @media (min-width: @screen-lg) and (max-width: (@screen-xl - 1)) { | |
| .hidden-lg { | |
| display: none !important; | |
| } |
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
| /Applications/MAMP/Library/bin/mysql --user="root" --password="root" --host="localhost" database < ~/Desktop/db.sql | |
| gunzip < db.sql.gz | /Applications/MAMP/Library/bin/mysql --user="root" --password="root" --host="localhost" database |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <title>SVG</title> | |
| <style type="text/css"> | |
| .svg { | |
| width: 100px; | |
| height: 100px; |
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
| clash = A_LOW <= B_HIGH AND A_HIGH >= B_LOW |
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
| arr = $.grep(arr, function(v, k) { | |
| return $.inArray(v, arr) === k; | |
| }); |
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
| var gMapsApi = window.google.maps; | |
| var map = new gMapsApi.Map(/*...*/); | |
| var geocoder = new gMapsApi.Geocoder(); | |
| geocoder.geocode({ address:$('[name="q"]').val() }, function(results, status) { | |
| if(status == gMapsApi.GeocoderStatus.OK) { | |
| map.setCenter(results[0].geometry.location); | |
| } else { | |
| console.log('Geocode was not successful for the following reason: ' + status); | |
| } | |
| }); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>table & border:1px</title> | |
| <style type="text/css"> | |
| table { | |
| border-collapse: collapse; | |
| border-spacing: 0px; /* optional */ | |
| font: 1em sans-serif; |
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
| var nbr = 5; | |
| var nbr0X = ("0" + nbr).slice(-2); // "05" | |
| var nbr = 4.56789; | |
| var nbrX00 = nbr.toFixed(2); // 4.57 |
NewerOlder