Skip to content

Instantly share code, notes, and snippets.

View seyyah's full-sized avatar

seyyah seyyah

View GitHub Profile
@seyyah
seyyah / Home_tr_TR.md
Created November 1, 2018 13:08
LVGL i18n Turkish Pull Request

lvgl wiki sayfasına hoşgeldiniz!

Dokümantasyon, littlevgl.com'den buraya taşınacak.

Katkınız için teşekkürler!

@seyyah
seyyah / gist:68765065d8f47055bdf0786fa9b4ca4e
Created October 18, 2018 10:43 — forked from ryannealmes/gist:aa4eed8b222239c9e207
Update Git submodule to latest commit on origin
# get the submodule initially
git submodule add ssh://bla submodule_dir
git submodule init
# time passes, submodule upstream is updated
# and you now want to update
# change to the submodule directory
cd submodule_dir
@seyyah
seyyah / main.c
Last active July 31, 2018 16:26 — forked from postspectacular/main.c
Simple double buffer manager for STM32
static Screen *screen;
int main(void) {
HAL_Init();
SystemClock_Config();
screen = ct_screen_init();
while (1) {
ct_screen_flip_buffers(screen);
// put normal drawing code here...
@seyyah
seyyah / export_repo_issues_to_csv.py
Created July 2, 2018 16:14 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests
@seyyah
seyyah / gist:8313e9132ac5823c81a46f842d293ea1
Created June 18, 2018 13:37 — forked from l3thal/gist:6836116
docx unique word count
#!/usr/bin/ruby
require 'zip'
require 'nokogiri'
class Docx
def self.word_count(file, zip=Zip::ZipFile.open(file))
Nokogiri::XML.parse(zip.find_entry("word/document.xml").get_input_stream).text.split(" ").uniq.length
end
end
@seyyah
seyyah / .config
Last active May 8, 2018 15:17
NuttX Stm32f429i-disco/fb
#
# Automatically generated file; DO NOT EDIT.
# Nuttx/ Configuration
#
#
# Build Setup
#
# CONFIG_EXPERIMENTAL is not set
# CONFIG_DEFAULT_SMALL is not set
@seyyah
seyyah / cf-ddns.sh
Created March 13, 2018 19:23 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
@seyyah
seyyah / README.md
Created January 24, 2018 10:42 — forked from joyrexus/README.md
curl tutorial

An introduction to curl using GitHub's API.

Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin

Includes HTTP-Header information in the output

@seyyah
seyyah / subdomain-localhost-rails-5.md
Created October 30, 2017 23:48 — forked from indiesquidge/subdomain-localhost-rails-5.md
how to access subdomains locally with Rails 5

Subdomaining Localhost with Rails 5

I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api

Rails.application.routes.draw do
  constraints subdomain: "api" do
    scope module: "api" do