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
export interface PageViewDto{ | |
pageUrl: string; | |
userAgent: string; | |
onTime: Date, | |
} | |
@Controller() | |
export class AppController { | |
constructor(private readonly daprClient: DaprClient) {} |
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
using System; | |
using System.Collections.Generic; | |
using ServiceStack; | |
using ServiceStack.Text; | |
using ServiceStack.OrmLite; | |
using ServiceStack.OrmLite.Sqlite; | |
using ServiceStack.DataAnnotations; | |
public class User | |
{ |
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
public function getFollowers($accountId, $count = 20, $pageSize = 20, $delayed = true, $endCursor = '') | |
{ | |
if ($delayed) { | |
set_time_limit($this->pagingTimeLimitSec); | |
} | |
$index = 0; | |
$accounts = []; | |
//$endCursor = ''; |
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 log = new LoggerConfiguration() | |
.WriteTo.DatadogLogs( | |
apiKey: "55d6de65639ee32be4c7643afe7896fb", | |
//apiKey : "9534fa91b5761fc5478b849b0aa757e3", | |
source: "DEV", | |
service: "CLIENT", | |
host: "customer.com", | |
configuration: new DatadogConfiguration(url: "https://http-intake.logs.datadoghq.eu") | |
) | |
.CreateLogger(); |
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
SurveyTemplateEntity has: | |
MList<Lite<QuestionEntity>> Questions | |
SurveyEntity has: | |
Lite<SurveyTemplateEntity> SurveyTemplate | |
MList<AnswerEmbedded> Answers | |
Lite<FrontUserEntity> FrontUser | |
FrontUserEntity has: | |
MList<Lite<SurveyEntity>> Surveys; |
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
# copy the RAW(!) content of this file to a run.bash | |
# then in git bash run the following command: | |
# bash run.bash | |
# the content: | |
# crate root folder | |
mkdir test && cd test | |
mkdir framework | |
mkdir app |
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 * as Parse from 'parse/node' | |
Parse.Cloud.afterSave(Parse.User, (request : any) => { | |
request.log.info("Parse.Cloud.afterSave"); | |
}); |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"allowSyntheticDefaultImports" : true, | |
"module": "commonjs", | |
"esModuleInterop": false, | |
"target": "es2016", | |
"noImplicitAny": true, | |
"moduleResolution": "node", | |
"sourceMap": false, | |
"outDir": "dist", |
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 | |
namespace Statamic\Addons\Fetch; | |
use Carbon\Carbon; | |
use Statamic\API\Str; | |
use Statamic\API\Page; | |
use Statamic\API\Asset; | |
use Statamic\API\Entry; | |
use Statamic\API\Search; |
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
const shim = require('fabric-shim'); // CORE API | |
var Chaincode = class { | |
// Initialize the chaincode | |
async Init(stub) { | |
console.info('========= example02 Init ========='); | |
try { | |
await stub.putState('The ID', Buffer.from({some : 'data'}));// you have to waite for every putState command to be finished | |
return shim.success(); |
NewerOlder