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
| import QtQuick 2.0 | |
| import QtGraphicalEffects 1.0 | |
| Rectangle { | |
| id: root | |
| property Gradient borderGradient: borderGradient | |
| property int borderWidth: 1 | |
| width: 400 | |
| height: 300 | |
| radius: 100 |
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
| // For example, take 153 (3 digits): | |
| // 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153 | |
| // and 1634 (4 digits): | |
| // 1^4 + 6^4 + 3^4 + 4^4 = 1 + 1296 + 81 + 256 = 1634 | |
| // The Challenge: | |
| // Your code must return true or false depending upon whether the given number is a Narcissistic number. |
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
| <div class="loader"> | |
| <span></span> | |
| <span></span> | |
| <span></span> | |
| </div> |
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
| window.onload = function () { | |
| var div = document.body.children[0]; | |
| var span2 = div.children[1]; | |
| print_r(span2); | |
| }; | |
| function print_r(obj) { | |
| var s = '<h1>' + obj + '</h1>'; |
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 request = require('request'); | |
| var cheerio = require('cheerio'); | |
| request('http://www.',function(error,response,html) { | |
| if(!error && response.statusCode == 200){ | |
| var $ = cheerio.load(html); | |
| $("#div").each(function(i,element) { | |
| var cols = $(this).find("td"); | |
| console.log( | |
| cols.eq(0).text() |
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
| // early experiments with node had mysterious double requests | |
| // turned out these were for the stoopid favicon | |
| // here's how to short-circuit those requests | |
| // and stop seeing 404 errors in your client console | |
| var http = require('http'); | |
| http.createServer(function (q, r) { | |
| // control for favicon |
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
| <div id="contactForm" class="small-7 medium-7 large-7 columns"> | |
| <form id="myForm" method="post" data-abide> | |
| <h5>Contact Us</h5> | |
| <label>Name</label> | |
| <small class="error">Your full name is required.</small> | |
| <input type="text" placeholder="Full Name" required> | |
| <label>Email</label> | |
| <small class="error">An email address is required.</small> |
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
| #loader { | |
| background: none repeat scroll 0 0 #ffffff; | |
| bottom: 0; | |
| height: 100%; | |
| left: 0; | |
| position: fixed; | |
| right: 0; | |
| top: 0; | |
| width: 100%; | |
| z-index: 9999; |
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 if ( have_posts() ) : query_posts('p=1'); | |
| while (have_posts()) : the_post(); ?> | |
| <?php the_title(); ?> | |
| <?php the_content(); ?> | |
| <?php the_post_thumbnail(array(100, 100)); ?> | |
| <? endwhile; endif; wp_reset_query(); ?> |