Skip to content

Instantly share code, notes, and snippets.

View ozknozsrt's full-sized avatar
🚀
Focusing

Özkan ÖZSERT ozknozsrt

🚀
Focusing
View GitHub Profile
export const getThumbnail = (id, size = 300) =>
`https://drive.google.com/thumbnail?id=${id}&sz=${size}`;
export const getIcon = (mimeType) =>
`https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`;
export const getFile = (id) => `https://drive.google.com/uc?id=${id}`;
const downloadFile = (id) =>
@ozknozsrt
ozknozsrt / README.md
Last active September 5, 2020 16:10
Some of the resources discovered about React
@seunggabi
seunggabi / semantic-branch-names.md
Last active April 18, 2024 09:29
Semantic Branch Names

Semantic Branch Names

See how a minor change to your branch name style can make you a better programmer.

Format: <type>/#<issueNumber>-<alias>

Example

@brun0xff
brun0xff / code-tag.txt
Created June 22, 2018 14:53
TODO: FIXME, HACK, and REVIEW
# Use TODO to note missing features or functionality that should be added at a later date.
# Use FIXME to note broken code that needs to be fixed.
# Use OPTIMIZE to note slow or inefficient code that may cause performance problems.
# Use HACK to note code smells where questionable coding practices were used and should be refactored away.
# Use REVIEW to note anything that should be looked at to confirm it is working as intended.
@santisbon
santisbon / Search my gists.md
Last active April 14, 2024 17:24
How to #search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

import Vue from 'vue';
import posts from './components/posts.vue';
window.axios = require('axios');
window.Vue = Vue;
Vue.component('posts', posts);
const app = new Vue({
el: '#app',
@jwilson8767
jwilson8767 / es6-element-ready.js
Last active April 10, 2024 17:28
Wait for an element to exist. ES6, Promise, MutationObserver
// MIT Licensed
// Author: jwilson8767
/**
* Waits for an element satisfying selector to exist, then resolves promise with the element.
* Useful for resolving race conditions.
*
* @param selector
* @returns {Promise}
*/
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 18, 2024 12:05
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@mrbobbybryant
mrbobbybryant / loadmore.js
Last active November 13, 2022 01:58
Example WordPress Rest API pagination abstraction
import queryString from 'query-string';
import { getSpinner } from './components';
/**
* Implementation Example at the very bottom.
*/
export default function( settings ) {
let page = 2;
let buttonContent;
let headers;
[
{
"il": "Adana",
"plaka": 1,
"ilceleri": [
"Aladağ",
"Ceyhan",
"Çukurova",
"Feke",
"İmamoğlu",