Skip to content

Instantly share code, notes, and snippets.

View umurkontaci's full-sized avatar

Umur Kontacı umurkontaci

View GitHub Profile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index,follow">
<meta name="keywords" content="ilk deneyim ">
<meta name="description" content="Bestest Site ">
<title>This is a TEST SITE</title>
<style type="text/css">
.clearfix:after {
$scope.father = {
name: "John",
children: []
};
var child = {
name: "Mary",
father: $scope.father
};
$scope.father.children.push(child);
@umurkontaci
umurkontaci / pep8_introduced
Created November 29, 2013 09:28
Get the list of PEP8 errors you have introduced. Ignores "E501 Line too long" and "W293 Whitespace in empty line". This be changed from IGNORED_RULES value. Checkout the repository you want to check and call `pep8_introduced.sh master` (replace master with the target branch)
#!/bin/bash
CURRENT_BRANCH=`git branch --no-color | grep '*' | sed s/\*\ //`
TARGET_BRANCH=$1
CHANGED_FILE_LIST=filelist.diff.tmp
TARGET_PEP8="$TARGET_BRANCH".pep8.tmp
CURRENT_PEP8="$CURRENT_BRANCH".pep8.tmp
IGNORED_RULES="E501,W293"
if [[ -z "$1" ]]; then
@umurkontaci
umurkontaci / stackoverflow-header-css
Last active December 30, 2015 08:29
Stackoverflow header is gray again!
// ==UserScript==
// @name Stackoverflow header color
// @namespace http://umurkontaci.com
// @version 0.1
// @description Stackoverflow header is gray again!
// @match http://tampermonkey.net/index.php?version=3.5.3630.77&ext=dhdg&updated=true#features
// @copyright MIT
// ==/UserScript==
!(function (d) {
{
"event_id": "32cebd5d-1542-4703-a5a3-be5eaa90af81",
"level": "error",
"logger": "android-exception",
"message": "java.lang.Error null",
"platform": "android",
"project": 10222,
"sentry.Interfaces.Exception": [
{
"module": "java.lang",
import requests
def follow():
u = 'http://letsrevolutionizetesting.com/challenge?id=831657532'
while u:
print u
res = r.get(u, headers={'Accept': 'application/json'})
u = res.json().get('follow', None)
print res.json()
import json

def loadfile(path):
    with open(path, 'r') as f:
        return json.loads(f.read())
    
# coding: utf-8
# In[88]:
import json
def loadfile(path):
with open(path, 'r') as f:
return json.loads(f.read())
3a4,5
> 'use strict';
>
6c8
< var content = i18n.translate( 'My hat has three corners.' );
---
> var content = i18n.translate('My hat has three corners.');
9c11
< content = i18n.translate( { original: 'My hat has three corners too.' } );
---
3a4,5
> 'use strict';
>
6c8
< i18n.translate( 'My test has two files.' );
---
> i18n.translate('My test has two files.');
9c11
< module.exports = test;
---