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
/** | |
* An SVG Smiley face | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; | |
} | |
svg { |
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
/** | |
* Arcs example | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; | |
} | |
svg { |
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
/** | |
* Text in path example | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; | |
} | |
svg { |
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
#include <QtCore/QtCore> | |
#include <QtCore/QCoreApplication> | |
#include <QtCore/QByteArray> | |
#include <QtCore/QDebug> | |
#include <QtCore/QLatin1Char> | |
int main(int argc, char **argv) | |
{ | |
QCoreApplication app(argc, argv); | |
static const char mydata[] = { |
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 | |
header('Content-Type: application/json' ); | |
$a = array(10, 20, 30); | |
print json_encode($a); |
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 Counter(max) { | |
var val = 0; | |
return function() { return (val < max) ? val++ : false; } ; | |
} | |
var c = Counter(10); | |
while (c()) { | |
console.log(c()); | |
} |
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
package Abilities::Base; | |
use Moose::Role; | |
sub attack { } | |
package Abilities::Strong; | |
use Moose::Role; | |
with 'Abilities::Base'; |
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() { | |
var MusicBox = function() { | |
var _albums = []; | |
var self = { | |
addAlbum: function(album) { | |
_albums.push(album); | |
}, | |
favoriteAlbum: function() { |
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
. | |
├── include | |
│ ├── entry.h | |
│ ├── photo.h | |
│ └── user.h | |
├── lib | |
├── resources | |
│ └── default.png | |
└── src | |
├── entry.c |
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 | |
include("Mobile_Detect.php"); | |
$detect = new Mobile_Detect(); | |
if ( $detect->isMobile() ) { | |
print("Hello Mobile"); | |
} else { | |
print("Hello Desktop"); | |
} |
OlderNewer