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 socket = io.connect('http://localhost'); | |
| var startTime; | |
| setInterval(function() { | |
| startTime = Date.now(); | |
| socket.emit('ping'); | |
| }, 2000); | |
| socket.on('pong', function() { | |
| latency = Date.now() - startTime; |
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
| /* eslint-disable func-names */ | |
| /* eslint quote-props: ["error", "consistent"]*/ | |
| /** | |
| * This sample demonstrates a simple skill built with the Amazon Alexa Skills | |
| * nodejs skill development kit. | |
| * This sample supports multiple lauguages. (en-US, en-GB, de-DE). | |
| * The Intent Schema, Custom Slots and Sample Utterances for this skill, as well | |
| * as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact | |
| **/ |
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
| :global .btn-primary { | |
| color: red; | |
| } |
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
| { | |
| "name": "hapiapp", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "server.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "start": "node server.js" | |
| }, | |
| "author": "", |
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
| Time: 58812ms | |
| Asset Size Chunks Chunk Names | |
| bundle.js 690 kB 0 [emitted] main | |
| [0] multi main 28 bytes {0} [built] | |
| + 680 hidden modules | |
| ERROR in ./~/lodash/lodash.js | |
| Module not found: Error: Cannot resolve 'file' or 'directory' ./100.112.156.64/volume-5-default/96608a00bf0dbc879efe/29786da32b734108a2f6ba4735cc3acc/site/wwwroot/node_modules/webpack/buildin/module.js in D:\home\site\wwwroot\node_modules\lodash | |
| resolve file | |
| D:\home\site\wwwroot\node_modules\lodash\100.112.156.64\volume-5-default\96608a00bf0dbc879efe\29786da32b734108a2f6ba4735cc3acc\site\wwwroot\node_modules\webpack\buildin\module.js doesn't exist |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.ccny.semanticweb" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <uses-sdk | |
| android:minSdkVersion="14" | |
| android:targetSdkVersion="17" /> |
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 games_union (arr1, arr2) { | |
| var union = arr1.concat(arr2); | |
| for (var i = 0; i < union.length; i++) { | |
| for (var j = i+1; j < union.length; j++) { | |
| if (are_games_equal(union[i], union[j])) { | |
| union.splice(i, 1); | |
| console.log(union[i]); | |
| } | |
| } | |
| } |
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 javax.swing.*; | |
| import java.io.*; | |
| import java.text.Format; | |
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.ArrayList; | |
| import java.util.Date; | |
| import java.util.*; | |
| /** |
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
| // Name: Sahat Yalkabov | |
| // Date: September 15, 2011 | |
| // Class: CS22100 | |
| // Homework 1: Radiation Data Log | |
| import java.util.ArrayList; | |
| import java.util.Collections; // to get minimum and maximum | |
| import javax.swing.JOptionPane;; | |
| class hw1 { |
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
| angular.module('MyApp') | |
| .directive('repeatPassword', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, elem, attrs, ctrl) { | |
| var otherInput = elem.inheritedData("$formController")[attrs.repeatPassword]; | |
| ctrl.$parsers.push(function(value) { | |
| if (value === otherInput.$viewValue) { | |
| ctrl.$setValidity('repeat', true); |
NewerOlder