Skip to content

Instantly share code, notes, and snippets.

@heimp
heimp / settings.xml
Last active August 14, 2022 16:57
an xml file to get ceylon working with maven again. found on the gitter
<!--
as for issues with maven this is known bug. In Ceylon module resolver there is path to maven central but starts with http which is now disabled in maven central we always get 503 but You can add another repository by providing settings.xml to the project
here is settings xml which works
And then in Your Ceylon project in IDE Your project -> properties -> ceylon build -> module repositories -> Add maven repository and from file explorer select settings.xml
-->
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
@heimp
heimp / gist:cf66909b3e918171f1d83f9773b24df7
Last active December 9, 2017 02:58
howto enable autocomplete for javafx 9 in oxygen.1a????
To enable autocomplete for JavaFX to work for JDK9 in Eclipse Oxygen.1a I had to:
1. Go to Configure build path
2. Go to libraries tab
3. Expand Modulepath and JRE system library
4. Edit access rules (the first thing under jre system library)
5. Add a rule that with an accessible resolution and a rule pattern like this: javafx/**
That should make javafx modules accessible or something. I hope we don't have to do this for very long
@heimp
heimp / set.dart
Created January 9, 2014 15:06
set game for rosetta code maybe
import 'dart:math';
import 'dart:collection';
const NUM_ATTRIBUTES = 4;
const NUM_VALUES_PER_ATTRIBUTE = 3;
const VALID_SET_SIZE = 3;
final COLOURS = ['Red', 'Green', 'Purple'];
final SYMBOLS = ['Diamond', 'Oval', 'Squiggle'];
@heimp
heimp / unordered_list_of_programming_languages.txt
Last active July 21, 2024 02:37
just names and urls of various programming languages that seem kind of interesting to me
Possibly Interesting Programming Languages
Possibly Unmanaged? (By This I Mean "Not Garbage Collected?")
--------------------------------------------
Rust https://www.rust-lang.org/
Pascal http://freepascal.org/
Ada http://www.adaic.org/
ParaSail http://parasail-lang.org/
BitC https://github.com/repos-bitc/bitc
Clay http://claylabs.com/clay
@heimp
heimp / rust_udl.xml
Created September 9, 2013 22:30
Notepad++ syntax highlighter for Rust
<NotepadPlus>
<UserLang name="rust" ext="rs" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 00/// 01 02 03/* 03/** 03/*! 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2">0x 0b</Keywords>
@heimp
heimp / FXExtensions.xtend
Created September 26, 2012 02:11
Xtend extensions for JavaFX
import java.util.Collection
import java.util.List
import java.util.Map
import java.util.Set
import javafx.animation.Animation
import javafx.animation.Animation$Status
import javafx.animation.FadeTransition
import javafx.animation.FillTransition
import javafx.animation.Interpolator
@heimp
heimp / assimil8.coffee
Created July 27, 2012 18:24
Flood It/Pixelated clone in CoffeeScript and jQuery
gridWidth = 20
gridHeight = 10
cellSize = 21
buttonWidth = 70
buttonHeight = 40
colors = ["rgb(220, 20, 60)", "rgb(220, 20, 200)", "rgb(220, 200, 60)", "rgb(120, 50, 60)", "rgb(0, 20, 60)", "rgb(10, 10, 200)"]
grid = []
@heimp
heimp / Pixel8.groovy
Created July 27, 2012 17:44
Flood It/Pixelated clone in GroovyFX
import static groovyx.javafx.GroovyFX.start
import groovyx.javafx.beans.FXBindable
import javafx.scene.*
import javafx.scene.text.*
import javafx.scene.shape.*
import javafx.scene.paint.*
import javafx.scene.layout.*
import javafx.beans.property.*
import javafx.event.*