some tools for diagrams in software documentation
#include <chrono> | |
#include <cstdint> | |
#include <iostream> | |
#include <random> | |
#include <sstream> | |
using namespace std; | |
using namespace std::chrono; | |
const uint64_t P01 = 10; |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
=begin | |
github_toc v0.2.0 | |
Brett Terpstra 2014 | |
<http://brettterpstra.com/2014/07/01/github-toc-service/> | |
Creates a linked table of contents from headers in a GitHub readme | |
Place a [toc] marker in the file to have it automatically replaced with the TOC |
module Main | |
{- Divide x by y, as long as there is a proof that y is non-zero. The | |
'auto' keyword on the 'p' argument means that when safe_div is called, | |
Idris will search for a proof. Either y will be statically known, in | |
which case this is easy, otherwise there must be a proof in the context. | |
'so : Bool -> Type' is a predicate on booleans which only holds if the | |
boolean is true. Essentially, we are making it a requirement in the type | |
that a necessary dynamic type is done before we call the function -} |
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
In React's terminology, there are five core types that are important to distinguish:
React Elements
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
// by Erik Wrenholt | |
import java.util.*; | |
class Mandelbrot | |
{ | |
static int BAILOUT = 16; | |
static int MAX_ITERATIONS = 1000; | |
private static int iterate(float x, float y) | |
{ |