Skip to content

Instantly share code, notes, and snippets.

View KokaKiwi's full-sized avatar
🥝
rolling

KokaKiwi KokaKiwi

🥝
rolling
View GitHub Profile
@KokaKiwi
KokaKiwi / Skills.js
Last active October 11, 2017 08:18 — forked from anonymous/Skills.js
skills.js
import React from 'react'
import PropTypes from 'prop-types'
import Button from './Button'
import Container from './Container'
import addCircle from '../../public/icons/add-circle-grey.svg'
import './Skills.css'
const renderOwner = (isOwner) => {
if (isOwner) {
#!/usr/bin/env python3
"""
Get Rick & Morty episodes ("rick" as in "https://ctoon.party/rick"):
> scrapy runspider ctoonparty.py -o rick.json -a show=rick
(add -a season=2 to get only one season)
Extract links only:
> jq '.[].url' -r < rick.json > rick.txt
> wget -c -i rick.txt
@KokaKiwi
KokaKiwi / playground.rs
Last active September 2, 2016 13:30 — forked from anonymous/playground.rs
Shared via Rust Playground
use std::io::Read;
use std::net::{TcpListener, TcpStream};
use std::thread;
use std::str;
fn handle_client(mut stream: TcpStream) {
println!("{:?}, {:?}", stream.peer_addr(), stream.local_addr());
let mut buffer : [u8; 4048] = unsafe { ::std::mem::uninitialized() }; // Pourquoi faire un "buffer = " après? O_o
loop {
match stream.read(&mut buffer) {
#include <string>
#include <iostream>
#include "ex00.hh"
const Cluedo::Weapon::Name Cluedo::Weapon::PartOfTheCrime = Corde;
const Cluedo::Suspect::Name Cluedo::Suspect::PartOfTheCrime = Pr_Violet;
const Cluedo::Room::Name Cluedo::Room::PartOfTheCrime = Veranda;
int main()
{
@KokaKiwi
KokaKiwi / Problème.java
Created March 14, 2012 17:38 — forked from anonymous/Problème
Problème
Case ca[] = new Case[9];
for(int i = 0; i < ca.length; i++)
{
Case c = new Case(); // T'initialise comme tu veux ici ;)
ca[i] = c;
pan.add(ca[i]);
}