This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); | |
} |