Skip to content

Instantly share code, notes, and snippets.

View psvehla's full-sized avatar

Peter Svehla psvehla

  • Sydney, Australia.
View GitHub Profile
main: build = 928 (11f3ca0)
main: seed = 1690723696
llama.cpp: loading model from llama-2-13b-chat.ggmlv3.q4_0.bin
llama_model_load_internal: format = ggjt v3 (latest)
llama_model_load_internal: n_vocab = 32000
llama_model_load_internal: n_ctx = 512
llama_model_load_internal: n_embd = 5120
llama_model_load_internal: n_mult = 256
llama_model_load_internal: n_head = 40
llama_model_load_internal: n_head_kv = 40
pragma solidity ^0.6.2;
contract SoapBox {
// Our 'dict' of addresses that are approved to share opinions
mapping (address => bool) approvedSoapboxer;
string opinion;
// Our event to announce an opinion on the blockchain
event OpinionBroadcast(address _soapboxer, string _opinion);
pragma solidity ^0.6.2;
/**
* @title Bounties
* @author Peter (based on tute)
* @dev Smart contract that allows a user to issue a bounty in ETH for the fulfilment of a task.
*/
contract Bounties {
@psvehla
psvehla / hello.sol
Last active January 27, 2020 01:02
A hello world Vyper contract.
pragma solidity 0.5.3; // Solidity version 0.5.3, pragma used to enable certain compiler features or checks
contract HelloWorld // defining the contract
{
string greeting; // defining the state string variable 'greeting'
constructor() // constructor function, optional, executed once upon deployment and cannot be called again
public
{
greeting = "Hello, World.";
@psvehla
psvehla / liferayContent.jsp
Created October 4, 2012 00:04
Liferay article API snippet
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<script type="text/javascript" src="/html/js/liferay/service.js"> </script>
<script type="text/javascript">
function unEscapeHTML(html) {
return html.replace(/\&amp;/g, '&').replace(/\&lt;/g, '<').replace(/\&gt;/g, '>');
}