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 Request interface { | |
toPkiString() string | |
} | |
func prepareResponse(request Request, methodType string, endpoint string, options Options) string { | |
pkiString := request.toPkiString() | |
requestJson, _ := json.Marshal(request) | |
requestJson = string(requestJson) | |
response := connect(methodType, endpoint, options, requestJson, pkiString) |
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
#!/usr/bin/env python | |
import json | |
import numpy as np | |
import unittest | |
# constants | |
FILENAME = 'customers.json' | |
INTERCOM_COORDS = [53.339428,-6.257664] | |
WITHIN_DISTANCE = 100 | |
EARTH_RADIUS = 6367 |
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
var i = 1 | |
setInterval(function() { | |
var text = '?'.repeat(i++); | |
window.InputEvent = window.Event || window.InputEvent; | |
var d = new Date(); | |
var event = new InputEvent('input', { bubbles: true }); | |
var textbox = document.querySelector( | |
'#main > footer > div._3pkkz.copyable-area > div._1Plpp > div > div._2S1VP.copyable-text.selectable-text' | |
); | |
textbox.textContent = text; |
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
<span class="timeout">2:00</span> | |
<button id="startTimer">Start</button> | |
<script> | |
var interval; | |
function countdown() { | |
clearInterval(interval); | |
interval = setInterval( function() { |
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 React, { Component } from "react"; | |
import { render, createPortal } from "react-dom"; | |
class List extends Component { | |
render() { | |
return [ | |
<li key="A">First item</li>, | |
<li key="B">Second item</li>, | |
<li key="C">Third item</li>, | |
<OtherList /> |
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 React, { Component } from 'react'; | |
import { render } from "react-dom"; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { error: null }; | |
} | |
componentDidCatch(error, errorInfo) { |
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 React, { Component } from "react"; | |
import { render } from "react-dom"; | |
class String extends Component { | |
render() { | |
return "Sadece String!"; | |
} | |
} | |
render(<String />, document.getElementById("root")); |
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 React, { Component } from "react"; | |
import { render } from "react-dom"; | |
class List extends Component { | |
render() { | |
return [ | |
<li key="A">First item</li>, | |
<li key="B">Second item</li>, | |
<li key="C">Third item</li> | |
]; |
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
<?php | |
// tüm postları array olarak döndürür, diğer argumentler için https://developer.wordpress.org/reference/functions/get_posts/ | |
// listeleme sayfasında foreach ile postları listeyebilirsiniz. | |
function getPosts() { | |
$args = array( | |
'posts_per_page' => -1, | |
'orderby' => 'menu_order', | |
'order' => 'DESC', |
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
text-overflow: ellipsis; | |
white-space: nowrap; | |
overflow: hidden; | |
display: inline-block; | |
width: 100%; |