Skip to content

Instantly share code, notes, and snippets.

View stablearc's full-sized avatar
🎯
Focusing

Arc stablearc

🎯
Focusing
View GitHub Profile
@stablearc
stablearc / beautiful-wikipedia-viewer.markdown
Last active February 7, 2017 07:35
Beautiful Wikipedia viewer

Beautiful Wikipedia viewer

#Dynamic wikipedia search on the go ##Description- - This is an wikipedia searching and viewer app - This app dynamically return search results as you type the query - Uses Mediawiki api to parse search data - I made this pen for fun and learning purpose, - Anyone is free to use the code used. ##Assets-

@stablearc
stablearc / index.haml
Last active September 10, 2016 18:03
Twitch Tv Stremers
.container
#title
%h1 Twitch Streamers
#nav
%ul.nav.nav-pills
%li#p1.active
%a{:href => "#"} All
%li#p2
%a{:href => "#"} Online
%li#p3
@stablearc
stablearc / index.html
Last active October 10, 2016 17:47
Random Quote Generator
<head>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
</head>
<body>
<div class="container quotebox">
<div id="bod">
<div id="heading">
<h2 class="text-info">Greatest Quotes by</h2>
<h3 class="text-info">Tech Genuises</h3></div>
@stablearc
stablearc / eos-hello.cpp
Last active September 23, 2018 11:12
EOS hello world smart contract
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
using namespace eosio;
class hello : public eosio::contract {
public:
using contract::contract;
[[eosio::action]]
void hi() {
#include <eosiolib/eosio.hpp>
#include <eosiolib/transaction.h>
#include <string>
#include <eosiolib/crypto.h>
using std::string;
using eosio::key256;
using namespace eosio;
pragma solidity ^0.4.20;
contract poe {
mapping(string => uint) proof;
event Exists(string data, uint blockNumber);
function prove(string data) constant public returns (uint) {
return proof[data];
}
@stablearc
stablearc / EOSIO_token.cpp
Last active March 9, 2019 16:15
EOS Blockchain smart contract for Token deployment (ERC20 equivalent smart contract on EOS)
#include "eosio.token.hpp"
namespace eosio {
void token::create( name issuer,
asset maximum_supply )
{
require_auth( _self );
auto sym = maximum_supply.symbol;
@stablearc
stablearc / EOSIO_token.hpp
Last active March 9, 2019 15:03
EOSIO Token interface library file
#pragma once
#include <eosiolib/asset.hpp>
#include <eosiolib/eosio.hpp>
#include <string>
namespace eosiosystem {
class system_contract;
}
{
"expiration": "...",
"region": 0,
"ref_block_num": ...,
"ref_block_prefix": ...,
"net_usage_words": ..,
"kcpu_usage": ..,
"delay_sec": 0,
"context_free_actions": [],
"actions": [{
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
using namespace eosio;
class hello : public eosio::contract {
public:
using contract::contract;
void hi() {
print( "Hello, World");
}
};