windows
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 json | |
import os | |
import time | |
import webbrowser | |
import sys | |
import re | |
def handleWindows(extra_seconds): | |
print("OS : Windows") |
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
... | |
gzip on; | |
gzip_static on; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
gzip_proxied any; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; |
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 os | |
from log_exceptions import log_exceptions | |
def throw_something(a1, a2): | |
raise Exception('Whoops!') | |
@log_exceptions(log_if = os.getenv('MYAPP_DEBUG') is not None) | |
def my_function(arg1, arg2): | |
throw_something(arg1 + 24, arg2 - 24) |
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
[core] | |
# The home folder for airflow, default is ~/airflow | |
airflow_home = /Users/p1nox/airflow | |
# The folder where your airflow pipelines live, most likely a | |
# subfolder in a code repository | |
dags_folder = /Users/p1nox/airflow/dags | |
# The folder where airflow should store its log files. This location | |
base_log_folder = /Users/p1nox/airflow/logs |
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
{ | |
"卧": "臣卜", | |
"项": "工页", | |
"功": "工力", | |
"攻": "工攵", | |
"荆": "茾刂", | |
"邪": "牙阝", | |
"雅": "牙隹", | |
"期": "其月", | |
"欺": "其欠", |
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 boto3 | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket('<your_bucket>') | |
size = 0 | |
for o in bucket.objects.all(): | |
if '<your_filter>' in o.key: | |
print o, o.size | |
size += o.size | |
print 's3 size = %.3f GB' % (size/1024/1024/1024) |
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
# Typical setup to include TensorFlow. | |
import tensorflow as tf | |
# Make a queue of file names including all the JPEG images files in the relative | |
# image directory. | |
# This code will not work | |
# filename_queue = tf.train.string_input_producer( | |
# tf.train.match_filenames_once("./images/*.jpg")) |
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
isolation.tools.getPtrLocation.disable = "TRUE" | |
isolation.tools.setPtrLocation.disable = "TRUE" | |
isolation.tools.setVersion.disable = "TRUE" | |
isolation.tools.getVersion.disable = "TRUE" | |
monitor_control.disable_directexec = "TRUE" | |
monitor_control.disable_chksimd = "TRUE" | |
monitor_control.disable_ntreloc = "TRUE" | |
monitor_control.disable_selfmod = "TRUE" | |
monitor_control.disable_reloc = "TRUE" | |
monitor_control.disable_btinout = "TRUE" |
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
/*! | |
* gulp | |
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev | |
*/ | |
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
cssnano = require('gulp-cssnano'), |