Skip to content

Instantly share code, notes, and snippets.

View jeffrydegrande's full-sized avatar

Jeffry Degrande jeffrydegrande

View GitHub Profile
#!/bin/bash
#
# This script will create a 'backend.md' and 'frontend.md' containing
# all the source code in the current directory. You can then upload these
# files to a custom GPT. It's setup for my golang project but you can easily
# modify it to suit your needs.
#
# This script requires 'fd' to be installed.
set -e
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public class Event
{
private DateTime date;
[JsonProperty("name")]
public string Name { get; set; }
### Keybase proof
I hereby claim:
* I am jeffrydegrande on github.
* I am jeffrydegrande (https://keybase.io/jeffrydegrande) on keybase.
* I have a public key ASC9re1jba9Z2-1xxMdMlXTUUKywabAddib3Zz_IyAPSBgo
To claim this, I am signing this object:
@jeffrydegrande
jeffrydegrande / GIF-Screencast-OSX.md
Created December 17, 2016 03:54 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

#include "SDL.h"
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define SPRITE_SIZE 32
SDL_Texture *loadTexture(SDL_Renderer *renderer, const char *filename, int colorkey) {
SDL_Surface *bmp = SDL_LoadBMP(filename);
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
wget -q -O - http://apt.hellobits.com/hellobits.key | apt-key add -
echo "deb http://apt.hellobits.com/ precise main" > /etc/apt/sources.list.d/hellobits.list
apt-get update
apt-get install -y build-essential \
git \

May 2012 - Present (9 months)

LuckyLady is a company I founded together with my wife. She offers spiritual advice and counseling through a number of web properties and a custom CRM I develop and maintain. http://www.raizesespirituais.com.br

Programmer @ objetiva, November 2010 - Present (2 years 3 months)

Objetiva is a consulting company I co-founded. We help startups through their first cycles of product development or when their product has gone down the tube because someone made a mess. At this point we've frozen activities because both my co-founder and myself have burned out on the consulting business. I'm currently still working with one of our clients but it's more an on the side thing. http://www.objetiva.co/?locale=en

class Ajax
@getJSON: (url, event)->
$.getJSON url, (data)->
Event.trigger(event, data)
class Router
@prefix = "something"
@path: (url)-> @prefix + url
@pathWithArgs: (url, args)-> @prefix + url + @serialize(args)
@serialize = (obj, prefix) ->
str = []
for p, v of obj
k = if prefix then prefix + "[" + p + "]" else p
if typeof v == "object"
str.push(serialize(v, k))
class Router
@people_path: -> "/people"
@person_path: (id)-> "/person/#{id}/"