Skip to content

Instantly share code, notes, and snippets.

samhains

Block or report user

Report or block samhains

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 GTA wander bot
using GTA;
using System;
using GTA.Native;
using System.Windows.Forms;
public class ScriptTutorial : Script
{
bool isBotEngaged = true;
public ScriptTutorial()
View Interact.cs
/// ---------------------------------------------
/// Ultimate Character Controller
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
using UnityEngine;
using Opsive.UltimateCharacterController.Game;
using Opsive.UltimateCharacterController.Events;
using Opsive.UltimateCharacterController.Traits;
View output_paradise_town.txt
Welcome to Paradise Town
The worlds longest running automated Reality Television series
Today we will be following the life of automaton, Judy Egerton, a light-skinned woman with long brown hair.
Judy Egerton, has a partner and their name is Bernard Allemand.
Bernard Allemand, a light-skinned man with glasses and long brown hair from 100 block of Christian Avenue.
Judy Egerton spark levels are at around 9, while Bernard Allemand spark levels are at around 6.
Neither of them are into eachother.
Judy Egerton wipes her eyeballs and wanders to 6th Street Apartments.
Irritatingly, as Judy Egerton continues to go to the 6th Street Apartments, they hear their stranger Geoff Wymer waiting for them by the escalator.
I bet there are a lot of automaton boys that would spend long evenings with you, Judy Egerton. Are you curious about anyone?
View Garden of Live Flowers
"The Garden of Live Flowers" by Sam Hains
[This is a comment.]
The House is a room."You are at the door to your house. If you head north there is a path that leads to the top of a hill in the distance.". The Garden is a room. “The path gives to a sudden twist and shakes itself, the next moment you find yourself walking in at the door. There is nothing to be done but to start again. However, this time there is a large flower-bed, with a willow-tree growing in the middle.” .The Corkscrew Path is a room."How curiously the path twists! It is more like a corkscrew than a path! Well, THIS turn goes to the hill, I suppose- no, it doesn't!". The Dark Garden is a room."The garden has been covered in a cloak of darkness. There are many sets of eyes in the night sky, and you can hear the sound of television static and canned laughter. You feel paranoid.". The Corkscrew Path is north of The House.
Following is an action applying to nothing.
Understand “follow” or "follow path" as following.
Release along with an inter
View maskBlur.frag
#version 150
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect tex, mask;
uniform vec2 direction;
in vec2 texCoordVarying;
out vec4 outputColor;
uniform int k;
void main() {
vec2 pos = texCoordVarying;
View OpenFrameworksTOP.cpp
#include "OpenFrameworksTOP.h"
#include <windows.h>
#include <gl/glew.h>
#include <cstdio>
#include <assert.h>
#include <stdio.h>
#include <string.h>
View OpenFrameworksTOP.cpp
#include "OpenFrameworksTOP.h"
#include <windows.h>
#include <gl/glew.h>
#include <cstdio>
#include <assert.h>
#include <stdio.h>
#include <string.h>
@samhains
samhains / getFaceKeypoints.py
Created Apr 18, 2018
FaceSwap-DAN modifications for multiple faces
View getFaceKeypoints.py
def getFaceKeypoints(img, detector, predictor, inputLandmarks=None, frameCounter=0):
shapes2D = []
# if inputLandmarks is None or frameCounter % 10 == 0:
#detekcja twarzy
dets = detector(img, 1)
if len(dets) == 0:
return None
View week_3_video_fx_mixer.maxpat
{
"boxes" : [ {
"box" : {
"maxclass" : "flonum",
"maximum" : 3.0,
"minimum" : -1.0,
"style" : "",
"numinlets" : 1,
"id" : "obj-31",
"numoutlets" : 2,
@samhains
samhains / parse_xbee.py
Created Nov 29, 2017
code for parsing xbee protocol in python with touch designer
View parse_xbee.py
#
# dat - the DAT that received the data
# rowIndex - the row number the data was placed into
# message - an ascii representation of the data
# Unprintable characters and unicode characters will
# not be preserved. Use the 'bytes' parameter to get
# the raw bytes that were sent.
# bytes - byte array of the data received
import binascii
You can’t perform that action at this time.