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 axios = require("axios"); | |
exports.sendWelcomeMessage = functions.firestore | |
.document("users/{userId}") | |
.onCreate(async (user, context) => { | |
const userData = user.data(); | |
await sendGistMessage("welcome", "bottom", context.params.userId, userData); | |
}); |
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
{ | |
"type": "listWidget", | |
"dataSource": "$news.articles", | |
"template": { | |
"type": "actionWidget", | |
"behavior": "system", | |
"action": "$news.articles.url", | |
"component": { | |
"type": "fixedListWidget", | |
"components": [{ |
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
{ | |
"id": "4092d342-352d-4b66-9378-144035e8867f", | |
"type": "blockWidget", | |
"padding": ["","","","l"], | |
"component": { | |
"id": "4650c074-5d89-44ef-90bf-294da7865819", | |
"type": "actionWidget", | |
"onEvent": "tap", | |
"action": "https://metro.co.uk...", | |
"behaviour": "system", |
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
{ | |
"name": "news", | |
"query": "getNewsByTopic", | |
"version": 1 | |
} |
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
"components": [ | |
{ | |
"type": "textWidget", | |
"textAlign": "center", | |
"color": "mainText", | |
"text": "Hello World", | |
"style": "headingL" | |
} | |
] |
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
{ | |
"version": 1, | |
"engineVersion": 1, | |
"name": "getTopics", | |
"method": "GET", | |
"endpoint": "http://api.bourbon.sh/news/{userId}/topics", | |
"requestHeaders": { | |
"Authorization": "Bearer {jwtToken}" | |
}, | |
"requestBody": {}, |
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
alias purgeall='sudo rm -rf ~/Library/Caches/org.carthage.CarthageKit && sudo rm -rf ~/Library/Developer/Xcode/DerivedData/*' | |
alias purgeallbuilds='rm -rf ~/Library/Developer/Xcode/DerivedData/*' | |
alias gitsubdevelop='git submodule foreach "(git checkout develop; git pull)&"' | |
alias cuios='carthage update --platform ios --no-build-binaries' | |
function gi() { curl -L -s https://www.gitignore.io/api/$@ ;} |
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.Text; | |
namespace EMSampleBL.Process | |
{ | |
public class Employee | |
{ | |
public List<EMSampleDL.vEmployeeDepartment> GetAllEmployeeDepartments() |