Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View viniciusjarina's full-sized avatar
😊

Vinicius Jarina viniciusjarina

😊
View GitHub Profile
#Begin
#!/usr/local/bin/python
#import httplib
import urllib
from google.appengine.api import urlfetch
from struct import *
def cellid_2_pos(cellid, lac, mnc = 0, mcc = 0):
using System;
using NLua;
namespace EventLua
{
public class MyClass
{
public Action actionFromLua;
}
@viniciusjarina
viniciusjarina / Xamarin Studio.tmTheme
Created July 15, 2015 17:47
Xamarin Studio tmTheme for Sublime/TextMate
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Xamarin Studio (based on Snappy Light)</string>
@viniciusjarina
viniciusjarina / PrintDataGridView.cs
Created January 22, 2015 12:33
PrintDataGridView
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Printing;
using System.Windows.Forms;
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace AR.Drone.Infrastructure
{
public static class InteropHelper
{
public const string LD_LIBRARY_PATH = "LD_LIBRARY_PATH";
@viniciusjarina
viniciusjarina / culturafm
Last active February 26, 2016 13:55
CulturaFM download
#!/bin/sh
if [$# -ne 2]; then
echo "Usage: $0 output lenght_seconds" >&2
exit 1
fi
#!/bin/sh
/Applications/VLC.app/Contents/MacOS/VLC -v "http://midiaserver.tvcultura.com.br:8003/;stream/1" --sout "#duplicate{dst=std{access=file,mux=raw,dst=$1.mp3}" --stop-time=$2 vlc://quit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NLua;
namespace ConsoleApplication2
{
class Program
@viniciusjarina
viniciusjarina / Dama2001.c
Created July 23, 2013 16:27
Dama2001 - 15 yo checkers
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include "allegro.h"
#include <math.h>
#include <conio.h>
#include <ctype.h>
#define NADA -10
#define X1 ((xf-x0)/abs(xf-x0))
@viniciusjarina
viniciusjarina / UriEscapeTests.cs
Created July 7, 2013 05:28
Uri 4 - 4.5 Escape Tests
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestUri
{
class Program
.....Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) KeraLua.Lua.luaL_unref (intptr,int,int) <IL 0x00025, 0xffffffff>
at NLua.LuaLib.lua_unref (KeraLua.Lua/lua_State,int) <IL 0x0000c, 0x0001f>
at NLua.Lua.dispose (int) <IL 0x0001b, 0x00053>
at NLua.LuaBase.Dispose (bool) <IL 0x00022, 0x0002b>
at NLua.LuaBase.Finalize () <IL 0x00002, 0x00013>
at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff>