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/sh | |
DB_USER="name" | |
DB_PASS="password" | |
DB_BASE="databese" | |
CLOUD_USER="webdav_user" | |
CLOUD_PASS="webdav_password" | |
MOUNTH=$(date +"%Y-%m") | |
CLOUD_SERVER="https://webdav.yandex.ru/" | |
NUM_WEEK=$(date +"%V") | |
NUM_DAY=$(date +"%u") |
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
ol { counter-reset: wow } | |
li { | |
width:350px; |
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
var langage = (navigator.language || navigator.browserLanguage).split('-')[0]; |
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
const marky = require('marky') | |
const render = Vue.prototype._render | |
const update = Vue.prototype._update | |
const camelize = str => str && Vue.util.camelize(str) | |
function getName (vm) { | |
if (!vm.$parent) return 'root' | |
return ( | |
camelize(vm.$options.name) || | |
camelize(vm.$options._componentTag) || |
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
<div id="app"></div> | |
<script type="text/x-template" id="example"> | |
<div> | |
<textarea v-model="test" rows="10" style="width: 900px"> | |
</textarea> | |
<div> |
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
<div id="app"></div> | |
<script type="text/x-template" id="example"> | |
<div> | |
<textarea v-model="test" rows="10" style="width: 900px"> | |
</textarea> | |
<textarea v-model="comp" rows="10" style="width: 900px"> | |
</textarea> |
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
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: "info", | |
pageSettings: { | |
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11" | |
} | |
}); | |
casper.start("https://httpbin.org/user-agent", function() { | |
this.test.assertTextExists( |
The following list tries to summarize some of the things that a developer may encounter while learning React. The list focuses on scenarios that result in actual bugs (things that don't work) or things that cause warnings in the console.
- using class prop instead of className (for/htmlFor, etc...)
- trying to set the style prop with a string
- not having a parent element or fragment
- not binding (at all or incorrectly)
- using the wrong lifecycle hook
- misspelling componentWillReceiveProps
OlderNewer