Skip to content

Instantly share code, notes, and snippets.

/*!
* jQuery ClassyLoader
* www.class.pm
*
* Written by Marius Stanciu - Sergiu <marius@class.pm>
* Licensed under the MIT license www.class.pm/LICENSE-MIT
* Version 1.1.0
*
*/(function(d){d.fn.ClassyLoader=function(a){a=d.extend({},{
width:200,
{
"name": "load-google-maps",
"version": "1.0.0",
"authors": ["Glenn Baker", "Gavin Foley", "Matteo Gaggiano"],
"description": "Load Google Maps API using jQuery Deferred.",
"main": "load-google-maps.js",
"keywords": ["Google Maps", "Async"],
"license": ["MIT", "GPL"],
"dependencies": {
"jquery": ">=1.5"
@marchrius
marchrius / app.js
Created July 8, 2016 15:36 — forked from imjoshholloway/app.js
ngPluralize but with support for HTML
angular.module('myApp', ['ngPluralizeHtml'])
function AppController() {
var vm = this;
vm.count = 10;
}
.controller('AppController', AppController);
@marchrius
marchrius / broadcom_bcm4325.sh
Created April 28, 2015 15:18
Broadcom driver for 3.19 kernel verison 64bit
#!/bin/bash
# execution permissions: chmod +x broadcom_bcm4325.sh
# execute with: ./broadcom_bcm4325.sh
# need root access to work properly
cd /tmp
wget http://marchrius.altervista.org/blog/download/broadcom_3.19.tar.gz
mkdir broadcom_3.19
@marchrius
marchrius / hex2int.h
Created November 27, 2014 11:28
Hexadecimal to Decimal (Int)
#include <math.h>
#include <string.h>
int hex2int(const char * s)
{
char charset[] = "0123456789abcdef";
int i = (int)strlen(s), len = i, num = 0, j = 0;
while (i >= 0) {
for (j = 0; j < 16; j++) {
if (charset[j] == s[i]) {
@marchrius
marchrius / hash.c
Created June 21, 2014 11:18 — forked from tonious/hash.c
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
struct entry_s {
char *key;
char *value;
@marchrius
marchrius / reverse.c
Created June 30, 2012 11:27
Reverse a word or a phrase
//
// reverse.c
//
//
// Created by Matteo Gaggiano on 23/06/12.
// Copyright (c) 2012 Marchrius. All rights reserved.
//
#include <stdio.h>
#include <string.h>