Skip to content

Instantly share code, notes, and snippets.

View erickgirard's full-sized avatar
🦊

Erick Girard erickgirard

🦊
View GitHub Profile
@erickgirard
erickgirard / Program.csx
Last active January 26, 2017 14:22
Civic address problem
using System;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var numbers = new[] { "1425", "33133", "3587", "2080" };
@erickgirard
erickgirard / 0_reuse_code.js
Created August 31, 2016 20:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@erickgirard
erickgirard / HomeController.cs
Created January 14, 2016 03:44
whois client
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
namespace WebApplication1.Controllers
class CodeHulk
def self.decode(encoded_text)
decoded_text = ''
text = encoded_text
text = text.gsub(@@start_encoded_text, '')
text = text.gsub(@@end_encoded_text, '')
text.split('').each do |c|
if(@@dictionary.include?(c))
decoded_text << @@dictionary[c]