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 { CounterHook } from "./counter"; | |
let Hooks = { | |
CounterHook, | |
}; | |
let csrfToken = document | |
.querySelector("meta[name='csrf-token']") | |
.getAttribute("content"); | |
let liveSocket = new LiveSocket("/live", Socket, { |
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
defmodule Application do | |
def get_queue_url() do | |
url = Application.get_env(:dau, RabbitMQ) |> Keyword.get(:urls) | |
case url do | |
url -> {:ok, url} | |
nil -> {:error, "Queue URL is not set"} | |
end | |
rescue | |
_ -> {:error, "Unexpected Error : Fetching Queue URL"} | |
end |
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
document | |
.querySelectorAll('[data-testid="tweetText"]') | |
.forEach((i)=>{ | |
console.log(i) | |
if(i.innerText.indexOf("HouseOfTheDragon")!=-1){ | |
i.parentElement.parentElement.parentElement.remove() | |
} | |
}) |
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
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: infrastructure-data-metabase | |
labels: | |
app.kubernetes.io/name: infrastructure-data-metabase | |
app.kubernetes.io/component: web | |
app.kubernetes.io/part-of: infrastructure | |
app.kubernetes.io/managed-by: tattle | |
data: |
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 React, { useState } from "react"; | |
import { useSpring, animated } from "react-spring"; | |
const Transition = () => { | |
const [dataNum, setDataNum] = useState(true); | |
const { val } = useSpring({ | |
val: dataNum ? 1 : 0, | |
}); | |
return ( |
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 React, { useState } from "react" | |
import { Box, Grommet, Button, TextInput } from "grommet" | |
import TattleTheme from "../atomic/theme" | |
import Dropzone from "react-dropzone" | |
import axios from "axios" | |
const Queries = () => { | |
const [question, setQuestion] = useState("") | |
const [files, setFiles] = useState([]) |
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
{ | |
"sectionSearchDuplicate": { | |
"status": "data", | |
"type": "image", | |
"mediaUrl": "https://tattle-media.s3.amazonaws.com/post_image_1.jpeg" | |
}, | |
"sectionSearchFactCheckedStories": { | |
"status": "data", | |
"urls": [ | |
{ |
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
const SectionSearchWhatsappPosts = () => { | |
const dispatch = useDispatch(); | |
const sectionSearchDuplicate = useSelector( state => state.sectionSearchDuplicate) | |
const factCheckedStoriesData = useSelector( state => state.sectionSearchFactCheckedStories) | |
const onSubmit = (({searchQuery) => { | |
dispatch(findDuplicateImages(searchQuery)); | |
dispatch(findSimilarFactCheckedStories(searchQuery)) |
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
<AppShell | |
layoutType={'portal'} | |
primaryNavigationSection = { | |
<PrimaryNavigationSection> | |
... | |
</PrimaryNavigationSection> | |
} | |
mainContentSection = { | |
<MainContentSection route={mainContentSection.route}> |
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
/** | |
* Created by nivsherf on 07/07/2016. | |
*/ | |
'use strict'; | |
var watsonController = require('../controllers/watson-controller'), | |
sns = require('../controllers/sns-controller'), | |
trainingController = require('../controllers/training-controller'), | |
conversation = require('../models/conversation'), | |
question = require('../models/question'), |
NewerOlder