Skip to content

Instantly share code, notes, and snippets.

View yildiz's full-sized avatar
❤️
in love with JavaScript

Volkan Yıldız yildiz

❤️
in love with JavaScript
View GitHub Profile
@yildiz
yildiz / send-whatsapp-group.cs
Created February 16, 2020 22:09 — forked from whatsmate/send-whatsapp-group.cs
Sending a message to a WhatsApp group in C#
using System;
using System.Net;
using System.Web.Script.Serialization; // requires the reference 'System.Web.Extensions'
using System.IO;
using System.Text;
class WaMessageSender
{
// TODO: Replace the following with your gateway instance ID, Forever Green client ID and secret:
private static string INSTANCE_ID = "YOUR_INSTANCE_ID_HERE";
@yildiz
yildiz / README.md
Created February 3, 2020 08:10 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@yildiz
yildiz / better-nodejs-require-paths.md
Created January 13, 2020 03:50 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@yildiz
yildiz / react-navigation-tree.jsx
Created December 28, 2019 16:50 — forked from slorber/react-navigation-tree.jsx
react-navigation-tree.jsx
const App = createAppContainer(
createStack({
LoggedSwitch: createSwitch({
// When user is authenticated
LoggedIn: createStack({
// The logged in root is generally a tab or drawer navigator
LoggedInRoot: createTabsOrDrawer({
@yildiz
yildiz / add-wordpress-settings-page.php
Created July 28, 2019 14:27 — forked from DavidWells/add-wordpress-settings-page.php
WordPress :: Add Settings Page with All Fields
<?php
/*
Plugin Name: Homepage Settings for BigBang
Plugin URI: http://www.inboundnow.com/
Description: Adds additional functionality to the big bang theme.
Author: David Wells
Author URI: http://www.inboundnow.com
*/
// Specify Hooks/Filters
-----------------------------------------------------------------------------
Paket Durumu | Sürüm Durumu | Kural | Örnek Versiyon +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Paketin Yayınlanması | Yeni Paket | 1.0.0 ile Başlar | 1.0.0 +
----------------------------------------------------------------------------+
Geriye Dönük Hataların | Patch | 3. sayıyı arttır | 1.0.1 +
Düzeltilmesi +
----------------------------------------------------------------------------+
Geriye Dönük Uyumlu | Minor Release | 2. sayıyı arrtır | 1.1.0 +
Yeni Özellikler | ve sondaki sayıyı +
@yildiz
yildiz / CDN.md
Created July 7, 2019 15:02 — forked from vinkla/CDN.md
A guide on how to upload images to GitHub's CDN through issue and pull request text fields.

Upload Images to GitHub's CDN

  1. First, visit any repository on GitHub and click your way through to the issues page.

  2. Create a new issue by clicking the button New Issue. You'll now see both a title and a description field.

  3. Drag-and-drop an image on to the description field. This will start the uploading process.

  4. Copy the URL and use it in README, issues or pull requests however you like.

@yildiz
yildiz / mask.js
Created March 19, 2019 14:03 — forked from meftunca/mask.js
Javascript number mask
const mask = (res = "", regex) => {
if (res.replace(/\D+/gim, "").length == 0) return "";
if (res.replace(/\D+/gim, "").length > regex.replace(/\D+/gim, "").length)
return res.slice(0, regex.replace(/\[|\]/gim, "").length);
let regexNumber = regex.match(/\d+/gim, ""), //sadece sayılar
totalLen = res.match(/\d+/gim, "").join("").length, //gelen değerin uzunluğu
number = res.match(/\d+/gim, "").join("") + new Array(regexNumber.join("").length - totalLen).fill("_").join(""),
len = 0,
rlen = 0;
let match = regex.replace(/\[\d+\]/gim, (m, k) => m.replace(/\[\d+\]/gim, "$" + rlen++));
@yildiz
yildiz / Home.js
Created February 21, 2019 17:54
Currency App
import React, { Component } from 'react';
import { Text, View, TextInput, Dimensions, TouchableOpacity } from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';
import { connect } from 'react-redux';
import LinearGradient from 'react-native-linear-gradient';
import { Header } from '../components/Header';
const { width, height } = Dimensions.get('screen');
@yildiz
yildiz / App.js
Last active January 30, 2019 02:27
Kırmızı top sayacı
import React, { Component } from 'react';
import { StyleSheet, Text, View, TouchableOpacity, Button } from 'react-native';
export default class App extends Component {
constructor(props) {
super(props)
this.state = {
sayi: 0
}