Skip to content

Instantly share code, notes, and snippets.

View fenix011's full-sized avatar
🏠
Working from home

Librebits fenix011

🏠
Working from home
View GitHub Profile
@fenix011
fenix011 / hugobricks-doc-SKELETON.md
Created June 26, 2023 17:42
hugobricks doc. (SKELETON) (nested menus ... à-la hugocodex.org add-on ... ) makingof

( HBKS - draft Table of Contents )

(nested menus might look like this ... : )

  1. [Hugobricks]
    1. [What’s included in Hugobricks?]
    2. [Hugobricks that are available (see use cases and some snippets of below) :]
  2. [Shortcodes that are available (se use cases and some snippets of below):]
@fenix011
fenix011 / output-articles-by-collection.liquid
Created April 12, 2021 16:10 — forked from nternetinspired/output-articles-by-collection.liquid
Loop through Jekyll collections and output their content as sections and articles
{% comment %}
Loops though every collection you defined in _config.yml and grabs the pages they contain; outputting title and full text with good basic html semantics.
Use page.excerpt instead of page.content to grab the first paragraph, blog list style. Markdownify is optional, depends how you authored content in your collections; I typically use Markdown.
{% endcomment % }
{% for collection in site.collections %}
{% assign name = collection.label %}
<section>
import 'dart:async';
import 'dart:html';
const List<String> wordList = const ["PLENTY","ACHIEVE","CLASS","STARE","AFFECT","THICK","CARRIER","BILL","SAY","ARGUE","OFTEN","GROW","VOTING","SHUT","PUSH","FANTASY","PLAN","LAST","ATTACK","COIN","ONE","STEM","SCAN","ENHANCE","PILL","OPPOSED","FLAG","RACE","SPEED","BIAS","HERSELF","DOUGH","RELEASE","SUBJECT","BRICK","SURVIVE","LEADING","STAKE","NERVE","INTENSE","SUSPECT","WHEN","LIE","PLUNGE","HOLD","TONGUE","ROLLING","STAY","RESPECT","SAFELY"];
const List<String> imageList = const [
"https://i.imgur.com/kReMv94.png",
"https://i.imgur.com/UFP8RM4.png",
"https://i.imgur.com/9McnEXg.png",
void main() {
print('Hello, World!');
}
HangmanGame class
int get wrongGuesses => wrongGuesses;
List<String> get wordToGuess => _wordToGuess;
String get fullWord => wordToGuess.join();
String get wordForDisplay => wordToGuess.map((String letter) => lettersGuessed.contains(letter) ? letter: "_").join();
// comprobar si cada letra de la palabra ha sido adivinada
bool get isWordComplete {
# from Ruby Koans :
# http://rubykoans.com/
def test_nil_is_an_object
assert_equal __, nil.is_a?(Object), "Unlike NULL in other languages"
end
jordi@i-ching:/DATA/Python/requests$ pipenv
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 9, in <module>
load_entry_point('pipenv==9.0.1', 'console_scripts', 'pipenv')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['__name__'])
admin@asterix:/var/www/html/platform/latinamericajourneys$ platform build
Building application php (runtime type: php:5.6)
Installing php dependencies with 'composer': drush/drush
Cannot install php dependencies: 'composer' is not installed.
See https://getcomposer.org/ for installation instructions.
Beginning to build /var/www/html/platform/latinamericajourneys/project.make. [ok]
drupal-7.54 downloaded. [ok]
>> ckeditor-7.x-1.16 downloaded. [ok]
>> Unable to untar /tmp/drush_tmp_1487875038_58af2bdecf58b/ctools-7.x-1.12.tar.gz. [error]
>> service_links-7.x-2.2 downloaded. [ok]
root@i-ching:/var/www/html/latinamericajourneys/_www# drush @y.prod sql-conf
Array
(
[database] => alice
[username] => admin75KqrXl
[host] => localhost
[port] =>
[driver] => mysql
[prefix] =>
)
@fenix011
fenix011 / strange chars at root folder
Created September 13, 2016 15:26
strange chars at root folder - on my Debian 8 VPS
root@mapuche:/# la
total 88
drwxr-xr-x 23 root 1001 4096 Jul 17 22:59 .
drwxr-xr-x 23 root 1001 4096 Jul 17 22:59 ..
---------- 1 root root 0 Jan 1 1970 ?@?
---------- 1 root root 0 Jan 1 1970 ??
---------- 1 root root 0 Jan 1 1970 ????????
---------- 1 root root 0 Jan 1 1970 ???
---------- 1 root root 0 Jan 1 1970 ??
---------- 1 root root 0 Jan 1 1970 ????>?