Skip to content

Instantly share code, notes, and snippets.

View JBou's full-sized avatar

Gabriel Patzleiner JBou

View GitHub Profile
@JBou
JBou / scroll.css
Created March 19, 2014 22:18 — forked from fanzeyi/scroll.css
::-webkit-scrollbar{
height:16px;
overflow:visible;
width:16px;
}
::-webkit-scrollbar-button{
height:0;
width:0;
}
using System;
using System.Text;
using System.Windows;
using System.Windows.Media.Animation;
namespace leMaik.Animations {
class CryptedTextAnimation : AnimationTimeline {
static CryptedTextAnimation() {
LengthProperty = DependencyProperty.Register("Length", typeof(int), typeof(CryptedTextAnimation));
}
@JBou
JBou / JsonAPI2SDK.cs
Last active August 29, 2015 14:03
JSONAPI SDK updated to API2
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Net;
@Override
public void g(float sideMot, float forMot) {
if(this.passenger != null && this.passenger instanceof EntityHuman) {
this.lastYaw = this.yaw = this.passenger.yaw;
this.pitch = this.passenger.pitch * 0.5F;
this.setYawPitch(this.yaw, this.pitch);//Update the pitch and yaw
this.aI = this.aG = this.yaw;
sideMot = ((EntityLiving)this.passenger).aX * 0.5F;
forMot = ((EntityLiving)this.passenger).aY;
if(forMot <= 0.0F) {
int row[] = {2, 3, 4, 5, 6, 7, 8, 9};
int column[] = {10, 11, 12, 13, A0, A1, A2, A3};
//int buffer[8][8];
int lastRow;
int lastColumn;
void setup() {
// put your setup code here, to run once:
@JBou
JBou / AdventofCode.java
Created December 3, 2015 10:15
AdventofCode - Day 3
import java.lang.Math;
import java.util.ArrayList;
public class HelloWorld
{
public static void main(String[] args)
{
int part = 2;
@JBou
JBou / keybase.md
Created March 22, 2016 09:59
keybase.md

Keybase proof

I hereby claim:

  • I am JBou on github.
  • I am jbou (https://keybase.io/jbou) on keybase.
  • I have a public key whose fingerprint is F205 FF01 4B7D 85A6 9413 CBB8 0A8D E38C 9094 13CD

To claim this, I am signing this object:

@JBou
JBou / Soundcloud app.js
Created January 20, 2017 09:33
Soundcloud app
This file has been truncated, but you can view the full file.
webpackJsonp([2], {
0: function(e, t, n) {
n(1220), e.exports = n(1187)
},
6: function(e, t) {
e.exports = function() {
var e = [];
return e.toString = function() {
for (var e = [], t = 0; t < this.length; t++) {
var n = this[t];
#This script was created by Adam Beazley for public use and may be edited.
#http://www.abeazleydesign.com
#Directions
#Just click in the Import Materials button in the plugins menue and type in the location of all of you image files.
#This script will create a material and name it the same name as the image file and then use that file as the texture.
#all textures will come in at a standard scale and must be edited later
#after all materials and textures have been imported into the model, simply add them to your library
#you can then save the library as a .skm library file through sketchup.
#have fun!!!
#
@JBou
JBou / SoundCloud API Endpoints.cs
Last active January 14, 2024 07:33
SoundCloud API Endpoints
//Authorization
{ ApiCommand.AuthorizationCodeFlow, new Uri("https://soundcloud.com/connect?scope=non-expiring&client_id={0}&response_type={1}&redirect_uri={2}") },
{ ApiCommand.UserAgentFlow, new Uri("https://soundcloud.com/connect?client_id={0}&response_type=token&redirect_uri={1}") },
{ ApiCommand.UserCredentialsFlow, new Uri("https://api.soundcloud.com/oauth2/token?client_id={0}&client_secret={1}&grant_type=password&username={2}&password={3}") },
{ ApiCommand.RefreshToken, new Uri("https://api.soundcloud.com/oauth2/token?client_id={0}&client_secret={1}&grant_type=refresh_token&refresh_token={2}") },
//Me
{ ApiCommand.Me, new Uri("https://api.soundcloud.com/me.json") },
{ ApiCommand.MeTracks, new Uri("https://api.soundcloud.com/me/tracks.json") },
{ ApiCommand.MeComments, new Uri("https://api.soundcloud.com/me/comments.json") },