Skip to content

Instantly share code, notes, and snippets.

@janosgyerik
Last active December 18, 2015 13:09
Show Gist options
  • Save janosgyerik/5787637 to your computer and use it in GitHub Desktop.
Save janosgyerik/5787637 to your computer and use it in GitHub Desktop.
Demonstrate syntax highlighting of multiple languages within the same gist.
// where the hell my log4j settings come from??
System.out.println(Loader.getResource("log4j.properties"));
System.out.println(Loader.getResource("log4j.xml"));
-- "create" a user in MySQL
GRANT ALL PRIVILEGES ON dbname.* TO 'dbuser'@localhost IDENTIFIED BY 'userpass';
/* CSS media query: apply if width < 980px */
@media (max-width: 980px) {
    body {
        padding-top: 0;
    }
}
<!DOCTYPE html>
<html lang="en-us">
    <head>
        <meta charset="utf-8">
        <title>HTML5 Boilerplate: The web's most popular front-end template</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">
        <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700">
        <link rel="stylesheet" href="css/main-7b3fecba68527e3c683b5ffed5a0c131.min.css">
        <script src="js/html5.js"></script>
    </head>
    <body>
    </body>
</html>
function fancyAlert(arg) {
  if (arg) {
    $.facebox({div:'#foo'})
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment