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
// install those dependencies first | |
var minify = require("html-minifier").minify; | |
var fs = require("fs"); | |
var AWS = require("aws-sdk"); | |
// usage : node .\template-creater.js .\emailtemplate.html emailtemplate.json false emailtemplate-unique-name "Subject for the email" | |
// 1st Argument => Templated HTML File | |
// 2nd Argument => Name of the generated template json file | |
// 3rd Argument => Update or Create template ( boolean ) | |
// 4th Argument => Unique template name |
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
/*My name is Shivasurya s and i had lot of trouble | |
while installing Android SDK on Gentoo Linux Machine. | |
Somehow i have configured, built my first gradle based project | |
Credits for Ubuntu : https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7 | |
i found this above gist partially helpful while doing it on Gentoo. | |
*/ | |
###install JAVA 6/7/8 | |
http://www.dowdandassociates.com/blog/content/howto-install-java-gentoo/ |
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
{ | |
"service_name": "Temp Service", | |
"service_description": "<p>Hello Text Description</p>", | |
"is_private": 0, | |
"service_type": "appointment", | |
"trainer_id": 18, | |
"booking_policy": "", | |
"cancelation_policy": 7, | |
"reschedule_policy": "7", | |
"refund_policy": 1, |
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
var axios = require('axios'); | |
var qs = require('qs'); | |
var data = qs.stringify({ | |
'jsonString': '{\n "email" : "srm@gmail.com",\n "role" : "admin",\n "first_name" : "Srirama Moorthy",\n "last_name":"Srm"\n}' | |
}); | |
var config = { | |
method: 'post', | |
url: 'https://api.goschedule.io/users/inviteuser', | |
headers: { | |
'X-API-KEY': 'gsid=s%3ADbdXXXXXXXXXXXXXXXXXXXXXXYI5y3kNGxyXcVQqFdHR%2FmAdCh1cM4j1JtcEANILrV2w;', |
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
var http = require("http"); | |
var express = require("express"); | |
var app = express(); | |
var request = require('request'); | |
var bodyParser = require('body-parser'); | |
var morgan = require('morgan') | |
var fs = require('fs'); | |
var path = require('path'); | |
//to log every request for debugging |
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 openjdk:8-jdk | |
MAINTAINER S Shivasurya <s.shivasurya@gmail.com> | |
ENV ANDROID_TARGET_SDK="25" \ | |
ANDROID_BUILD_TOOLS="25.0.3" \ | |
ANDROID_SDK_TOOLS="24.4.1" | |
RUN apt-get --quiet update --yes | |
RUN apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 |
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
<select name="DropDownTimezone" id="DropDownTimezone"> | |
<option value="-12.0">(GMT -12:00) Eniwetok, Kwajalein</option> | |
<option value="-11.0">(GMT -11:00) Midway Island, Samoa</option> | |
<option value="-10.0">(GMT -10:00) Hawaii</option> | |
<option value="-9.0">(GMT -9:00) Alaska</option> | |
<option value="-8.0">(GMT -8:00) Pacific Time (US & Canada)</option> | |
<option value="-7.0">(GMT -7:00) Mountain Time (US & Canada)</option> | |
<option value="-6.0">(GMT -6:00) Central Time (US & Canada), Mexico City</option> | |
<option value="-5.0">(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option> | |
<option value="-4.0">(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option> |
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
image: registry.gitlab.com/yourUsername/yourprojectregisty:latest | |
before_script: | |
- chmod +x ./gradlew | |
build: | |
script: | |
- ./gradlew assembleDebug | |
artifacts: | |
paths: |
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
build_image: | |
image: docker:git | |
services: | |
- docker:dind | |
script: | |
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com | |
- docker build -t registry.gitlab.com/yourUserName/yourProjectName . | |
- docker push registry.gitlab.com/yourUserName/yourProjectName:latest | |
only: | |
- YOUR_CI_BRANCH_NAME |
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
PDFJS.workerSrc = 'build/pdf.worker.js'; | |
var url = 'pdf/appathon.pdf'; | |
var currentPage = 1; | |
PDFJS.getDocument(url).then(function (pdf) { | |
PROGRESS.max = pdf.numPages; | |
PROGRESS.value = 1; | |
var holder = document.getElementById('canvas') |
NewerOlder