Skip to content

Instantly share code, notes, and snippets.

View ivanpierre's full-sized avatar
😥
A little ill for some time... but work still in progress as possible... ;)

Ivan Pierre ivanpierre

😥
A little ill for some time... but work still in progress as possible... ;)
View GitHub Profile
@ivanpierre
ivanpierre / package
Created November 30, 2021 03:28
Packages for NixOS
adapta-gtk-theme
solarc-gtk-theme
arc-icon-theme
bluez
bluez-tools
bat
cups
bash
fish
zsh
@ivanpierre
ivanpierre / number.rs
Last active March 22, 2021 20:08
At last some light in the making of a dynamic version of Rust with reified Structs and Protocols w/o garbage collector and w/o unsafe code (for now.)
#[test]
fn bidirectionnal_convert() {
// Test object with primitives
use std::any::TypeId;
use crate::clojure;
use clojure::rust::nil::*;
use clojure::rust::number::*;
use clojure::rust::object::*;
@ivanpierre
ivanpierre / install
Last active April 28, 2019 04:49
ArchLinux install
#! /usr/bin/bash
# install ArchLinux on MY Asus laptop on dos w/o UEFI
#
# sda: empty dos disk 690.7G
# sdb: empty dos SSD 24.8 G
# sdb: arch flash install
#
# auth : Ivan Pierre <me@ivanpierre.world>
keymap=fr_CH
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(blink-cursor-mode t)
'(column-number-mode t)
'(custom-safe-themes
(quote
("3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" default)))
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
Verifying that "ivanpierre.id" is my Blockstack ID. https://explorer.blockstack.org/name/ivanpierre.id
@ivanpierre
ivanpierre / clojure.core.instant.clj
Last active December 12, 2016 21:41
Just enough TimeStamp
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.
(ns clojure.instant
(:import [java.util Calendar Date GregorianCalendar TimeZone]
(hello world)
@ivanpierre
ivanpierre / gist:ca8376d3acb014a4785e
Last active August 29, 2015 14:19
Un peu de PHP
// ici tu initialise $entity ?
$entity = new Code();
$form = $this->createForm(new CodeMiniType(), $entity, array(
'action' => $this->generateUrl('index'),
'method' => 'POST',
));
$form->handleRequest($request);
@ivanpierre
ivanpierre / Structure
Created January 19, 2014 21:57
Root structure of a JVM file
(def structures
"Definition of class structures"
'{
; http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.1
:class {:struct [:magic :u4
:minor-version :u2
:major-version :u2
:constant-pool (:cp-info)
:access-flags (:access-flags :class)
:this-class (:const :cst-class)