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
find . -depth -name "*.scss" -exec sh -c 'mv "$1" "${1%.scss}.css"' _ {} \; |
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
if($page && !empty($page) && $page!="") { | |
$offset = (int)$per_page * (int)$page; | |
$querystr = " | |
SELECT p.ID, p.post_title, m.meta_value AS date | |
FROM $wpdb->posts p INNER JOIN $wpdb->postmeta m ON p.ID = m.post_id | |
JOIN st_icl_translations tr ON p.ID = tr.element_id | |
WHERE p.post_type = 'play' AND p.post_status = 'publish' | |
AND tr.language_code = '$lang' | |
AND m.meta_key LIKE 'dates_%_date' | |
AND CAST(m.meta_value AS SIGNED) > $from |
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
// какая-то функция, которая показывает виджет | |
function showWidget($widget) { | |
$widget.appendTo($parentElement); | |
setTimeout(() => { | |
$widget.addClass('show-widget'); | |
}, 1); | |
} |
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
Show hidden characters
{ | |
"extends": "airbnb/legacy", | |
"rules": { | |
"vars-on-top": 0, | |
"func-names": 0, | |
"no-new": 0, | |
"space-before-function-paren": [2, "never"], | |
"no-param-reassign": 0 | |
}, | |
"env": { |
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
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p | |
p = push | |
po = push origin |
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
{ | |
"order": [ | |
"custom-properties", | |
"dollar-variables", | |
{ | |
"type": "at-rule", | |
"name": "mixin" | |
}, | |
"declarations", | |
{ |
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
[ | |
{"label": "Afghanistan", "value": "af"}, | |
{"label": "Åland Islands", "value": "ax"}, | |
{"label": "Albania", "value": "al"}, | |
{"label": "Algeria", "value": "dz"}, | |
{"label": "American Samoa", "value": "as"}, | |
{"label": "AndorrA", "value": "ad"}, | |
{"label": "Angola", "value": "ao"}, | |
{"label": "Anguilla", "value": "ai"}, | |
{"label": "Antarctica", "value": "aq"}, |
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
[@bs.val] [@bs.scope ("module")] | |
external isHotEnabled : bool = "hot"; | |
[@bs.val] [@bs.scope ("module", "hot")] external hotAccept : unit => unit = "accept"; | |
ReactDOMRe.renderToElementWithId(<App />, "root"); | |
if (isHotEnabled) { | |
hotAccept(); | |
} |
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
B _build/src | |
S src | |
PKG cmdliner lwt | |
FLG -w +a-4-40..42-44-45-48 |
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
const fs = require('fs') | |
const path = require('path') | |
const definedTypes = { | |
'PropTypes.string': 'string', | |
'PropTypes.bool': 'bool', | |
} | |
const files = fs.readdirSync('src') | |
.filter(file => file[0] === file[0].toUpperCase() && file[0] !== '_') |
OlderNewer