Skip to content

Instantly share code, notes, and snippets.

Azer Koçulu azer

Block or report user

Report or block azer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@azer
azer / gist:38dbf5c259a1fb6aa018b4f8668d04d7
Created Aug 7, 2019
Unwatch all repositories of an organization
View gist:38dbf5c259a1fb6aa018b4f8668d04d7
(function () {
const org = 'ORG'
const nodes = document.querySelectorAll('.Box-row');
const rows = [ ...nodes ];
const orgRows = rows.filter((e) => e.innerText.startsWith(` ${org}/`));
const orgUnsubButtons = orgRows.map(row => row.querySelector('button.select-menu-item[value="included'));
orgUnsubButtons.forEach(button => console.log(button.click()));
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Kozmos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
html, body {
margin: 0;
@azer
azer / resume.tex
Last active Sep 17, 2018
resume.tex
View resume.tex
% LaTeX Curriculum Vitae Template
%
% Copyright (C) 2004-2009 Jason Blevins <jrblevin@sdf.lonestar.org>
% http://jblevins.org/projects/cv-template/
%
% You may use use this document as a template to create your own CV
% and you may redistribute the source code freely. No attribution is
% required in any resulting documents. I do ask that you please leave
% this notice and the above URL in the source code if you choose to
% redistribute this file.
@azer
azer / check-for-compile-errors.go
Created Jun 22, 2018
Check for compile errors, show a nice error screen if there is any
View check-for-compile-errors.go
package main
import (
"fmt"
"github.com/labstack/echo"
"io/ioutil"
"net/http"
"strings"
)
@azer
azer / fake-chat.elm
Created May 21, 2018
Elm Ports Example
View fake-chat.elm
port module FakeChat exposing (..)
import Html exposing (Html, div, input, text, button, ul, li)
import Html.Events exposing (onClick, onInput)
import Html.Attributes exposing (type_, placeholder, value)
main =
Html.program
{ view = view
@azer
azer / radio-01.elm
Created May 20, 2018
Simple radio app in 55 lines of Elm
View radio-01.elm
module Main exposing (..)
import Html exposing (Html, div, button, audio, text)
import Html.Events exposing (onClick)
import Html.Attributes exposing (src, autoplay, controls)
main =
Html.beginnerProgram
{ view = view
@azer
azer / website-topics-nested.json
Last active Feb 24, 2018
Wikipedia Website Topics
View website-topics-nested.json
[
{
"title": "All",
"children": [
{
"title": "3D printing websites"
},
{
"title": "Anatomy websites"
},
View top-1m.csv
We can't make this file beautiful and searchable because it's too large.
1,google.com
2,youtube.com
3,facebook.com
4,baidu.com
5,wikipedia.org
6,yahoo.com
7,google.co.in
8,reddit.com
9,qq.com
View top-1m.csv
We can't make this file beautiful and searchable because it's too large.
1,google.com
2,youtube.com
3,facebook.com
4,baidu.com
5,wikipedia.org
6,yahoo.com
7,google.co.in
8,reddit.com
9,qq.com
View gist:87e6919fc24ad08839e01b1ee3158b45
import { h, Component } from 'preact'
export default class Input extends Component {
componentDidMount() {
if (this.props.autofocus) this.focus()
}
focus () {
this.el.focus()
}
You can’t perform that action at this time.