Skip to content

Instantly share code, notes, and snippets.

View ahmetabdi's full-sized avatar
:shipit:

Ahmet ahmetabdi

:shipit:
View GitHub Profile
# Shell prompt based on the Solarized Dark theme.
# Screenshot: http://i.imgur.com/EkEtphC.png
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing.
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM='xterm-256color';
fi;
require 'rubygems'
require 'headless'
require 'selenium-webdriver'
Headless.ly do
caps = Selenium::WebDriver::Remote::Capabilities.firefox(:proxy => Selenium::WebDriver::Proxy.new(:http => "109.232.62.78:12345"))
driver = Selenium::WebDriver.for(:firefox, :desired_capabilities => caps)
# driver = Selenium::WebDriver.for :chrome
driver.navigate.to 'http://google.com'
puts driver.title
#include "header.h"
int Counter = 0;
HWND hwnd;
const int Width = 300;
const int Height = 300;
ID3D11DeviceContext* g_DeviceContext;
ID3D11Device* g_Device;
ID3D11RenderTargetView* g_RenderTargetView;
{
"after_callback": "",
"before_callback": "",
"bold_folder_labels": false,
"caret_extra_width": 1,
"caret_style": "phase",
"check_for_bundler": false,
"check_for_rbenv": false,
"check_for_rvm": false,
"check_for_spring": false,
class Tmdb::Requester
def self.get(url, params = {} of Char => Char)
url = api.url_for(action, params)
HTTP::Client.get(url, headers: headers)
end
private def api
Igdb::Api.instance
end
@ahmetabdi
ahmetabdi / config.fish
Last active April 22, 2016 07:51
My fish config - for future use?
# Unix
alias ll="ls -al"
alias mkdir="mkdir -p"
set -x PYTHONPATH '/usr/local/lib/python2.7/site-packages'
set -x ANDROID_HOME '/usr/local/opt/android-sdk'
# Swift
alias swift='xcrun swift'
alias simulator='open /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app/'
json_mapping({
images: Hash(
base_url: String,
secure_base_url: String,
backdrop_sizes: Array(String),
logo_sizes: Array(String),
poster_sizes: Array(String),
profile_sizes: Array(String),
still_sizes: Array(String),
),
[user]
email = [email protected]
name = Ahmet Abdi
[alias]
br = branch
; Example: g ch master...staging
ch = log --cherry --pretty=format:\"%C(auto)%h (%ar) %an: %s\" --date-order --reverse
ci = commit
co = checkout
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.Runtime.InteropServices;
using ReadWriteMemory;
namespace TestSwtorApp
using System.Diagnostics;
using System.Runtime.InteropServices;
using System;
using System.Media;
using System.Text;
using System.Threading;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;