Skip to content

Instantly share code, notes, and snippets.

@aliustaoglu
aliustaoglu / README.md
Created June 21, 2018 10:22
How to install ESP32 for Ardino IDE on Windows
@aliustaoglu
aliustaoglu / README.md
Created June 21, 2018 09:12
How to install ESP32 for Ardino IDE on MacOS

Install python 2.7 if you don't already have

pip install wget
mkdir -p /Users/cuneytaliustaoglu/Documents/Arduino/hardware/espressif
cd /Users/cuneytaliustaoglu/Documents/Arduino/hardware/espressif
git clone https://github.com/espressif/arduino-esp32.git esp32
cd esp32
git submodule update --init --recursive
cd tools
@aliustaoglu
aliustaoglu / uuid.js
Created May 10, 2018 03:17 — forked from jcxplorer/uuid.js
UUID v4 generator in JavaScript (RFC4122 compliant)
function uuid() {
var uuid = "", i, random;
for (i = 0; i < 32; i++) {
random = Math.random() * 16 | 0;
if (i == 8 || i == 12 || i == 16 || i == 20) {
uuid += "-"
}
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16);
}
@aliustaoglu
aliustaoglu / .babelrc
Created May 2, 2018 20:48
Customising Ant.design theme
{
"env": {
"test": {
"plugins": [
/* DON'T SET import Plugin for unit test environment if you're using JEST */
]
},
"development": {
"plugins": [
["import", { "libraryName": "antd", "libraryDirectory": "es"}]
  1. Download and install https://github.com/ledongthuc/example/blob/master/file/CH34x_Install_V1.3.zip
  2. nano /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/platform.txt
  • Find -P{serial.port} and wrap in double quotes (if not already wrapped)
  1. nano /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/programmers.txt
  • Find -P{serial.port} and wrap in double quotes (if not already wrapped)
@aliustaoglu
aliustaoglu / GitHub-Forking.md
Created April 4, 2018 20:20 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@aliustaoglu
aliustaoglu / launch.json
Created January 29, 2018 21:31
Debugging mocha tests with Visual Studio Code using TypeScript
{
// 3. important points
// My tests are located in /tests/ folder and they all have .spec.js extension
// sourceMaps are enabled because I am using TypeScript
// outFiles: My generated CommonJS files. They are located under /dist/ folder
"version": "0.2.0",
"configurations": [
{
"name": "Run mocha",
/*!
* Gist DarkCode ver 0.2.0
* Copyright (c) 2016 KillerCodes.in
* License: Free to use with this file header ;)
*/.pl-enti,.pl-mb,.pl-pdb{font-weight:700!important}.cm-comment,.cm-link,.highlight .ge,.pl-c,.pl-c span,.pl-mi,.pl-pdc,.pl-pdi{font-style:italic!important}.gist{font-size:18px}.clone-url-button>.clone-url-link,.gist-file,.gist-meta,.octotree_toggle,a.button,a.minibutton,button.button,button.minibutton,span.button,span.minibutton,ul.comparison-list>li.title{background:linear-gradient(#202020,#181818)!important;border-color:#383838!important;border-radius:0 0 3px 3px!important;text-shadow:none!important;color:#b5b5b5!important}#facebox pre,#notebook .input_area,.CodeMirror,.api code,.api pre,.blob-code-context,.blob-expanded,.copyable-terminal,.highlight,.markdown-body .highlight pre,.markdown-body pre,.markdown-format .highlight pre,.markdown-format code,.markdown-format pre,.terminal,body.blog pre,body.blog pre>code{background-color:#1d1f21!important;color:#c5c8c6!important}.gist .blob-code{padd