This file contains hidden or 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
| /* ==UserStyle== | |
| @name zhihu_onepiece - 2020/5/26 下午8:46:32 | |
| @namespace github.com/openstyles/stylus | |
| @version 1.0.0 | |
| @description A new userstyle | |
| @author Me | |
| ==/UserStyle== */ | |
| @-moz-document domain("zhihu.com") { | |
This file contains hidden or 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
| ### 1 | |
| predictions = sess.run(softmax_tensor, {'DecodeJpeg/contents:0': cv2.imencode('.jpg', image_data)[1].tostring()}) | |
| ### 2 | |
| #Loading the file | |
| img2 = cv2.imread(file) | |
| #Format for the Mul:0 Tensor | |
| img2= cv2.resize(img2,dsize=(299,299), interpolation = cv2.INTER_CUBIC) | |
| #Numpy array | |
| np_image_data = np.asarray(img2) |
This file contains hidden or 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
| from django.views import generic | |
| from .models import Item, Profit | |
| class IndexView(generic.ListView): | |
| template_name = "item/index.html" | |
| context_object_name = "items" | |
| def get_queryset(self): | |
| return Item.objects.all() |
This file contains hidden or 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
| #!/usr/bin/env python | |
| x = """#!/usr/bin/env python | |
| x = %s%s%s | |
| print x %% ('"'*3,x,'"'*3)""" | |
| print x % ('"'*3,x,'"'*3) |
This file contains hidden or 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
| mkdir -p ~/.vim/autoload ~/.vim/bundle; \ | |
| curl -LSso ~/.vim/autoload/pathogen.vim \ | |
| https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim; | |
| git clone git://github.com/jiangmiao/auto-pairs.git ~/.vim/bundle/auto-pairs; | |
| git clone https://github.com/scrooloose/nerdtree.git; | |
| git clone git://github.com/tpope/vim-surround.git; | |
| git clone https://github.com/rstacruz/sparkup.git | |
| git clone git://github.com/tpope/vim-rails.git; | |
| git clone git://github.com/tpope/vim-bundler.git; | |
| git clone git://github.com/msanders/snipmate.vim.git; |
This file contains hidden or 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
| { | |
| "auto_complete_commit_on_tab": true, | |
| "caret_style": "solid", | |
| "color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", | |
| "draw_white_space": "all", | |
| "enable_tab_scrolling": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ | |
| "*.pyc", |
This file contains hidden or 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
| set -g prefix ^a | |
| unbind ^b | |
| setw -g mode-keys vi |
This file contains hidden or 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
| from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice | |
| import sys | |
| import time | |
| import os | |
| key_map = {'d':[lambda x,y:sendKey(x, y), 'KEYCODE_ENTER'], | |
| 'e':[lambda x,y:sendKey(x, y), 'KEYCODE_DPAD_UP'], | |
| 'c':[lambda x,y:sendKey(x, y), 'KEYCODE_DPAD_DOWN'], | |
| 's':[lambda x,y:sendKey(x, y), 'KEYCODE_DPAD_LEFT'], | |
| 'f':[lambda x,y:sendKey(x, y), 'KEYCODE_DPAD_RIGHT'], |
This file contains hidden or 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
| var formidable = require('formidable'), | |
| path = require('path'), | |
| fs = require('fs'), | |
| gm = require('gm'), | |
| imageMagick = gm.subClass({ imageMagick : true}), | |
| ncp = require('ncp').ncp; | |
| http = require('http'), | |
| archiver = require('archiver'), | |
| util = require('util'); |
This file contains hidden or 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
| set nocompatible | |
| syn on | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set expandtab | |
| filetype on | |
| filetype plugin on | |
| filetype indent on | |
| set number |
NewerOlder