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 axios from "axios"; | |
const url = "https://{domain}.jotform.com/API/pdf-converter/{form}/fill-pdf?apikey={apiKey}&download=1&submissionID={submissionId}"; | |
const main = async() => { | |
await Promise.all( | |
Array(50).fill().map(async (_, i) => { | |
try { | |
await axios.get(url); | |
console.log(`Got ${i}`); |
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
// flow-typed signature: 311012da78555b97190c86fa4c196bf3 | |
// flow-typed version: 443dcee08c/react-relay_v1.x.x/flow_>=v0.47.x | |
// https://raw.githubusercontent.com/mrtnzlml/quick-payments/8a0fa46a490647aec676fc823c88079e8319dee5/frontend/flow-typed/npm/react-relay_v1.x.x.js | |
import * as React from 'react'; | |
import {FragmentReference} from 'relay-runtime'; | |
declare module 'react-relay' { |
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
/* Fetch - ALL */ | |
private Type ResolveType(string type) { | |
return TypeResolutionService.ResolveType(string.Concat("Telerik.Sitefinity.DynamicTypes.Model.", type)); | |
} | |
private IQueryable<DynamicContent> GetAllDynamicContentItems(string dynamicContentTypeName) { | |
var dynamicContentType = ResolveType(dynamicContentTypeName); | |
//Aaaahh non-multisite, how simple you were | |
if (!SystemManager.CurrentContext.IsMultisiteMode) { | |
return DynamicModuleManager.GetManager().GetDataItems(dynamicContentType); |
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
/* Fetch - ALL */ | |
private IQueryable<Image> GetAllImages() { | |
//Aaaahh non-multisite, how simple you were | |
if (!SystemManager.CurrentContext.IsMultisiteMode) { | |
return LibrariesManager.GetManager().GetImages(); | |
} | |
return SitefinityQuery.Get<Image>(LibrariesManager.GetManager().Provider) | |
.Where(o => GetLibrariesApplicationNames().Contains(o.ApplicationName)); | |
} |
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
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<h4 class="panel-title"> | |
<a href="javascript:void(0)" data-bind="collapse: { expanded: expanded }, click: toggleExpanded"> | |
<span data-bind="text: heading"></span> | |
<i class="fa pull-right" data-bind="css: expandedIconClass"></i> | |
</a> | |
</h4> | |
</div> |
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 System.Linq; | |
using System.Web; | |
namespace SitefinityWebApp.Websilk.Code { | |
public class CacheSubWrap { | |
public Type widgetType { get; set; } | |
public Dictionary<string, object> properties { get; set; } | |
public delegate string RenderMarkupDelegate(Dictionary<string, object> properties, Type widgetType); |