Skip to content

Instantly share code, notes, and snippets.

View pubudu-ranasinghe's full-sized avatar
🦄
¯\_(ツ)_/¯

Pubudu Ranasinghe pubudu-ranasinghe

🦄
¯\_(ツ)_/¯
View GitHub Profile
Amahi
Bazel
BeagleBoard
cBioPortal
Discourse
0x3E964a1BC273fC70469a948c517671F7A0ab8B20
100
55 -1 -1 -1
7 25 27 45
48 85 5 68
73 23 92 76
21 22 16 89
72 80 33 2
58 95 57 90
-1 1 38 32
-1 96 28 52
{
"checkboxField": {
"label": "Checkbox Field",
"controlType": "checkbox",
"required": true,
"order": 0
},
"numberField": {
"label": "Number Field",
"contolType": "number",
@pubudu-ranasinghe
pubudu-ranasinghe / steps.md
Last active May 24, 2018 06:39
Build mongocxx driver in Windows

Make sure you have visual studio, cmake, cpp compilers and all Also make sure yopu provide absolute paths to cmake

Step 1: Install the latest version of the MongoDB C driver.

  • Download the C driver source from releases
  • cd mongo-c-driver-1.10.0
  • mkdir cmake-build
  • cd cmake-build
  • cmake -DCMAKE_INSTALL_PREFIX=D:\...\mongocpp\cdriver -DCMAKE_PREFIX_PATH=D:\...\mongocpp\cdriver .. (replace path with desired path you want to install into)
{
"firstName": {
"label": "First Name",
"type": "text",
"required": true,
"order": 0
},
"lastName": {
"label": "Last Name",
"type": "text",
interface IBaseControlConfig {
value?: any;
key?: string;
label?: string;
required?: boolean;
order?: number;
type?: string;
}
export abstract class BaseControl<T> {
@pubudu-ranasinghe
pubudu-ranasinghe / Items.js
Last active November 3, 2019 10:07
react-context-example-01
import React from "react";
export function NewItem({ add }) {
return (
<div className="Item">
<input type="text" placeholder="New Task"></input>
<button onClick={() => add("New")}>Add</button>
</div>
);
}
@pubudu-ranasinghe
pubudu-ranasinghe / App.css
Created November 2, 2019 15:07
react-context-example-02
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
}
.App-header {
background-color: #282c34;
@pubudu-ranasinghe
pubudu-ranasinghe / App.js
Last active November 2, 2019 15:12
react-context-example-03
import React from "react";
import { ItemList, NewItem } from "./components/Items";
import "./App.css";
const items = ["Setup basic components", "Add some styling"];
function App() {
return (
<div className="App">
<header className="App-header">