Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View furkancelik's full-sized avatar

Furkan Çelik furkancelik

View GitHub Profile
@furkancelik
furkancelik / FeeCollector.sol
Created September 26, 2022 14:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
pragma solidity ^0.8.7;
// SPDX-License-Identifier: MIT
contract FeeCollector {
address public owner;
uint256 public balance;
constructor() {
owner = msg.sender; // sözleşmeyi dağıtan adres bilgileri
}
@furkancelik
furkancelik / index.js
Created April 9, 2020 11:57
dataloader-test-1
const users = require("./users");
const posts = require("./posts");
module.exports = {
users,
posts: posts(),
};
/* @flow */
import React, { Component } from 'react';
import {
TouchableOpacity,
Image,
View,
Text,
StatusBar,
ScrollView,
Dimensions,
/* @flow */
import React, { PureComponent } from 'react';
import { TouchableHighlight, Image, Dimensions } from 'react-native';
const { width }: { width: number } = Dimensions.get('window');
type node = { node: { image: { uri: string } } };
type State = {};
type Props = {
item: node,
@furkancelik
furkancelik / app1.js
Created January 29, 2019 16:16
React Hooks Form Example
import React, { useState } from "react";
function useInput(initialValue) {
const [value, setValue] = useState(initialValue);
function handleChange(e) {
setValue(e.target.value);
}
return {
value,
onChange: handleChange
@furkancelik
furkancelik / ListItem.js
Last active January 28, 2019 14:48
React Native Animation Menu
import React, { Component } from "react";
import { Dimensions, Animated, Text, View } from "react-native";
const { height, width } = Dimensions.get("window");
export default class ListItem extends Component {
constructor(props) {
super(props);
this.show = new Animated.Value(0);
}
componentDidMount() {
import React, { Component } from 'react';
import {
TouchableHighlight,
TouchableOpacity,
Image,
ImageBackground,
View,
Text,
StatusBar,
ScrollView,
var WebSocketServer = require('ws').Server
, wss = new WebSocketServer({ port: 8083 });
wss.on('connection', function connection(ws) {
ws.on('message', function incoming(message) {
console.log('received: %s', message);
// ws.send("message");
ws.send(message);
});