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 map = { | |
iasi: [ | |
{ city: 'neamt', distance: 87 }, | |
{ city: 'vaslui', distance: 92 }, | |
], | |
vaslui: [ | |
{ city: 'urziceni', distance: 142 }, | |
{ city: 'iasi', distance: 92 }, | |
], | |
urziceni: [ |
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
/* | |
* # Semantic UI - 2.2.10 | |
* https://github.com/Semantic-Org/Semantic-UI | |
* http://www.semantic-ui.com/ | |
* | |
* Copyright 2014 Contributors | |
* Released under the MIT license | |
* http://opensource.org/licenses/MIT | |
* | |
*/ |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 { dependencies, devDependencies } = require('./package.json'); | |
const depKeys = Object.keys(dependencies).join(' '); | |
const devDepKeys = Object.keys(devDependencies).join(' '); | |
const depInstall = `yarn add ${depKeys}`; | |
const devDepInstall = `yarn add -D ${devDepKeys}`; | |
console.log(depInstall); | |
console.log(''); |
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
# download this file to your project folder and excute | |
# chmod +x generate-ios.sh | |
# then run using | |
# ./generate-ios.sh | |
# flutter build defaults to --release | |
flutter build ios --no-codesign | |
# make folder, add .app then zip it and rename it to .ipa | |
mkdir -p Payload |
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
// Copyright 2014 The Flutter Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
class ExpansionTileSample extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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 'package:flutter/material.dart'; | |
class BasicAppBarSample extends StatefulWidget { | |
@override | |
_BasicAppBarSampleState createState() => _BasicAppBarSampleState(); | |
} | |
class _BasicAppBarSampleState extends State<BasicAppBarSample> { | |
Choice _selectedChoice = choices[0]; |
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 { matcherHint, printReceived, printExpected } from 'jest-matcher-utils'; | |
const matches = (received: string, expected: string | RegExp) => | |
typeof expected === 'string' | |
? received.includes(expected) | |
: expected.test(received); | |
const normalize = (text: string) => text.replace(/\s+/g, ' ').trim(); | |
expect.extend({ |
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
// Original source code: https://github.com/ErickWendel/securing-files-using-nodejs-crypto-yt | |
// Proxy documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy | |
// app.js | |
// `promises` is now a param instead of an import | |
async function run(promises) { | |
... | |
} | |
// index.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
// Place the code below in the file below to reproduce it: | |
// https://github.com/remotion-dev/remotion/blob/main/packages/example/src/RemoteVideo/index.tsx | |
import {useRef} from 'react'; | |
import {interpolate, useCurrentFrame, Video} from 'remotion'; | |
const RemoteVideo: React.FC = () => { | |
const frame = useCurrentFrame(); | |
const ref = useRef<HTMLVideoElement>(null); | |
return ( |
OlderNewer