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 functions = require("firebase-functions"); | |
const IterableDataService = require('../../iterable/IterableDataService'); | |
module.exports = functions.firestore.document('prospecting-student/{email}').onCreate(async (snap, context) => { | |
const student = snap.data(); | |
const result = await IterableDataService.putUserData({ | |
email: snap.id, | |
userId: student.uuid, | |
dataFields: { |
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 functions = require("firebase-functions"); | |
const express = require("express"); | |
let staticValue = { message: 'Hello World!' } | |
// you don't want this then as it will be a single instance of helloWorld_app. You don't really have control when the instance is up or down unless | |
// you configure that in the function with "minInstances" etc | |
const app = express(); | |
app.get('/short', (req, res) => { |
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
pragma solidity ^0.5.2; | |
contract Escrow { | |
// the person who will pay the funds | |
address public payer; | |
// the person who will recieve funds | |
address public payee; | |
// the lawyer / solicitor, controller of the funds |
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="jarallax" data-jarallax data-jarallax-video="https://www.youtube.com/watch?v=F3I0wRGAkxo"> | |
<div class="demo-table"> | |
<div class="demo-table-cell"> | |
<h1>Just Another Parallax <small>[Jarallax]</small></h1> | |
<h2>Background Video Parallax (YouTube & Vimeo)</h2> | |
<br> | |
<a class="github-button" href="https://github.com/nk-o/jarallax" data-style="mega" data-count-href="/nk-o/jarallax/stargazers" data-count-api="/repos/nk-o/jarallax#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star nk-o/jarallax on GitHub">Star</a> | |
<a class="github-button" href="https://github.com/nk-o/jarallax/archive/master.zip" data-style="mega" aria-label="Download nk-o/jarallax on GitHub">Download</a> | |
</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
docker-compose up |
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; | |
namespace ResultThings | |
{ | |
internal class Result | |
{ | |
public bool Success { get; } |
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
/// <summary>JSON template for User object in Directory API.</summary> | |
public class User : Google.Apis.Requests.IDirectResponseSchema | |
{ | |
[Newtonsoft.Json.JsonPropertyAttribute("addresses")] | |
public virtual System.Collections.Generic.IList<UserAddress> Addresses { get; set; } | |
/// <summary>Indicates if user has agreed to terms (Read-only)</summary> | |
[Newtonsoft.Json.JsonPropertyAttribute("agreedToTerms")] | |
public virtual System.Nullable<bool> AgreedToTerms { get; set; } |
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; | |
namespace DeepObjects.Models | |
{ | |
internal enum CatStatus | |
{ | |
Outstanding | |
} | |
internal sealed class CatDetails |
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="rating"> | |
<span>☆</span><span>☆</span><span>☆</span><span>☆</span><span>☆</span> | |
</div> | |
<div> | |
<p id="output"></p> | |
</div> | |
<script> | |
let ratingStars = [...document.querySelectorAll('.rating span')].map((s, 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
using System; | |
namespace leanne | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Enter name!"); | |
var name = Console.ReadLine(); |
NewerOlder