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
var _log = console.log; | |
window.console.log = function(log){ | |
_log.call(console, log.reverse ? log.reverse() : typeof log === 'string' ? log.split('').reverse().join('') : typeof log === 'number' ? log.toString().split('').reverse().join('') : log); | |
}; |
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
<meta name="viewport" content="minimal-ui"> | |
<meta name="viewport" content="width=device-width,minimal-ui"> |
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
$is_admin = ($user['permissions'] == 'admin' ? true : false); | |
echo 'Welcome '.($user['is_logged_in'] ? $user['first_name'] : 'Guest').'!'; |
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
module.exports = function(grunt) { | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
dirs: { | |
bower: 'bower_components', | |
css: 'assets/css', | |
js: 'assets/js', | |
images: 'assets/images', |
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
{ | |
"name": "wat", | |
"description": "wat", | |
"version": "0.0.1", | |
"private": true | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* _px-to-rem.scss | |
* | |
* Author: Marian Friedmann | |
* | |
* Usage: | |
* .element { | |
* @include px-to-rem(padding, 0 24px) | |
* } | |
* |
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 | |
$mail = $_GET['mail']; | |
$message = file_get_contents("mail.html"); | |
$header = "MIME-Version: 1.0\n"; | |
$header .= "Content-type: text/html; charset=utf-8\n"; | |
$header .= "From: Marian Friedmann <[email protected]>\n"; | |
mail($mail,"Mail Test", $message, $header); | |
?> |
NewerOlder