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 fnmatch | |
import os | |
import re | |
class CodeToMarkdown: | |
def __init__(self, output_filename, src_folders, exclusion_patterns, inclusion_patterns): | |
self.output_filename = output_filename | |
self.src_folders = src_folders | |
self.exclusion_patterns = exclusion_patterns |
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
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"description": "A radar chart example, showing multiple dimensions in a radial layout.", | |
"width": 400, | |
"height": 400, | |
"padding": 40, | |
"autosize": {"type": "none", "contains": "padding"}, | |
"signals": [{"name": "radius", "update": "width / 2"}], | |
"data": [ | |
{ |
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
defmodule Eltoroportal.Accounts.User do | |
use Ecto.Schema | |
import Ecto.Changeset | |
alias Eltoroportal.Accounts.User | |
@primary_key {:_id, :string, autogenerate: false} | |
schema "users" do | |
field :username, :string | |
# field :created, :date # <-- ? mongo translation? |
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
/** | |
* Build a set of randomized, evenly distrubted teams | |
* | |
* goal team size = ~5 or 6 | |
* | |
* usage: | |
* download file and save as make_class_teams.js | |
* | |
* $ node make_class_teams.js | |
* |
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
const OLCardBtns = props => ( | |
<div> | |
<ErrorsField /> | |
<div className="text-xs-right"> | |
<DisplayIf condition={(ctx) => ctx.error}> | |
<button className="btn btn-warning disabled" disabled> | |
<Fa className="remove" /> | |
Error | |
</button> | |
</DisplayIf> |
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
var Buffer = require('buffer').Buffer; | |
var wkx = require('wkx'); | |
function convertHex(hexInput) { | |
var wkbBuffer = new Buffer(hexInput.slice(2), 'hex'); | |
var geometry = wkx.Geometry.parse(wkbBuffer); | |
return geometry.toGeoJSON(); | |
} | |
function convertTwkb(hexInput) { | |
var wkbBuffer = new Buffer(hexInput.slice(2), 'hex'); |
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
| (#5) Profiling: ProjectContext prepareProjectForBuild | |
| Preparing to build package reactive-dict / | |
| ProjectContext prepareProjectForBuild...........................846 ms (1) | |
| ├─ _initializeCatalog...........................................508 ms (1) | |
| │ └─ LocalCatalog#initialize...................................507 ms (1) | |
| │ ├─ LocalCatalog#_computeEffectiveLocalPackages..............7 ms (1) | |
| │ │ ├─ optimistic statOrNull 1 ms (156) | |
| │ │ ├─ optimistic hashOrNull 1 ms (155) | |
| │ │ └─ other LocalCatalog#_computeEffectiveLocalPackages 5 ms | |
| │ └─ LocalCatalog#_loadLocalPackages........................500 ms (1) |
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
[disabled optimization for 0x29b4e2147b41 <SharedFunctionInfo SAR>, reason: Call to a JavaScript runtime function] | |
[disabled optimization for 0x29b4e2146651 <SharedFunctionInfo ADD>, reason: Call to a JavaScript runtime function] | |
[disabled optimization for 0x29b4e2147da9 <SharedFunctionInfo SHR>, reason: Call to a JavaScript runtime function] | |
[disabled optimization for 0x29b4e21480c9 <SharedFunctionInfo IN>, reason: Call to a JavaScript runtime function] | |
[disabled optimization for 0x29b4e21c02a9 <SharedFunctionInfo NativeModule.require>, reason: Call to a JavaScript runtime function] | |
[disabled optimization for 0x29b4e21bf829 <SharedFunctionInfo NativeModule>, reason: Call to a JavaScript runtime function] | |
[disabled optimization for 0x29b4e2147421 <SharedFunctionInfo BIT_OR>, reason: Call to a JavaScript runtime function] | |
[disabled optimization for 0x29b4e21d0f21 <SharedFunctionInfo createBuffer>, reason: TryFinallyStatement] | |
[disabled optimization for 0x29b4e2146e99 <SharedFunctionInfo MUL>, reason: Call to a |
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 from 'react'; | |
import { DateRangePicker } from 'react-dates'; | |
import momentPropTypes from 'react-moment-proptypes'; | |
class DateRangePickerWrapper extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
focusedInput: null, | |
startDate: props.startDate || null, |
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 _ from 'lodash'; | |
import { Meteor } from 'meteor/meteor'; | |
import { Session } from 'meteor/session'; | |
import { Bert } from 'meteor/themeteorchef:bert'; | |
import React from 'react'; | |
import { BaseField } from 'uniforms'; | |
import UIMapPoly from 'react-map-polygon-selector'; |
NewerOlder