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
name: Format check on pull request | |
on: pull_request | |
jobs: | |
dotnet-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 |
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
using System; | |
using System.Collections.Generic; | |
public static class ListExtensions | |
{ | |
public static IEnumerable<List<TInput>> AllCombinations<TInput>(this IList<TInput> list) | |
=> list.AllCombinations(() => new List<TInput>(), (list, item) => list.Add(item)); | |
public static IEnumerable<TCombinationContainer> AllCombinations<TInput, TCombinationContainer>( | |
this IList<TInput> list, |
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
Afghan|Afghan | |
Albanian|Albanian | |
Algerian|Algerian | |
American|American | |
Andorran|Andorran | |
Angolan|Angolan | |
Antiguans|Antiguans | |
Argentinean|Argentinean | |
Armenian|Armenian | |
Australian|Australian |
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
// In template.php: | |
function THEME_menu_local_tasks($variables) { | |
// Add contextual links js and css library | |
drupal_add_library('contextual', 'contextual-links'); | |
$output = ''; | |
if (!empty($variables['primary'])) { | |
$variables['primary']['#prefix'] = '<div class="contextual-links-wrapper"><ul class="contextual-links">'; | |
$variables['primary']['#suffix'] = '</ul></div>'; |
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 THEME_css_alter(&$css) { | |
foreach ($css as $key => $value) { | |
if ($value['group'] != CSS_THEME) { | |
$exclude[$key] = FALSE; | |
} | |
} | |
$css = array_diff_key($css, $exclude); | |
} |
NewerOlder