Skip to content

Instantly share code, notes, and snippets.

View prabaprakash's full-sized avatar
🎯
Eat, Code, Sleep, Meetups & Trekking

Praba Prakash prabaprakash

🎯
Eat, Code, Sleep, Meetups & Trekking
  • Ex-VIT, MSP, Hasura, Mr.Cooper
  • Chennai
View GitHub Profile
app.post('/api/download', async(request, response) =>{
var requestAPI = require("request");
var options = {
method: 'POST',
url: 'http://10.79.36',
headers: {
'Accept': 'application/zip',
'content-type': 'application/json',
'X-API-VERSION':'1',
},
varrequest=require("request");
varoptions= {
url:'https://prabastorage.blob.core.windows.net/prabafiles/1535b1ea-d71c-4b71-b821-1b4bd9c88387.zip',
headers: {
'Accept':'application/zip',
},
body: [
],
json:true
app.get('/api/download', async(request, response) =>{
var request = require("request");
var options = {
method: 'post',
url: 'https://prabastorage.blob.core.windows.net/prabafiles/1535b1ea-d71c-4b71-b821-1b4bd9c88387.zip',
headers: {
'Accept': 'application/zip',
},
body: [{id:1}
],
sftp -oPort=8080 foo@52.187.0.0
const users = [{
id: 1,
name: 'Andrew',
schoolId: 101
}, {
id: 2,
name: 'Jessica',
schoolId: 999
}];
GO
DROP PROCEDURE dbo.case_info
GO
CREATE PROCEDURE dbo.case_info
@agentName varchar(50)
AS
DECLARE @rs CURSOR
DECLARE @case_count int,
        @case_status varchar(50),
https://codesandbox.io/s/mo3r0l9rqp
#https://help.github.com/articles/changing-author-info/
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
@prabaprakash
prabaprakash / gh-pages-deploy.md
Created December 12, 2018 15:44 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

import { Component, OnInit } from '@angular/core';
import { DataSource } from './Model/DataSource';
import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {