Skip to content

Instantly share code, notes, and snippets.

@junglehunter96
junglehunter96 / 移动端适配实例
Created Jun 26, 2019
一直以来对移动端适配方案存有疑惑,固做此梳理
View 移动端适配实例
# 移动端适配配置实例
## 设置视口
前置meta设置:`initial-scale = 理想视口宽度 / 视觉视口宽度`,所以我们设置`scale=1` 让 1`css`像素等于1个设备独立像素
```html
<meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1; minimum-scale=1; user-scalable=no;">
```
@gottadiveintopython
gottadiveintopython / example_aspectratio.py
Last active Jun 26, 2019
Forcing a widget to keep being user specific proportion
View example_aspectratio.py
'''
https://youtu.be/5kNiB7BhKAw
https://github.com/gottadiveintopython/kivy/tree/uix_aspectratio
'''
from kivy.app import runTouchApp
from kivy.lang import Builder
runTouchApp(Builder.load_string('''
AspectRatio:
View shell magic bill
ip a | grep -i global #get ip of the machine
find . -exec grep -niH bind {} \; 2> /dev/null #find any file contains 'bind'
View ubuntu-setup.sh
# Telegram setup
wget https://telegram.org/dl/desktop/linux -O tsetup.tar.xz
tar xf tsetup.tar.xz
cd Telegram
mv Telegram ~/.local/share/applications
~/.local/share/applications/Telegram &
cd ..
rm -rf Telegram
rm -rf tsetup.tar.xz
echo 'Telegram installed'
@pallavbakshi
pallavbakshi / spacemacs-keybindings
Last active Jun 26, 2019 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
View spacemacs-keybindings
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |
@sitano
sitano / to_adrian.md
Created Jun 26, 2019
About a DSG and depedency edges in Generalized Isolation Level Definitions
View to_adrian.md

Hi, Adrian!

Hope you are doing well! I also hope this is the right email of yours.

I am writing to you about your article https://blog.acolyer.org/2016/02/25/generalized-isolation-level-definitions/ . I've tried to write a comment on the site, but WordPress does not show up it.

Reading an article, the phrases:

A transaction T1 depends on T2 if there is a path in the graph from T1 to T2. It directly depends on T2 if there is an edge from T1 to T2...

View gist:2d4bf801f5af1f5fa06246376bd8e9e1
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18/ruby/config.h:365:31: error: invalid suffix on literal; C++11 requires a
space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_ARCH "universal-"RUBY_PLATFORM_OS
^
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18/ruby/config.h:366:35: error: invalid suffix on literal; C++11 requires a
space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
^
View WITS ACUMEN - EXECUTIVE SEARCH
@webgyo
webgyo / memo.md
Created Jun 26, 2019
async 属性と defer 属性の併用している理由 #javascript #googlemap
View memo.md

asyncとdefer両方指定した場合、デフォルトはasyncで、asyncに対応していないブラウザのみdeferのタイミングになります

複数のファイルに依存関係がある場合には、async 属性と defer 属性の併用は不可? 質問する

https://ja.stackoverflow.com/questions/28813/%E8%A4%87%E6%95%B0%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AB%E4%BE%9D%E5%AD%98%E9%96%A2%E4%BF%82%E3%81%8C%E3%81%82%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AB%E3%81%AF-async-%E5%B1%9E%E6%80%A7%E3%81%A8-defer-%E5%B1%9E%E6%80%A7%E3%81%AE%E4%BD%B5%E7%94%A8%E3%81%AF%E4%B8%8D%E5%8F%AF

View Potential Maintainers
Maintainers:
Synthetica9: gcc9, gcc9, gcc9, gcc9
You can’t perform that action at this time.