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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
class Ranger { | |
public: | |
typedef int value_type; | |
struct iterator { | |
iterator(size_t counter) : counter(counter) {} | |
iterator operator++(){ return iterator(++counter); } | |
bool operator!=(iterator o) { return counter != o.counter; } |
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
#include <string> | |
#include <iostream> | |
#include <sstream> | |
#include <iomanip> | |
#include <stdlib.h> | |
class SafeFormatter{ | |
public: | |
SafeFormatter( const char * s ):fForm(s),fIterator(fForm.begin()){} | |
void compile(){return ;} | |
template< typename T, typename ... A > |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
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
import Vue from 'vue' | |
/** | |
* Usage: | |
* <span v-slot:one="{ slots, value: 'component B2' }"></span> | |
* v-slot:<SLOT_NAME>="{ slots, <VALUE> }" | |
* | |
* Pass the slots like this: | |
* <my-component :slots="$scopedSlots" /> | |
* inside MyComponent define props: ['slots'] |
OlderNewer