Skip to content

Instantly share code, notes, and snippets.

@mertcanaltin
mertcanaltin / index.html
Created June 15, 2018 07:47
Ramadan Kareem
<div id='stars'></div>
<div class="ramadan-wrapper">
<svg viewBox="270 170 170 220" class="ramadan-off">
<path id="off" opacity="0.52" fill="none" stroke="#243742" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-dasharray="9,6,5,16" d="
M442.4,343.1c-87.6,8.6-141.7-61.8-122.8-145.2c-33.3,14.9-40.7,52.2-34,82.9C298.6,341.8,371.6,397.2,442.4,343.1z" />
</svg>
<svg viewBox="270 170 170 220" class="ramadan">
<defs>
<filter id="f1" x="0" y="0">
<feGaussianBlur in="SourceGraphic" stdDeviation="2" />
@mertcanaltin
mertcanaltin / wp_get_post.php
Created August 8, 2019 17:56
wordpress tüm yazıları resimleriyle çeker
<?php if(function_exists('rps_show')) echorps_show(); ?>
<?php query_posts('showposts=15'); ?>
<?php while (have_posts()) : the_post(); ?>
<ul>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if(has_post_thumbnail()) { the_post_thumbnail(); }
elseif( $thumbnail = get_post_meta($post->ID, 'resim', true) ){ ?>
<div class="padding150_0">
<div id="sonyazilar">
<?php $postslist = get_posts('category=1&numberposts=5&order=DESC'); foreach ($postslist as $post) : setup_postdata($post); ?>
<a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
<?php $values = get_post_custom_values("resim"); ?>
<?php if($values==""){?><?php }else{ ?>
<img class="syresim" src="<?php echo $values[0]; ?>" alt="<?php the_title(); ?>" /><?php } ?>
</a>
<?php endforeach; ?>
</div>
@mertcanaltin
mertcanaltin / Registry.cs
Created January 29, 2020 12:05
Registry de Alt Klasöre veri yazma
Registry.CurrentUser.CreateSubKey("can").SetValue("can");
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.XR.ARFoundation;
[RequireComponent(typeof(ARFaceManager))]
public class FaceController : MonoBehaviour
{
[SerializeField]
private Button faceTrackingToggle;
@mertcanaltin
mertcanaltin / whatsapp-emoji-en.js
Created February 21, 2020 23:45
whatsapp emoji list code
/*! mertcanaltin. */
webpackJsonp([126], {
bhiedjfcbg: function(e, a) {
e.exports = {
0: ["0⃣"],
1: ["1⃣", "🕐", "🕜"],
2: ["🕑", "2⃣", "🕝"],
3: ["🕒", "🕞", "3⃣"],
4: ["🕓", "🍀", "🕟", "4⃣"],
5: ["🕠", "5⃣", "🕔"],
@mertcanaltin
mertcanaltin / get-products.js
Created October 29, 2020 11:03
Wordpress Woocommerce Graphql Get Products query
import React from "react"
import { graphql } from "gatsby"
const ComponentName = ({ data }) => <pre>{JSON.stringify(data, null, 4)}</pre>
export const query = graphql`
{
products {
edges {
node {
@mertcanaltin
mertcanaltin / wordpress-get-post.php
Last active November 10, 2020 11:52
wordpress post yazı çekmek için
<div class="container">
<section class="row index-pizza-blog-footer-bottom">
<?php
$args = array(
'post_type' => 'post',
'orderby' => 'rand',
'posts_per_page' => -1,
);
$loop = new WP_Query( $args );
! function(f, a, c) {
var s, l = 256,
p = "random",
d = c.pow(l, 6),
g = c.pow(2, 52),
y = 2 * g,
h = l - 1;
function n(n, t, r) {
function e() {
{
"func": {
"prefix": "func",
"body": [
"function (${param}) { }"
],
"description": "An anonymous function."
},
"jqAfter": {
"prefix": "jqAfter",