I hereby claim:
- I am paulobsf on github.
- I am paulobsf (https://keybase.io/paulobsf) on keybase.
- I have a public key whose fingerprint is 5C07 189C 4762 52DD 1597 62DC B9B0 3716 62C2 A210
To claim this, I am signing this object:
#!/bin/bash | |
# Adapted from https://gist.github.com/adrienbrault/b76631c56c736def9bc1bc2167b5d129 | |
# Clone llama.cpp | |
# git clone https://github.com/ggerganov/llama.cpp.git | |
cd llama.cpp | |
# Build it | |
LLAMA_METAL=1 make |
I hereby claim:
To claim this, I am signing this object:
package me.pauloferreira.ktests; | |
import org.apache.kafka.clients.producer.KafkaProducer; | |
import org.apache.kafka.clients.producer.ProducerRecord; | |
import org.apache.kafka.common.serialization.StringSerializer; | |
import java.util.Date; | |
import java.util.Properties; | |
import java.util.Random; |
// from: http://jbu.io/2015/10/28/six-reasons-why-i-love-go/ | |
package main | |
import "fmt" | |
func fibonacci() chan int { | |
c := make(chan int) | |
go func() { |
var createButtons = function() { | |
for(var i = 0; i < 10; i++) { | |
var btn = document.createElement('button'); | |
var t = document.createTextNode('test ' + i); | |
btn.appendChild(t); | |
(function(i) { | |
btn.addEventListener('click', function() { | |
alert(i); | |
}); |
// https://speakerdeck.com/u/anguscroll/p/how-we-learned-to-stop-worrying-and-love-javascript | |
var Animal = function(gender, says) { | |
this.gender = gender; | |
this.says = says; | |
}; | |
Animal.prototype.speak = function() { | |
console.log(this.says); | |
}; |
// https://speakerdeck.com/u/anguscroll/p/how-we-learned-to-stop-worrying-and-love-javascript | |
var withSpeech = { | |
speak: function () { | |
console.log(this.says || ""); | |
} | |
}; | |
var withWalking = { | |
walk: function() { |
$.ajax({ | |
url: url, | |
data: params, | |
dataType: 'json', | |
success: function(rcvData) {}, | |
error: function() {} | |
}); |
/* | |
* Source: http://www.jeremyjohnstone.com/blog/2007-12-27-useful-javascript-oo-pattern.html/comment-page-1#comment-88 | |
*/ | |
var myObj = function() { | |
// private instance variables | |
var foo = 33; | |
// pseudo static initializer | |
var staticInitializer = function() { | |
// do some code here, will run only once |