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, { PureComponent } from "react"; | |
| import { | |
| View, | |
| TextInput, | |
| TextInputProps, | |
| ViewStyle, | |
| TextStyle, | |
| StyleProp, | |
| Platform, | |
| } 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
| #!/bin/bash | |
| curl -sSL get.docker.com | sh - | |
| git clone -b mujson https://github.com/mosluce/shadowsocksr | |
| cd shadowsocksr | |
| docker build -t ssr . | |
| docker run -d --restart=always -p 6540-6550:6540-6550 --name ssr ssr | |
| for (( i=1; i<=2; i++ )) | |
| do |
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 { Query } from "react-apollo"; | |
| import hoist from 'hoist-non-react-statics'; | |
| import compareProps from '../compareProps'; | |
| const withQuery = (query, { name, options = {}, mapPropKeys = [] }) => (WrappedComponent) => { | |
| class WithQuery extends React.Component { | |
| constructor() { | |
| super(); |
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
| $scope.get_romig_24g=function(){ | |
| return $scope.handle().then(function(res){ | |
| console.log("$scope.ip[0] "+ $scope.ip[0]) | |
| console.log("res "+res) | |
| let url= "http://"+res+"/boafrm/formWlanRedirect?redirect-url=/wladvanced.htm&wlan_id=1" | |
| return url | |
| },function(err){ | |
| console.log(err) | |
| err=err+"no ip" | |
| return err |
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 express = require('express'); | |
| const mongodb = require('mongodb'); | |
| const app = express(); | |
| function to(promise) { | |
| if (!(promise instanceof Promise)) { | |
| promise = Promise.resolve(promise); | |
| } | |
| return promise.then(res => [null, res]).catch(err => [err]); |
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
| { | |
| "rules": {}, | |
| "env": { | |
| "es6": true, | |
| "browser": true, | |
| "node": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 2018, | |
| "sourceType": "module" |
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
| { | |
| "rules": {}, | |
| "env": { | |
| "es6": true, | |
| "browser": true, | |
| "node": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 2018, | |
| "sourceType": "module" |
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
| { | |
| "name": "klcc-api-core", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "author": "mosluce", | |
| "license": "MIT", | |
| "dependencies": { | |
| "express": "^4.17.1", | |
| "parse-server": "4.5.0" | |
| }, |
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 'package:flutter/material.dart'; | |
| import 'package:get/get.dart'; | |
| import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
| import 'package:intl/intl.dart'; | |
| import 'package:signbook/app/data/models/sign_model.dart'; | |
| import '../controllers/map_controller.dart'; | |
| class MapView extends GetView<MapController> { | |
| @override |
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 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |