Skip to content

Instantly share code, notes, and snippets.

🦆
\_o<

Rudy Ges kLabz

🦆
\_o<
Block or report user

Report or block kLabz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kLabz
kLabz / README.md
Created Jul 30, 2019
Haxe MaterialUI: withStyles
View README.md

Using Styles.withStyles to style your components

Component without public props

private typedef Props = {
	var classes:TClasses;
}

private typedef TClasses = Classes<[
@kLabz
kLabz / 00 - README.md
Created Jun 2, 2019
[Haxe] Use lix projects without lix
View 00 - README.md
  • Place lix-to-install and lix-to-haxelib in a directory being in your $PATH (~/.bin for example, which you may have to add to your $PATH) and chmod them with chmod +x.

  • Generate a install.hxml file by running this in your project: lix-to-install > install.hxml

  • Install dependencies via haxelib (needs https://github.com/HaxeFoundation/haxelib/pull/456): haxelib install --skipdeps --always install.hxml

View Test.hx
class Test {
static function main() {
var a:Extends<A> = extended({a: "hello", b: "world"});
$type(a); // Extends<A>
trace(haxe.Json.stringify(a));
a.a = "bye";
// a.a = 42; // Int should be String
// a.b = "nope"; // Extends<A> has no field b
trace(haxe.Json.stringify(a));
@kLabz
kLabz / README.md
Last active May 6, 2018
Haxe modular regression
View README.md

I cannot reference Main module in bundles any more since 0.7.4. Common modules work fine, but not main which gets compiles as

var Main, X = $s.a /*, etc.*/;

Main.hx

package;
@kLabz
kLabz / haxelsp.md
Last active Apr 18, 2019
Haxe + LSP + Neovim
View haxelsp.md
View keybase.md

Keybase proof

I hereby claim:

  • I am klabz on github.
  • I am klabz (https://keybase.io/klabz) on keybase.
  • I have a public key ASCaOAOV_l8AZBQGRXZW_-9JU1EyH-hEy0UvOKQNLuKaVwo

To claim this, I am signing this object:

View 01-Unix as IDE.md

Introduction

Newbies and experienced professional programmers alike appreciate the concept of the IDE, or integrated development environment. Having the primary tools necessary for organising, writing, maintaining, testing, and debugging code in an integrated application with common interfaces for all the different tools is certainly a very valuable asset. Additionally, an environment expressly designed for programming in various languages affords advantages such as autocompletion, and syntax checking and highlighting.

With such tools available to developers on all major desktop operating systems including Linux and BSD, and with many of the best free of charge, there’s not really a good reason to write your code in Windows Notepad, or with nano or cat.

However, there’s a minor meme among devotees of Unix and its modern-day derivatives that “Unix is an IDE”, meaning that the tools available to developers on the terminal cover the majo

You can’t perform that action at this time.