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
javascript:(function(){ | |
var match = document.location.hash.match(/(\/gdc\/md\/[a-z0-9]+\/)/i); | |
if (!match) { | |
alert('GD project id not found.'); | |
} | |
window.open(match[0], '_tab'); | |
})(); |
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 separator = ','; | |
} | |
start | |
= comma | |
comma | |
= & { return separator = ','; } sv:sv { return sv; } |
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
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
ini_set('display_errors', true); | |
while (1) { | |
echo "Write start" . PHP_EOL; | |
$client = new Keboola\StorageApi\Client('token'); | |
$client->writeTable('in.c-debug.vouchers', __DIR__ . '/vouchers.csv.gz'); |
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
<?php | |
$request; // some http request abstraction | |
$client = new \Keboola\StorageApi\Client('your_sapi_token'); | |
// run id will be sent to Storage API with all requests | |
if (($runId = $request->getHeader('X-KBC-RunId')) !== false) { | |
// use run id from parent component | |
$client->setRunId($runId); | |
} else { |
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
<?php | |
$data = array( | |
'email' => 'martin.academy@devel.keboola.com', | |
'validity' => time() + 24 * 60 * 60, | |
); | |
echo json_encode($data); |
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
cd /var/lib/jenkins/jobs/GoodData\ Writer\ testing/ | |
cp parameters.yml workspace/vendor/syrup/development-bundle/app/config/parameters.yml | |
mkdir workspace/vendor/syrup/development-bundle/app/tmp |
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
<?php | |
/** | |
* AES Encryption with PKCS7 padding http://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS7 | |
* https://gist.github.com/RiANOl/1077723 | |
* http://php.net/manual/en/function.mcrypt-encrypt.php | |
* http://stackoverflow.com/questions/7448763/proper-php-mcrypt-encryption-methods | |
* | |
* User: martinhalamicek | |
* Date: 7/8/13 | |
* Time: 3:06 PM |
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
<?php | |
/** | |
* AES Encryption in CBC mode with PKCS7 padding | |
* | |
* User: martinhalamicek | |
* Date: 7/8/13 | |
* Time: 3:06 PM | |
*/ | |
namespace Keboola\Encryption; |
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
<?php | |
/** | |
* AES Encryption in CBC mode with PKCS7 padding | |
* | |
* User: martinhalamicek | |
* Date: 7/8/13 | |
* Time: 3:06 PM | |
*/ | |
namespace Keboola\Encryption; |
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 json | |
import os | |
import requests | |
class HttpHelper: | |
server = "https://connection.keboola.com/v2/" | |
def __init__(self,token): | |
self.token = token | |
def tokenheader(self): | |
return {'X-StorageApi-Token':self.token} |
OlderNewer