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
| //Accent color is given by PhoneAccentColor ressource. Its type is System.Windows.Media.Color | |
| using System.Windows.Media; | |
| Color AccentColor() | |
| { | |
| return (Color)Application.Current.Resources["PhoneAccentColor"]; | |
| } | |
| //To make a TextBlock theme-aware use the Style property | |
| <TextBlock Style="{StaticResource PhoneTextAccentStyle}"/> |
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
| <configuration> | |
| <system.webServer> | |
| <!-- indicates that the server.js file is a node.js application | |
| to be handled by the iisnode module --> | |
| <handlers> | |
| <add name="iisnode" path="server.js" verb="*" modules="iisnode" /> | |
| </handlers> |
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 target = ""; | |
| var $search = $('#search'); | |
| var $input = $('#target'); | |
| //sliding list | |
| $(document).on('mouseenter', 'dt', function() { | |
| $(this) | |
| .next() | |
| .slideDown(200) |
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 target = ""; | |
| var $search = $('#search'); | |
| var $input = $('#target'); | |
| $(document).on('click','button.close',function() { | |
| var name= '#'+ $(this).attr('name'); |
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
| exports.findhotel = function(req, res) { | |
| var q = []; | |
| var flag = 0; | |
| var queryString = req.query.id; | |
| var idx = hotel_array.state.indexOf(queryString); | |
| while (idx != -1) { | |
| flag = 1; | |
| q.push(hotel[idx]); | |
| idx = hotel_array.state.indexOf(queryString, idx + 1); |
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.onpopstate = function(e) { | |
| console.log("onpopstate called"); | |
| if (e.state) { | |
| console.log('going back'); | |
| $('#search-type').text(e.state.text); | |
| target = e.state.target; | |
| console.log("target: "+target); | |
| if (target == "home") { |
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> | |
| <head> | |
| <title>Place searches</title> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
| <meta charset="utf-8"> | |
| <link href="default.css" rel="stylesheet"> | |
| <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true&libraries=places"></script> | |
| <script> |
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 target = $('.target').val(); | |
| var $search = $('#search'); | |
| var $input = $('input:text'); | |
| var obj; | |
| var url_obj = {}; | |
| var url_flag = true; | |
| $(document).on('click', 'button.close', 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
| #heart { | |
| margin-top: -10px; | |
| margin-left: 3px; | |
| -webkit-animation: heartPulse 2s ease-out infinite; | |
| image-rendering: -webkit-optimize-contrast; | |
| } | |
| @-webkit-keyframes heartPulse { | |
| 0% { | |
| -webkit-transform-origin: 50% 100%; | |
| -webkit-transform: scale(1); |
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 <stdio.h> | |
| #define MAX 15 | |
| void f(int a[],int l){ | |
| int i,tail; | |
| tail=0; | |
| for(i=0;i<l;i++){ | |
| if(a[i]==0){continue;} | |
OlderNewer