Skip to content

Instantly share code, notes, and snippets.

View lildata's full-sized avatar

Programming is fun lildata

View GitHub Profile
@lildata
lildata / Courses.sol
Created April 7, 2019 18:49
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.7+commit.6da8b019.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract Courses {
string fName;
uint age;
function setInstructor(string _fName, uint _age) public {
fName = _fName;
age = _age;
@lildata
lildata / Courses.sol
Created April 7, 2019 18:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.7+commit.6da8b019.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract Courses {
string fName;
uint age;
function setInstructor(string _fName, uint _age) public {
fName = _fName;
age = _age;
@lildata
lildata / ArchiColoursMaterial.prefs
Created May 13, 2018 11:09
Archi 4 Material color theme for Archimate elements
#Sun May 13 13:06:45 CEST 2018
defaultFillColour_ImplementationEvent=\#f8c6d7
defaultFillColour_Driver=\#e4cee7
defaultFillColour_ApplicationProcess=\#bbdefb
defaultFillColour_BusinessActor=\#fff9c4
defaultFillColour_Outcome=\#e4cee7
defaultFillColour_Resource=\#ffe0b2
defaultFillColour_Representation=\#fff9c4
defaultFillColour_Facility=\#b2dfdb
defaultFillColour_Gap=\#dbe6db
@lildata
lildata / clipboard.clj
Created September 22, 2017 19:45 — forked from exupero/clipboard.clj
Clojure code to interact with the system clipboard
(refer-clojure :exclude '[slurp spit])
(import '[java.awt.datatransfer DataFlavor StringSelection Transferable])
(defn clipboard []
(.getSystemClipboard (java.awt.Toolkit/getDefaultToolkit)))
(defn slurp []
(try
(.getTransferData (.getContents (clipboard) nil) (DataFlavor/stringFlavor))
(catch java.lang.NullPointerException e nil)))
As seen on https://brendanzagaeski.appspot.com/0004.html
%PDF-1.1
%¥±ë
1 0 obj
<< /Type /Catalog
/Pages 2 0 R
@lildata
lildata / README.md
Created June 2, 2017 10:20 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@lildata
lildata / webview-for-martin.clj
Created December 29, 2016 22:24 — forked from jackrusher/webview-for-martin.clj
An example boot-ified Swing app that contains a JavaFX WebView (Webkit instance).
#!/usr/bin/env boot
;; -*- mode: Clojure;-*-
(set-env! :dependencies '[[seesaw "1.4.5"]])
(use 'seesaw.core)
(import '(javafx.scene.web WebView)
'(javafx.scene SceneBuilder)
'(javafx.scene.layout VBoxBuilder))
@lildata
lildata / maps2vecs.clj
Last active January 12, 2017 19:43
▤ tables & ℳ matrix
user=> (def m1 [{:a 1 :b 2 :c 3} {:a 4 :b 5 :c 6} {:a 7 :c 9 :b 8 :d 10}])
#'user/m1
user=> (vec (for [m m1] ((juxt :a :b :c) m)))
[[1 2 3] [4 5 6] [7 8 9]]
@lildata
lildata / some-beat.clj
Last active March 25, 2016 10:49
overtone 🎹 🎧
(def nome (metronome 500))
(defn some-beat [nome]
(let [beat (nome)]
; kick drum pattern
(at (nome beat) (kick))
(at (nome (+ 5 beat)) (kick))
(at (nome (+ 7 beat)) (kick))
(apply-at (nome (+ 8 beat)) some-beat nome [])))