Skip to content

Instantly share code, notes, and snippets.

View elcoputra's full-sized avatar
:octocat:
Focusing

ELCO elcoputra

:octocat:
Focusing
View GitHub Profile
@elcoputra
elcoputra / LogitechF310_Macbook.MD
Created July 26, 2023 15:22 — forked from jackblk/LogitechF310_Macbook.MD
Getting Logitech F310 to work with Macbook USB-C port

Connect & use Logitech F310 with Macbook

Since my Macbook Pro only has USB-C port, I used an USB-A to USB-C adapter to connect my F310 to it, but it does not work (pressing MODE button does not turn on the LED).

How to

To make it work:

  • Disconnect F310 from Mac
  • On F310: switch X-input to D-input
  • Hold Logitech button (in the middle)
  • Connect F310 to Mac via adapter, now you can release the Logitech button.
@elcoputra
elcoputra / ImageController.js
Created December 16, 2022 10:07 — forked from nesimtunc/ImageController.js
Minio Server - NodeJS - File Upload & Photo Showing Example
const formidable = require('formidable');
const fs = require('fs');
var Minio = require('minio');
let minioClient = new Minio.Client({
endPoint: config.MINIO.ENDPOINT,
port: config.MINIO.PORT,
accessKey: config.MINIO.ACCESS_KEY,
var numposts = 100;
var standardstyling = true;
/* programmer and maker of this code is belong to founder of http://www.ardilas.com
rawgit url (https://cdn.rawgit.com/D-dig/js/gh-pages/sitemap3.js)
*/
function startpost(json){
for (var i = 0; i < numposts; i++){
@elcoputra
elcoputra / struk.cpp
Last active May 2, 2020 01:55
Simple Console struk, biasanya keluar di tugas kampus
#include <iostream.h>
#include<conio.h>
#include<string>
int main() {
string brg1,brg2,brg3;
int byk1,byk2,byk3,jml1,jml2,jml3,total,disc;
int mouse=50000,dvd=3000,fd=75000;
cout <<"=================================================="<< endl;
cout <<" TOKO ELCO KOMPUTER "<< endl;
@elcoputra
elcoputra / test.js
Last active May 2, 2020 01:15
Test
function testaja(testdata){
if(testdata >=10){
console.log("Lebih atau sama dengan 10");
}else{
console.log("Kurang dari 10");
}
}
testaja(10);//Lebih atau sama dengan 10