Skip to content

Instantly share code, notes, and snippets.

import React, { Component, PropTypes, constructor, State } from 'react';
import ReactDOM from 'react-dom';
import { createContainer } from 'meteor/react-meteor-data';
import Flexbox from 'flexbox-react';
import ReactCountdownClock from "react-countdown-clock";
export default class Counter extends Component {
constructor(props) {
super(props);

Keybase proof

I hereby claim:

  • I am abdullahoguk on github.
  • I am abdullahoguk (https://keybase.io/abdullahoguk) on keybase.
  • I have a public key whose fingerprint is 01AF 942E F65F 1A19 6163 ABB9 34CD A312 66B1 9A90

To claim this, I am signing this object:

Usage

Download/Clone Project in https://github.com/abdullahoguk/darktable-light-theme

  1. Place themes and icons folders into ~/.config/darktable directory.

  2. Open Terminal and run these commands to create a link to main themes directory of Darktable.

    cd ~/.config/darktable/themes

    ln -s /usr/share/darktable/themes/

@abdullahoguk
abdullahoguk / FFMpeg Commands.md
Last active February 3, 2023 16:30
Useful FFMpeg Commands

Useful FFMpeg Commands

Extract audio

ffmpeg -i video.mp4 -vn -acodec copy audio.aac

Convert a gif to mp4 video

ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4

Convert mp4 video to gif

ffmpeg -i input.mp4 -r 10 agif_r10_320x180.gif -hide_banner

@abdullahoguk
abdullahoguk / il.csv
Last active March 30, 2024 20:10
Türkiye'deki İllerin Enlem Boylam Bilgileri (JSON ve CSV) Kaynak: https://gist.github.com/ismailbaskin/2492196
plaka il_adi lat lon northeast_lat northeast_lon southwest_lat southwest_lon
1 ADANA 37.00000000 35.32133330 37.07200400 35.46199500 36.93552300 35.17470600
2 ADIYAMAN 37.76416670 38.27616670 37.82566700 38.33546500 37.71708600 38.18818800
3 AFYONKARAHİSAR 38.76376000 30.54034000 38.80210500 30.61116700 38.71428900 30.44232000
4 AĞRI 39.72166670 43.05666670 39.74860500 43.08524100 39.68814400 43.00177800
5 AMASYA 40.65000000 35.83333330 40.67283400 35.85632100 40.63691100 35.78909100
6 ANKARA 39.92077000 32.85411000 40.10098100 33.02486600 39.72282100 32.49909700
7 ANTALYA 36.88414000 30.70563000 36.97517800 30.84095300 36.78586600 30.51609500
8 ARTVİN 41.18333330 41.81666670 41.20707800 41.85479900 41.15541500 41.77736100
9 AYDIN 37.84440000 27.84580000 37.87099700 27.88535500 37.81957300 27.79052200
@abdullahoguk
abdullahoguk / reset.css
Last active December 10, 2020 12:22
reset.css
/* from https://dev.to/hankchizljaw/a-modern-css-reset-6p3 */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default padding */
ul[class],
@abdullahoguk
abdullahoguk / my-componenet.js
Last active December 12, 2020 15:12
Web Componenets
const template = document.createElement("template");
template.innerHTML = `
<style>
:host{
--light: #b0ade0;
--main: #36308aff;
--dark: #686778ff;
--gr1:linear-gradient(90deg, var(--darker), var(--main));
font-family: 'Changa', sans-serif;
display:block;
@abdullahoguk
abdullahoguk / loadScript.js
Created February 25, 2021 06:52
Load scripts dynamically in JS
//Source: https://aaronsmith.online/easily-load-an-external-script-using-javascript/
//-------------------PROMISE METHOD --------------------------
/**
* Loads a JavaScript file and returns a Promise for when it is loaded
*/
const loadScript = src => {
return new Promise((resolve, reject) => {
const script = document.createElement('script')
script.type = 'text/javascript'
@abdullahoguk
abdullahoguk / onLoadAdder.js
Created February 25, 2021 07:17
Append to "onload" function in JS
//source: https://ehikioya.com/working-with-javascript-onload-functions/
//Add function to onload without overriding previously defined onloads
AddOnLoadEvent(yourFunction);
function AddOnLoadEvent(functionX) {
var oldonloadevent = window.onload;
if (typeof window.onload != 'function') {
window.onload = functionX;
}
else {
@abdullahoguk
abdullahoguk / lazyload.js
Last active March 4, 2021 08:19
Vanilla Lazy Load
//source: https://www.merixstudio.com/blog/lazy-loading-pure-javascript/
function lazyLoadInit(){
let lazyImages = [].slice.call(document.querySelectorAll("img.lazy"));
let active = false;
var treshold = 100;
const lazyLoad = function() {
if (active === false) {
active = true;
setTimeout(function() {