- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
sudo nano ~/.bash_profile
- Add
export PATH=/path/to/depot_tools:"$PATH"
(it's important that depot_tools comes first here)
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
"use strict"; | |
var Singleton = (function () { | |
function ProcessManager() { | |
this.numProcess = 0; | |
} | |
var processManager = undefined; | |
var createProcessManager = function createProcessManager() { | |
processManager = new ProcessManager(); |
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
"use strict"; | |
function Developer(name) { | |
this.name = name; | |
this.type = "Developer"; | |
} | |
function Tester(name) { | |
this.name = name; | |
this.type = "Tester"; |
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, { Component, PureComponent } from 'react'; | |
import { | |
createStackNavigator, | |
createBottomTabNavigator | |
} from 'react-navigation'; | |
import { Image, View, Text } from 'react-native'; | |
import { Actions, Scene, Router } from 'react-native-router-flux'; | |
import Icon from 'react-native-vector-icons/FontAwesome'; | |
import colors from './src/constants/colors'; |
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
version: '3' | |
services: | |
abdalla: | |
build: . | |
container_name: nodjs-test | |
image: abdalla/nodejs | |
volumes: | |
- .:/src | |
tty: 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
FROM fedora | |
RUN yum update -y | |
RUN yum install -y nodejs | |
RUN mkdir -p /src && cd /src | |
WORKDIR /src |
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
{ | |
"bold_folder_labels": false, | |
"caret_extra_bottom": 2, | |
"caret_extra_top": 2, | |
"caret_extra_width": 3, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/ayu/ayu-mirage.tmTheme", | |
"font_face": "Courier New", | |
"font_size": 13, | |
"highlight_line": 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
const typesOfCoins = [25, 10, 5, 1]; | |
const exchange = vl => { | |
let exchanges = []; | |
typesOfCoins.reduce((cur, next) => { | |
const val = Math.floor(cur/next); | |
const rest = cur - (val * next); | |
exchanges.push(val); |
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 exchange = vl => { | |
const nr_qt = Math.floor(vl/25); | |
console.log(nr_qt); | |
let rest = vl - (nr_qt * 25); | |
const nr_dim = Math.floor(rest/10); | |
console.log(nr_dim); | |
rest -= nr_dim * 10; |
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
<Router> | |
<Route path="/" component={App}> | |
<IndexRoute component={Lander} /> | |
<Route path="com/:opco/signin" component={SignIn} /> | |
<Route path="com/:opco/search/colors" component={SearchPatternColorView} onEnter={onEnter} function="ViewFabric" /> | |
<Route path="com/:opco/pattern/:patternID" component={MaintainPattern} onEnter={onEnter} function="ViewFabric" /> | |
<Route path="com/:opco/pattern/:patternID/color/:colorID" component={MaintainColor} onEnter={onEnter} function="ViewFabric" /> | |
<Route path="com/:opco" component={sendAdobeAnalyticsPageInformation(RequestLoggedIn, 'com request')} onEnter={onEnter} function="ViewFabric" /> | |
<Route path="com/:opco/admin-dashboard" component={ComAdminDashboard} onEnter={onEnter} function="EditAdminDashboard" /> | |
<Route path="com/:opco/user-dashboard" component={sendAdobeAnalyticsPageInformation(ComUserDashboard, 'view my com')} onEnter={onEnter} function="ViewMyRequestsDashboard" /> |
NewerOlder