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
| # -*- encoding: utf-8 -*- | |
| """ | |
| Python Application | |
| """ | |
| __author__ = "[email protected]" | |
| import os | |
| import json | |
| import pathlib |
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 requests | |
| def get(cls, date: str, date_end: str, office_in_charge: str): | |
| user = get_jwt_identity() | |
| url = "http://localhost:9090/jasperserver/rest_v2/reports/reports/interactive/DTR.pdf" | |
| r = requests.get(url, | |
| params={ | |
| 'username': 'jasperadmin', | |
| 'password': 'jasperadmin', | |
| 'p1': user, |
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
| # coding:utf-8 | |
| # Copyright 2011 litl, LLC. All Rights Reserved. | |
| import httplib | |
| import re | |
| import urllib | |
| import urlparse | |
| from flask import Blueprint, request, Response, url_for | |
| from werkzeug.datastructures import Headers |
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
| # -*- encoding: utf-8 -*- | |
| import os | |
| import sys | |
| from psutil import Process | |
| from subprocess import Popen | |
| from flask import Flask, jsonify, current_app | |
| app = Flask(__name__) |
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 { Subscription } from 'rxjs'; | |
| import { Router } from '@angular/router'; | |
| import { Component, OnInit } from '@angular/core'; | |
| import Swal from 'sweetalert2'; | |
| import { Idle, DEFAULT_INTERRUPTSOURCES } from '@ng-idle/core'; | |
| import { DocumentInterruptSource, StorageInterruptSource } from '@ng-idle/core'; | |
| import { Account } from './core/user/account.model'; | |
| import { LoginService } from './core/login/login.service'; |
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
| <div class="container mt-5"> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="row mb-2"> | |
| <div class="col-md-8"> | |
| <h1>{{project_info.project_name}}</h1> | |
| </div> | |
| <div class="col-md-2"><div class="d-grid"><button class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#makeACopyModal" (click)="onPreCopy($event)">Make a Copy</button></div></div> | |
| <div class="col-md-2"><div class="d-grid"><button class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#deleteModal">Delete project</button></div></div> | |
| </div> |
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 { catchError } from 'rxjs'; | |
| import { FormBuilder } from '@angular/forms'; | |
| import { Component, OnDestroy, OnInit } from '@angular/core'; | |
| import { ToastrService } from 'ngx-toastr'; | |
| @Component({ | |
| selector: 'app-brush', | |
| templateUrl: './brush.component.html', |
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
| # -*- encoding: utf-8 -*- | |
| """ | |
| Python Application | |
| Author: Anand Adake ([email protected]) | |
| """ | |
| """ | |
| requirements | |
| python -m pip install pyotp |
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
| # -*- encoding: utf-8 -*- | |
| """ | |
| python -m pip install flask | |
| Python Application | |
| """ | |
| import os | |
| from flask import Flask | |
| from datetime import datetime | |
| from logging.config import dictConfig |
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
| """ | |
| python -m pip install moviepy | |
| """ | |
| import os | |
| from time import time | |
| import moviepy.editor as moviepy | |
| def convert_avi_to_mp4(avi_file_path): | |
| # function guard |
NewerOlder