bug - Code changes linked to a known issue.
feat - New feature.
hotfix - Quick fixes to the codebase.
junk - Experiments (will never be merged).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract SimpleStorage { | |
uint storedData; | |
function set(uint x) public { | |
storedData = x; | |
} | |
function get() public view returns (uint) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.4.11; | |
contract CrowdFund { | |
addres public beneficiary; | |
uint public goal; | |
uint public deadline; | |
mapping(addres => uint) funder; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello, 世界") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
NewerOlder