Skip to content

Instantly share code, notes, and snippets.

View emurmotol's full-sized avatar
😎
I may be slow to respond.

emurmotol

😎
I may be slow to respond.
View GitHub Profile
@emurmotol
emurmotol / storage.sol
Created July 4, 2018 09:34
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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract SimpleStorage {
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() public view returns (uint) {
@emurmotol
emurmotol / CrowdFund.sol
Created July 4, 2018 09:31
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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity 0.4.11;
contract CrowdFund {
addres public beneficiary;
uint public goal;
uint public deadline;
mapping(addres => uint) funder;
@emurmotol
emurmotol / git_branch_naming.md
Created March 4, 2018 08:04 — forked from revett/git_branch_naming.md
Git Branch Naming Conventions

<type>/<name>

<type>

bug    - Code changes linked to a known issue.
feat   - New feature.
hotfix - Quick fixes to the codebase.
junk   - Experiments (will never be merged).
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>WebSockets in Go</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
try {
var sock = new WebSocket("ws://localhost:8080/ws");
@emurmotol
emurmotol / hello.go
Created January 22, 2017 14:28
Hello world
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}
/* e-Gizmo RFID kit Arduino Demo */
// defines used by the serial event
// do not modify
#define STX 2
#define ETX 3
#define SERIALSTX 0
#define SERIALETX 1
#define SERIALRDY 2
// So here goes my code
public static function cardholdersJson() {
$path = resource_path('assets/json/cardholders.json');
$collection = collect(json_decode(file_get_contents($path), true));
$cardholders = $collection->map(function($cardholder) {
return ['password' => bcrypt($cardholder['password'])]; // I need to hash each of the password
});
return $cardholders->all(); // before I return this