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
declare module 'numfmt' { | |
type LocaleTag = string; | |
type LocaleData = { | |
group: string; | |
decimal: string; | |
positive: string; | |
negative: string; | |
percent: string; | |
exponent: string; | |
nan: string; |
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
from flask import Flask, escape, request, jsonify | |
from flask_cors import CORS, cross_origin | |
from urllib import parse | |
from functools import lru_cache | |
import requests | |
app = Flask(__name__) | |
cors = CORS(app) | |
JIRA_HOST = "xxx" |
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
class SomeComponent { | |
public interactionsPublic$: Observable<Interaction[]>; | |
private interactions$: Observable<Interaction[]>; | |
public filterField: 'isAccepted' | 'isPending' | 'isRejected'; | |
protected defaultFilter = 'isAccepted'; | |
public filterSubject: BehaviorSubject<string[]> = new BehaviorSubject([]); | |
constructor( |
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
var wallabyWebpack = require('wallaby-webpack'); | |
var webpackPostprocessor = wallabyWebpack({ | |
entryPatterns: [ | |
'wallaby.spec-bundle.js', | |
'src/**/*spec.js' | |
], | |
module: { | |
loaders: [ |
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 java.net.{URLConnection,URL} | |
import scala.xml._ | |
import scala.collection.mutable.Buffer | |
case class Feed(val url: String) { | |
var buff: Elem = { | |
val u = new URL(this.url) | |
val conn = u.openConnection() | |
conn.connect |
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
<?php | |
function request($url, Array $params = array()) { | |
array_walk($params, function($item, $key) use ( & $url) { | |
$url = str_replace('{'.$key.'}', $item, $url); | |
}); | |
$curl = curl_init(); | |
$options = array( | |
CURLOPT_URL => $url, |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os.path | |
from re import compile | |
from threading import Thread | |
class Worker(Thread): | |
def __init__(self, folder=".", verbose=True): |
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
<?php | |
/** | |
* Аплоад файла с расширенной проверкой типа | |
* | |
* @throws Zend_File_Transfer_Exception | |
* @param string $filename | |
* @param array $allowed_types | |
* @return string | |
*/ |
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
<?php | |
/** | |
* Событийный класс | |
* | |
* @package Fan | |
* @class Fan_Event | |
* @author Nergal | |
*/ | |
class Fan_Event |