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 calculator = () => { | |
document.getElementById('calculate_button').onClick = () => { | |
alert('1'); | |
} | |
}; | |
calculator(); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="https://www.agora.co.il/" xml:lang="he"> | |
<!-- | |
אודות פיד זה | |
^^^^^^^^^^^^ | |
דף זה הינו פיד המציג מודעות בהתאם לקריטריונים שהגדרת. | |
לאחר הרשמה לפיד זה, תקבל עידכונים אוטומטיים בכל פעם שמודעה חדשה אשר מתאימה לקריטריונים תופיע באתר. | |
איך להירשם לפיד זה | |
^^^^^^^^^^^^^^^^^^ |
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 node:8-alpine | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY . . | |
RUN npm install | |
EXPOSE 3000 | |
CMD [ "npm", "start" ] | |
#Some of this was copied from https://www.freecodecamp.org/news/how-to-deploy-a-node-js-application-to-amazon-web-services-using-docker-81c2a2d7225b/ |
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
#!/bin/bash | |
curl -O https://bootstrap.pypa.io/get-pip.py | |
python get-pip.py --user | |
pip install awscli --upgrade --user | |
echo \"export PATH=\${PATH}:`ls -1d ${HOME}/Library/Python/*.*/bin | tail -1`\" >> ~/.profile | |
aws configure |
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
#!/bin/bash | |
if [[ $(git diff --stat) != '' ]]; then | |
echo "*** ERROR *** GIT reports this directory to be dirty.Please commit and push to master before building "; exit 1 | |
fi | |
APPNAME=dayzz/dayzz-bi | |
REGION=us-east-2 | |
AWS_CMD=`aws ecr get-login --no-include-email --region $REGION` | |
AWS_URI=`echo $AWS_CMD | awk '{print $7}' | sed -E "s/https\:\/\///"` |
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 axios from 'axios'; | |
import {MD5} from 'object-hash'; //npm install object-hash | |
const hash=MD5; //MD5 is less secure but much faster on my production linux machines | |
export class ServerConnection { | |
static _defaultOptions = {debounce: true, ttl:1000}; | |
static _once = {}; | |
static cache(func,options,...params) { | |
options = options || ServerConnection._defaultOptions; |
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 {I18nManager} from 'react-native'; | |
import I18n from 'react-native-i18n'; | |
import en from './locales/en'; | |
import he from './locales/he'; | |
/* | |
We are very likely not to have all the languages translated, | |
so fallback to default locale in case we don't | |
*/ | |
I18n.fallbacks = 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
/** | |
* Created by nirlevy on 02/07/2017. | |
* MIT Licence | |
*/ | |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Animated, Easing } from 'react-native'; | |
export class RotatingView extends Component { | |
state = { |