Development / PHP

Social Poster – A Simple Facebook Page and Twitter poster

Social (Media) Poster Social Poster is a simple Facebook Page and Twitt poster Text Posting Text with Image-\s Posting Tech Social Poster uses a number of open source projects to work properly: facebook/graph-sdk – Facebook SDK for PHP (v5) dg/twitter-php – Twitter for PHP is a very small and easy-to-use library for sending messages to Twitter and receiving status updates. dillinger.io – Markdown editor for this readme.md creating/editing. Fast and easy to extend. Twitter Bootstrap – great UI boilerplate for modern web apps jQuery – duh Integration Facebook Create Facebook Developer Account Create Simple App You not need Facebook Products […]

Development / Javascript

How do Remove Element From an Array – Simple

/** Set – New Array */ const users = []; /** * Add – New Element/Item */ users.push({ id: socket.id, name: ‘Visitor’}); /** * Find – Index of Element */ var foundIndex = users.findIndex(x => x.id == socket.id); /** * Update/Add – New Data an Founded Element */ users[foundIndex].name = data.name; /** * Remove */ users.splice(foundeIndex, 1); Example from My Home Hobby Project: const users = []; nsp.on(‘connection’, (socket) => { console.log(‘Kullanici :’ + socket.id + ‘Baglandi’); users.push({ id: socket.id, name: ‘Visitor’}); socket.on(‘sendUserData’, (data) => { console.log(‘Server => ‘ + data.name + ‘ Connected.’); var foundIndex = users.findIndex(x => x.id […]