Skip to content

Instantly share code, notes, and snippets.

View mirkancal's full-sized avatar
🐦
Flutterin'

Mirkan Çalışkan mirkancal

🐦
Flutterin'
View GitHub Profile
@mirkancal
mirkancal / mouse.cpp
Created April 25, 2018 08:31
Control mouse
#include <X11/Xlib.h>
#include<stdio.h>
#include<unistd.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
/*globals window, $, clearInterval, setInterval */
$(function () {
"use strict";
var hl,
newsList = $('.news-headlines'),
newsListItems = $('.news-headlines li'),
firstNewsItem = $('.news-headlines li:nth-child(1)'),
newsPreview = $('.news-preview'),
import csv
import matplotlib.pyplot as plt
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import LeaveOneOut
from sklearn import metrics
ageCol = []
experienceCol = []
powerCol = []
@mirkancal
mirkancal / jobs.js
Last active December 16, 2018 17:36
GithubJobs w/ proxy
// Other proxies
// https://cors-escape.herokuapp.com/https://jobs.github.com/positions.json?description=python&location=new+york
// "https://cors-anywhere.herokuapp.com/https://jobs.github.com/positions.json?description=python&location=new+york
"use strict";
_getJobs = function () {
var url = "https://github-jobs.glitch.me/positions.json?description=python&location=new+york";
return fetch(url).then(function (response) {
return response.json();
This file has been truncated, but you can view the full file.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# This hosts file is a merged collection of hosts from reputable sources,
# with a dash of crowd sourcing via Github
#
# Date: 22 January 2019 05:05:46 (UTC)
# Extensions added to this file: fakenews, gambling, porn, social
# Number of unique domains: 53,552
#
@mirkancal
mirkancal / gitlogpretty
Created April 12, 2019 20:10
Git log pretty
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
git log --all --decorate --oneline --graph
@mirkancal
mirkancal / main.dart
Last active June 9, 2019 15:48
medium_peanut
import 'package:flutter_web/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
@mirkancal
mirkancal / FontManifest.json
Created June 10, 2019 15:49
medium_article_peanut
[
{
"family": "MaterialIcons",
"fonts": [
{
"asset": "https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2"
}
]
},
{
import 'package:flutter_web/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
import 'package:flutter_web/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(