Skip to content

Instantly share code, notes, and snippets.

View xylude's full-sized avatar
🏠
Working from home

Jason Crider xylude

🏠
Working from home
View GitHub Profile
@xylude
xylude / gist:4526392
Created January 13, 2013 21:53
Easy php soap implementation.
$methodName = 'name_of_remote_soap_method';
$params = array('params'=>'to','send'=>'to','the'=>'server');
$client = new SoapClient("https://wsdl-url", array('trace' => 1, 'exceptions' => false));
$response = $client->{$methodName}($params);
if (get_class($response) !== 'SoapFault') {
print_r($response); //call was successful
} else {
{
"vars": {
"@gray-base": "#3e2723",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#04a3dd",
"@brand-success": "#7fbb42",
Initialize engine version: 5.5.0f3 (38b4efef76f0)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.0]
Renderer: AMD Radeon (TM) R9 390 Series (ID=0x67b1)
Vendor: ATI
VRAM: 3072 MB
Driver: 21.19.137.514
Begin MonoManager ReloadAssembly
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Project Highrise\Game_Data\Managed\UnityEngine.dll (this message is harmless)
import java.util.Random;
public class RandomWalk
{
public static void main(String[] args)
{
Random rand = new Random();
int position = 0;
int zeroCrossings = 0;
int i = 0;
var userList = [];
function getUsers(page, cb) {
management.users.getAll({per_page: 50, page: page},function (err, users) {
if(!err) {
if (users.length > 0) {
userList = userList.concat(users);
getUsers(page + 1, cb);
} else {
if(cb) {
var identities = [];
db.collection("identities").doc("jokerstash").collection("queue").get().
then(snapshot => {
snapshot.forEach(doc => {
var newIdentity = {
status: doc.data().status,
url: doc.data().url,
username: doc.data().username,
pwd: doc.data().pwd,
using UnityEngine;
using ZenFulcrum.EmbeddedBrowser;
public class GameMenuHandler : MonoBehaviour {
public static GameMenuHandler Instance { get; private set; }
public PointerUIGUI hud;
public Browser GameMenuBrowser { get; private set; }
public void Awake() {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
if(typeof test !== 'undefined') {
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Gol : MonoBehaviour {
private float spacing = .5f;
public GameObject Cell;