using UnityEngine;
using System.Collections;
using System.Net;
using System.IO;
using JsonOrg;
public class NewBehaviourScript : MonoBehaviour {
private string message = "";
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
const upsInterceptor={ | |
async process(handlerInput){ | |
let { requestEnvelope, serviceClientFactory, attributesManager} = handlerInput; | |
let {deviceId} = requestEnvelope.context.System.device; | |
const upsServiceClient = serviceClientFactory.getUpsServiceClient(); | |
const usertimeZone = await upsServiceClient.getSystemTimeZone(deviceId); | |
const requestAttributes = attributesManager.getRequestAttributes(); | |
requestAttributes.timeZone = usertimeZone; | |
attributesManager.setRequestAttributes(requestAttributes); | |
console.log(JSON.stringify(attributesManager.getRequestAttributes())); |
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
sudo apt-get update | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install --lts | |
npm install -g ask-cli |
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
// Original: | |
// http://hypernephelist.com/2014/08/19/https_on_arduino_yun.html | |
// Libraries | |
#include <Process.h> | |
// Literals | |
// #define DEBUG | |
// Constants |
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
package android.stickynotes; | |
import android.nfc.NdefRecord; | |
public interface NdefConverter { | |
public NdefRecord asNdef(); | |
} |
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
package output | |
import javax.xml.bind.{ Marshaller, JAXBContext } | |
import javax.xml.bind.annotation._ | |
import javax.xml.bind.util.JAXBSource | |
import javax.xml.transform.Source | |
import javax.xml.ws.{ Endpoint, Provider, ServiceMode, WebServiceContext, WebServiceProvider } | |
import javax.xml.ws.http.HTTPBinding | |
import javax.xml.ws.handler.MessageContext | |
import javax.annotation.Resource |
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
using Db4objects.Db4o; | |
using System.Linq; | |
using Db4objects.Db4o.Linq; | |
using System.Web; | |
using System.IO; | |
using System; | |
using System.Collections.Generic; | |
namespace Web.Infrastructure { |
NewerOlder