Skip to content

Instantly share code, notes, and snippets.

Avatar
🇫🇷
Oh yeah !

amiceli amiceli

🇫🇷
Oh yeah !
View GitHub Profile
@amiceli
amiceli / main.rs
Created Dec 30, 2017
docker-stat-example-rust
View main.rs
extern crate regex;
extern crate serde;
extern crate serde_json;
extern crate tiny_http;
#[macro_use]
extern crate serde_derive;
use serde_json::Error;
use std::process::Command;
@amiceli
amiceli / main.go
Created Dec 10, 2017
List trello organization members in go-lang
View main.go
package main
import "fmt"
import "net/http"
import "io/ioutil"
import "encoding/json"
import "bytes"
type Obj struct {
FullName string `json:"fullName"`
@amiceli
amiceli / generatedStyles.less
Created May 22, 2017
Generate margin styles with a Less loop
View generatedStyles.less
//
// Generate padding and margin classes from 0 to 25px
//
.generate-columns(5);
.generate-columns(@n, @i: 0) when (@i =< @n) {
@num : @i * 5;
@amiceli
amiceli / code-to-language.json
Last active Jan 7, 2016
Country code list with language.
View code-to-language.json
{
"nd": "Ndebele, North; North Ndebele",
"ko": "Korean",
"lv": "Latvian",
"sw": "Swahili",
"ba": "Bashkir",
"yo": "Yoruba",
"fr": "French",
"dv": "Divehi; Dhivehi; Maldivian",
"uk": "Ukrainian",
@amiceli
amiceli / MySpec.js
Created Nov 26, 2015
Some JavaScript testing with Jasmine
View MySpec.js
describe("MySpec", function() {
var user = new User('Pablo', 'Escobar')
beforeEach(function() {
spyOn(user, 'getDescription');
spyOn(user, 'setAge');
user.getDescription();
user.setAge(19);
})
@amiceli
amiceli / index.html
Created Oct 5, 2015
Update a part of view Backbone
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Update part view backbone</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="my-view">