import json
def loadfile(path):
with open(path, 'r') as f:
return json.loads(f.read())
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.father = { | |
name: "John", | |
children: [] | |
}; | |
var child = { | |
name: "Mary", | |
father: $scope.father | |
}; | |
$scope.father.children.push(child); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# In[88]: | |
import json | |
def loadfile(path): | |
with open(path, 'r') as f: | |
return json.loads(f.read()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.' } ); | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3a4,5 | |
> 'use strict'; | |
> | |
6c8 | |
< i18n.translate( 'My test has two files.' ); | |
--- | |
> i18n.translate('My test has two files.'); | |
9c11 | |
< module.exports = test; | |
--- |
OlderNewer