This file contains 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
import React, { Component } from 'react'; | |
import './game.css'; | |
import Game from './Game'; | |
require('typeface-press-start-2p'); | |
function App(props) { | |
return ( | |
<Game |
This file contains 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
// Copyright 2017, Victor R. Cabrera | |
#include "../include/Parser.hpp" | |
using string_array = std::vector<std::string>; | |
using list = std::vector<TaggedUnion>; | |
string_array Parser::split(const std::string & lisp_list) { | |
/* create a new list that'll hold each string value in a vector. */ | |
string_array split_list; | |
/* if it's empty, there is nothing to compute. */ | |
if (!lisp_list.empty()) { |
This file contains 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
#include "lfucache.hpp" | |
int main() { | |
LFUCache obj(2); | |
obj.put(2,2); | |
cout << obj.get(1) << endl; | |
obj.put(3,3); | |
cout << obj.get(2) << endl; | |
cout << obj.get(3) << endl; | |
obj.put(4,4); |