Skip to content

Instantly share code, notes, and snippets.

<?php
// ....
function processCurlMulti($curl_session_multi) {
do {
$mrc = curl_multi_exec($curl_session_multi, $n_running_channel);
} while ($mrc == CURLM_CALL_MULTI_PERFORM || $n_running_channel > 0);
$n_idle = 0;
while ($mrc == CURLM_OK && $n_idle <= MAX_WAIT_CYCLES) {
@vanhoavn
vanhoavn / JSNestingRulesProvider.java
Last active January 2, 2017 03:21
IntelijIDEA's JavaScriptLanguage plugin's patch to group .vue component files.
package com.intellij.lang.javascript.projectView;
import com.intellij.ide.projectView.ProjectViewNestingRulesProvider;
import com.intellij.ide.projectView.ProjectViewNestingRulesProvider.Consumer;
import org.jetbrains.annotations.NotNull;
public class JSNestingRulesProvider
implements ProjectViewNestingRulesProvider
{
public void addFileNestingRules(@NotNull ProjectViewNestingRulesProvider.Consumer consumer)