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 UnityEngine; | |
using System.Collections; | |
public class Mathf2 { | |
public static RaycastHit WhatDidWeHit(Vector2 v){ | |
Ray ray = Camera.main.ScreenPointToRay (v); | |
RaycastHit hit = new RaycastHit (); | |
hit.point = FarFarAway; | |
if(Physics.Raycast(ray, out hit,3000f)){ |
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
n,r,c=31,range,'x ' | |
s=map(r,[n]*n) | |
def f(x): | |
q=r(x,n-x) | |
for i in q: | |
for j in q:s[i][j]=c[x%2] | |
for i in r(0,n/2,2):f(i),f(i+1);s[i+2][i+1],s[i+1][i]=c | |
for r in s:print' '.join(r) |
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
<?php | |
/*// a quick'n'dirty php-only universal script | |
// that fetches the latest $total_pages*100 tweets | |
// containing the word $query | |
// coded live during #VMWorld during the #vHunt as an | |
// unofficial count of the number of tweets per participant | |
// hacked on an iPhone with ZAGG bluetooth keyboard |
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 com.testing123.pentest; | |
import com.unity3d.player.UnityPlayerActivity; | |
import java.util.HashMap; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Color; | |
import android.os.Bundle; | |
import android.util.Log; |
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
<?php | |
if($query!=''){ | |
$blurb = array(); | |
for($i=1;$i<=10;$i++){ | |
$blurb[$i] = file_get_contents('http://search.twitter.com/search.json?page='.$i.'&rpp=100&q='.$query); | |
} |
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
#define READABLE | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/* | |
* http://www.opensource.org/licenses/lgpl-2.1.php | |
* JSONObject class | |
* for use with Unity |
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
// Loop through and create a centered character for each character in @str, uses background defined by @fileRef, and saves everything in @fileLoc/str[i].png | |
// of all the characters on the keyboard, apparently : is the only character you cannot start a filename with ... :.png is invalid (manually excepted to colon.png)! | |
// @yosun 1/27/2013 11:11 | |
var originalUnit = preferences.rulerUnits; | |
preferences.rulerUnits = Units.PIXELS; | |
var docRef; var artLayerRef; var textItemRef; | |
var type="diffuse"; |
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 UnityEngine; | |
using System.Collections; | |
public class IntelPerC : MonoBehaviour { | |
// v0.11 | |
// voice - dictation/resetdictation | |
// gesture - returns conf, openness, worldposition, normal | |
// face - rect | |
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
g ARFaceMeshManager | |
v -0.0001029222 -0.02701414 -0.05503087 | |
v -9.985825E-05 -0.02928277 -0.05665697 | |
v -0.000120165 -0.02432592 -0.05374158 | |
v -0.0001382973 -0.02188213 -0.05305533 | |
v -0.0001613813 -0.01988834 -0.0530135 | |
v -0.0001966723 -0.01697339 -0.05568298 | |
v -0.0002091445 -0.01271136 -0.06034805 | |
v -0.0002085566 -0.008412322 -0.0625201 | |
v -0.0002065404 -0.00307607 -0.06267682 |
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
'use strict'; | |
const Alexa = require('alexa-sdk'); | |
exports.handler = (event, context) => { | |
// TODO implement | |
const alexa = Alexa.handler(event, context); | |
alexa.appId = undefined;// "amzn1.ask.skill.c86d5355-97ac-4e3b-954e-5913e99c7e40"; | |
// To enable string internationalization (i18n) features, set a resources object. | |
OlderNewer