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
var updates = []update{ | |
{[]string{"a", "y"}, []int{8, 0}}, | |
{[]string{"n"}, []int{8}}, | |
{[]string{"k", "j", "g", "z"}, []int{1, 9, 3, 3}}, | |
{[]string{"o", "j"}, []int{7, 7}}, | |
{[]string{"w", "a", "d"}, []int{6, 9, 0}}, | |
{[]string{"x", "l"}, []int{4, 2}}, | |
{[]string{"p", "f", "g"}, []int{7, 6, 0}}, | |
{[]string{"d", "j", "q", "o", "a"}, []int{9, 1, 0, 0, 9}}, | |
{[]string{"x", "o", "u", "p", "s"}, []int{0, 4, 9, 0, 6}}, |
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 os | |
from PIL import Image | |
yourpath = os.getcwd() | |
for root, dirs, files in os.walk(yourpath, topdown=False): | |
for name in files: | |
print(os.path.join(root, name)) | |
if os.path.splitext(os.path.join(root, name))[1].lower() == ".tif": | |
outpath = os.path.splitext(os.path.join("dist", name))[0] + ".png" | |
if os.path.isfile(outpath): |
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 os | |
from PIL import Image | |
from psd_tools import PSDImage | |
tifpath = "tif" | |
psdpath = "psd" | |
if not os.path.exists(tifpath): | |
os.makedirs(tifpath) | |
if not os.path.exists(psdpath): | |
os.makedirs(psdpath) |
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
// accessToken | |
https://api.instagram.com/oauth/authorize/?client_id=[clientID]&redirect_uri=[redirectURI]&response_type=token | |
// userid | |
https://api.instagram.com/v1/users/self/?access_token=412025777.b432d9c.98d4c8dc5f824153b840dd281533d393 | |
https://api.instagram.com/v1/users/self/media/recent/?access_token=412025777.b432d9c.98d4c8dc5f824153b840dd281533d393 |
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
text-overflow: ellipsis; | |
white-space: nowrap; | |
overflow: hidden; | |
display: inline-block; | |
width: 100%; |
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
<?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 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, { 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 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, { Component } from "react"; | |
import { render } from "react-dom"; | |
class String extends Component { | |
render() { | |
return "Sadece String!"; | |
} | |
} | |
render(<String />, document.getElementById("root")); |
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, { 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 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, { 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 /> |