Skip to content

Instantly share code, notes, and snippets.

View SelmanKahya's full-sized avatar
💭
^ flying

Selman Kahya SelmanKahya

💭
^ flying
View GitHub Profile
@SelmanKahya
SelmanKahya / cloudSettings
Last active January 26, 2024 05:42
VSCode settings
{"lastUpload":"2020-03-22T04:20:15.321Z","extensionVersion":"v3.4.3"}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@SelmanKahya
SelmanKahya / docker-help.md
Created November 5, 2018 00:56 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" -----------------------------
" IMPORTANT:
" Keep Plugin commands between vundle#begin/end.
@SelmanKahya
SelmanKahya / gist:6973863
Last active February 22, 2024 11:08
simple example of using google dictionary word lookup. getMean() makes an ajax call to the api, then process function takes the result string and returns defination of the word as a json object.
function getMean(word){
if(word==""|| word=="Enter a word")
return;
ajax = new XMLHttpRequest();
// result callback
ajax.onreadystatechange = function(){
if(ajax.readyState==4 && ajax.status==200){
var massaged = ajax.responseText.replace(/^[^(]+\(|[^}]+$/g, ''), res;