This file contains hidden or 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 { | |
| Text, | |
| TouchableOpacity, | |
| Image, | |
| View, | |
| FlatList, | |
| Dimensions, | |
| StatusBar, | |
| } from 'react-native'; |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| _ "image/jpeg" | |
| _ "image/png" | |
| "log" | |
| "net/http" | |
| ) |
This file contains hidden or 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
| // Create a theme context, defaulting to light theme | |
| const ThemeContext = React.createContext('light'); | |
| function ThemedButton(props) { | |
| // The ThemedButton receives the theme from context | |
| return ( | |
| <ThemeContext.Consumer> | |
| {theme => <Button {...props} theme={theme} />} | |
| </ThemeContext.Consumer> | |
| ); |
This file contains hidden or 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
| packages: | |
| yum: | |
| ImageMagick: [] | |
| ImageMagick-devel: [] | |
| container_commands: | |
| 01-wget: | |
| command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/release-source" | |
| 02-mkdir: | |
| command: "if [ ! -d /opt/ffmpeg ] ; then mkdir -p /opt/ffmpeg; fi" | |
| 03-tar: |
This file contains hidden or 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
| .ms-slide-info{ | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0 !important; | |
| min-height: 0 !important; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; |
This file contains hidden or 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 { | |
| View, | |
| Text, | |
| TouchableOpacity, | |
| Alert | |
| } from 'react-native'; | |
| import hoc from './hoc'; |
This file contains hidden or 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
| package main | |
| import ( | |
| "io/ioutil" | |
| "os" | |
| "regexp" | |
| "strconv" | |
| "strings" | |
| "time" |
This file contains hidden or 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
| return new fetch(`/hogehoge`) | |
| .then(response => { | |
| return response.json().then(json => ({ status: response.status, json })) | |
| }) | |
| .then(r => { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| console.log("settimeout finish") | |
| resolve(0) | |
| return dispatch({ type: "FINISH" }) |
This file contains hidden or 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 formData = new FormData() | |
| formData.append("hoge","hogehoge") | |
| formData.append("foo","bar") | |
| fetch("url", { | |
| headers:{ | |
| 'Accept': 'application/json, */*', | |
| //'Content-type':'application/json' | |
| }, | |
| method:"post", |