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
// This is the outside in approach, where the parent process is not within Docker, but the child lives in a docker image. | |
var externalNodeProcess = require('child_process').spawn('docker', [ | |
'run', | |
'-a', 'stdin', '-a', 'stdout', '-a','stderr', | |
'-i', | |
'image/name:tag', | |
'node','index.js' | |
], { | |
stdio: ['pipe', 'pipe', 'pipe'] |
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
#!/usr/bin/env python3 | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class Server(BaseHTTPRequestHandler): | |
def _set_response(self): | |
self.send_response(200) | |
self.send_header('Content-type', 'text/html') | |
self.end_headers() |
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
COPIED FROM https://build.opensuse.org/package/view_file/games/stockfish/stockfish-interface.txt?expand=1 | |
Description of the universal chess interface (UCI) April 2006 | |
================================================================= | |
* The specification is independent of the operating system. For Windows, | |
the engine is a normal exe file, either a console or "real" windows application. | |
* all communication is done via standard input and output with text commands, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
export const StorybookUIRoot = getStorybookUI({ | |
onDeviceUI: false, | |
shouldDisableKeyboardAvoidingView: true, | |
}); |
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 { registerRootComponent } from 'expo'; | |
import { StorybookUIRoot } from '../storybook/index'; | |
registerRootComponent(StorybookUIRoot); |
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 { css } from 'styled-components'; | |
export const Typography = { | |
primary: css` | |
font-size: 16px; | |
color: #888; | |
`, | |
}; |
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 styled from 'styled-components/native'; | |
import { Typography } from '~styles'; | |
export type LabelProps = { | |
children: React.ReactChild; | |
color?: string; | |
}; | |
const StyledLabel = styled.Text` | |
${Typography.primary}; |
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
// API-konsument trenger ikke å ta stilling til styling og semantikk | |
// og kan enkelt importere en komponent med tilhørende styling og adferd i én operasjon | |
import { Button } from '~components/button'; | |
export const Something = () => <Button onPress={() => alert('42')} /> |
NewerOlder