Skip to content

Instantly share code, notes, and snippets.

:octocat:

German Viscuso germanviscuso

:octocat:
  • Amazon
  • Madrid
Block or report user

Report or block germanviscuso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CountQueryUnity.mkd
using UnityEngine;
using System.Collections;
using System.Net;
using System.IO;
using JsonOrg;

public class NewBehaviourScript : MonoBehaviour {

	private string message = "";
@Itslet
Itslet / Sessionfactory.cs
Created Jan 9, 2011
Db4o Sessionfactory
View Sessionfactory.cs
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 {
@klauswuestefeld
klauswuestefeld / gist:1103582
Created Jul 25, 2011
PrevaylerJr - "To serve the persistence needs of 99% of information systems in the world using 23 semicolons."
View gist:1103582
import java.io.*;
public class PrevaylerJr {
public static interface Command extends Serializable {
Object executeOn(Object system);
}
@kings13y
kings13y / MinimalRestServer.scala
Created Aug 9, 2011
Sample Rest style service using just Scala and Java 6 annotations
View MinimalRestServer.scala
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
@germanviscuso
germanviscuso / NdefConverter.java
Created Jan 11, 2012
NFC utility classes for Android
View NdefConverter.java
package android.stickynotes;
import android.nfc.NdefRecord;
public interface NdefConverter {
public NdefRecord asNdef();
}
@krhoyt
krhoyt / parse.ino
Last active Mar 16, 2017
Arduino Yun to Parse.com (Process, curl).
View parse.ino
// Original:
// http://hypernephelist.com/2014/08/19/https_on_arduino_yun.html
// Libraries
#include <Process.h>
// Literals
// #define DEBUG
// Constants
@gabrielemariotti
gabrielemariotti / AndroidManifest.xml
Last active Sep 28, 2017
Android Wear: Heart Rate and Samsung Gear Live. (basic example)
View AndroidManifest.xml
<!-- Declare the permission for body sensor -->
<uses-permission android:name="android.permission.BODY_SENSORS" />
@DenisIzmaylov
DenisIzmaylov / INSTALLATION.md
Last active Oct 9, 2018
OS X 10.11 El Capitan: fresh install with Node.js (io.js) Developer Environment
View INSTALLATION.md

OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.

Content

@aondio
aondio / install_ask_cli.sh
Created Oct 12, 2018
script to install ask-cli
View install_ask_cli.sh
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
View TimeZoneInterceptor.js
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()));
You can’t perform that action at this time.