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
@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();
}
@caniszczyk
caniszczyk / clone-all-twitter-github-repos.sh
Created Oct 9, 2012
Clone all repos from a GitHub organization
View clone-all-twitter-github-repos.sh
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active Oct 16, 2019
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew
View fix-homebrew-npm.md

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

View CountQueryUnity.mkd
using UnityEngine;
using System.Collections;
using System.Net;
using System.IO;
using JsonOrg;

public class NewBehaviourScript : MonoBehaviour {

	private string message = "";
@staltz
staltz / introrx.md
Last active Oct 17, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@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" />
@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
You can’t perform that action at this time.