This file contains hidden or 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
hey |
This file contains hidden or 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
module IntercomUtil | |
require 'intercom' | |
TOKEN = ENV["INTERCOM_PAT"] | |
@intercom = Intercom::Client.new(token: TOKEN) | |
def self.get_all_conversations | |
open_convos = @intercom.conversations.find_all(open: true) | |
closed_convos = @intercom.conversations.find_all(open: false) |
This file contains hidden or 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
helloworld: | |
image: ubuntu:14.04 | |
command: /bin/echo 'Hello world' |
This file contains hidden or 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
<details> | |
<summary>Summary Goes Here</summary> | |
``` | |
lol | |
``` | |
</details> |
This file contains hidden or 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
original = raw_input("Enter a word") | |
if len(original) >= 0 and original.isalpha(): | |
print original | |
else: | |
print "empty" |
This file contains hidden or 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 requests | |
import os | |
import json | |
TOKEN = os.environ['GH'] | |
NEW_BRANCH_NAME = '' | |
HASH = '' | |
AUTHOR= '' | |
REPO = '' |
This file contains hidden or 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 sys | |
from twisted.web.static import File | |
from twisted.python import log | |
from twisted.web.server import Site | |
from twisted.internet import reactor | |
from autobahn.twisted.websocket import WebSocketServerFactory, \ | |
WebSocketServerProtocol | |
from autobahn.twisted.resource import WebSocketResource |
This file contains hidden or 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 random | |
part1 = ["machine learning solution" , "recursive algorithm" , "e-portal" , "cross platform app" , "revolutionary supply chain management platform", "real-time code sharing tool" , "distributed solutions matrix", "backwards compatible hardware driver", "protocol suite"] | |
part2 = ["LGBT assylum seekers", "obese children", "the homeless" ,"the elderly", "rural communities" , "young people in disadvantaged areas", ] | |
part3 = ["bespoke twitter API","Big Data", "the Cloud", "open source software","obfuscated code" , "bitcoin mining", "a deep web neural network", "social media", "distributed networks", "node.js" ,] | |
rand1 = random.randrange(0,len(part1)) | |
rand2 = random.randrange(0,len(part2)) | |
rand3 = random.randrange(0,len(part3)) |
This file contains hidden or 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
from intercom.client import Client | |
intercom = Client(personal_access_token='my_personal_access_token') | |
intercom.messages.create(**{ | |
"message_type": "inapp", | |
"body": "What's up :)", | |
"from": { | |
"type": "admin", | |
"id": "1234" | |
}, |
This file contains hidden or 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 io.intercom.api.Intercom; | |
import io.intercom.api.User; | |
public class Test { | |
public static void main(String[] args){ | |
Intercom.setToken("super_Secret_token"); | |
// Create a user | |
User user = new User() |
NewerOlder