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
fizzbuzz = function(number) { | |
if (number % 15 === 0) { | |
return 'FizzBuzz'; | |
} | |
if (number % 3 === 0) { | |
return 'Fizz'; | |
} | |
if (number % 5 === 0) { | |
return 'Buzz'; |
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
test | |
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
/** | |
DRAFT for a i18n_service for meteor-mantra-apps, it uses https://github.com/vazco/meteor-universe-i18n/ | |
Made to be used in configs/context.js in mantra: | |
const supportedLocales = [ 'de', 'en', 'fr', 'it' ]; | |
const defaultLocale = 'de'; | |
const i18n = I18nService( | |
{universeI18n, SimpleSchema, FlowRouter}, | |
{supportedLocales, defaultLocale} |
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 { connectField } from 'uniforms'; | |
import Dropzone from 'react-dropzone'; | |
import withMeteorUploader from '../../hocs/with_meteor_uploader'; | |
import CollectionImage from '/client/modules/core/containers/collection_image'; | |
export const ImageFile = ({ | |
disabled, | |
id, | |
label, |
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 { Scene } from 'react-three'; | |
import THREE from 'three'; | |
import _ from 'lodash'; | |
/** | |
we extend the react-three-scene with support for more properties: | |
- onOrbit: will be called when orbitcontrols are changed. It will pass the current camera | |
- onClickRay: will be called on a click on the scene with arguments: | |
event, the current ray from the camera to the mousePosition and the mousePosition | |
- onMouseMoveRay: same as above, but on every mousemove | |
**/ |
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 withTheme from '/lib/withTheme'; | |
import { withUploader } from '@panter/manul-files'; | |
import { useDeps, composeAll } from 'mantra-core'; | |
import BoxedImage from '/client/modules/core/components/boxed_image'; | |
import { connectField } from 'uniforms'; | |
import DropZone from 'react-dropzone'; | |
import { Styles } from './TextField'; | |
import formCol from './FormCol'; | |
import _ from 'lodash'; |
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
tabSize: 2 | |
storybook: true | |
generateComponentTests: false | |
generateContainerTests: false | |
modulesPath: src/modules | |
snakeCaseFileNames: false | |
templates: | |
- name: 'storybook' | |
text: | | |
// @flow |
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
// @flow | |
import { css } from 'styled-components' | |
export default { | |
colors: { | |
greyDark: '#515151', | |
greySemiDark: '#7D7D7D', | |
grey: '#A4A4A4', | |
greySemiLight: '#C6C6C6', |
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
// @flow | |
import { ARKit } from '@panter/react-native-arkit' | |
import { branch, compose, lifecycle, renderComponent } from 'recompose' | |
import { unzip } from 'react-native-zip-archive' | |
import RNFetchBlob from 'react-native-fetch-blob' | |
import React from 'react' | |
const getModelPath = modelId => ( | |
`${RNFetchBlob.fs.dirs.CacheDir}/models/${modelId}/` |
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 { ARKit } from 'react-native-arkit' | |
import React from 'react' | |
import type { Point3D } from '../../../types' | |
import { length, center, diff, distance } from '../libs/vectorUtils' | |
const PI_2 = Math.PI / 2 |
OlderNewer