If you get error:
run npm command gives error "/usr/bin/env: node: No such file or directory
in file watcher
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?php |
/* | |
modified from original source: https://bitbucket.org/mattkotsenas/c-promises/overview | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Promises |
<!-- Prevent FOUC (flash of unstyled content) - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ --> | |
<style type="text/css"> | |
.no-fouc {display: none;} | |
</style> | |
<script type="text/javascript"> | |
document.documentElement.className = 'no-fouc'; | |
// add to document ready: $('.no-fouc').removeClass('no-fouc'); | |
</script> |
#include <iostream> | |
#include <fstream> | |
#include <stdio.h> | |
const int N = 1000*1000*10; | |
void f1() { | |
std::ofstream out("out.txt", std::ios::binary); | |
for (int i = 0; i < N; ++i) { |
upload(files) { | |
const config = { | |
onUploadProgress: function(progressEvent) { | |
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
console.log(percentCompleted) | |
} | |
} | |
let data = new FormData() | |
data.append('file', files[0]) |
interface ResettableLazy<out T> : Lazy<T> { | |
fun reset() | |
} | |
private class ResettableSynchronizedLazyImpl<out T>(initializer: () -> T, lock: Any? = null) : ResettableLazy<T> { | |
private val initializer: (() -> T)? = initializer |
/** Разрешенные импорты (для сортировки) */ | |
const ALLOWED_PATH_GROUPS = ["pages/**", "features/**", "entities/**", "shared/**"].map( | |
(pattern) => ({ | |
pattern, | |
group: "internal", | |
position: "after", | |
}), | |
); | |
/** Для запрета приватных путей */ |