This information has been collected by observing the GNOME projects. Especially those of PGI
com.github.project
is the name of your project.
com.github.project/
├── data/
│ ├── appdata/
# For complete documentation of this file, please see Geany's main documentation | |
[styling=CSS] | |
[keywords=CSS] | |
[lexer_properties=CSS] | |
lexer.css.less.language=1 | |
[settings] | |
lexer_filetype=CSS |
<?php | |
// This example is a port of: https://gist.github.com/diazvictor/6fe3372bce79587a3c21123a19881cb1 | |
// I create the Inventory class | |
class Inventory { | |
// What to do when the class is initialized | |
public function __construct() { | |
$this->items = array(); | |
} | |
/** |
-- I create the Inventory class | |
class Inventory | |
-- What to do when the class is initialized | |
new: => | |
@items = {} | |
--- I look at what I carry in my inventory. | |
-- @return bool true or false if there are items. | |
getItem: => | |
if #@items != 0 then |
--[[-- | |
@desc A simple clock with LGI (Lua + GTK) | |
@author Díaz Urbaneja Víctor Eduardo Diex <[email protected]> | |
@date 23.02.2021 03:57:22 -04 | |
]] | |
-- I require the LGI libraries | |
local lgi = require('lgi') | |
local Gtk = lgi.require('Gtk', '3.0') | |
local GLib = lgi.require('GLib', '2.0') |
--[[ | |
These widgets are used in the MoonZaphire project <https://github.com/diazvictor/MoonZaphire/> | |
@date 20.02.2021 04:12:56 -04 | |
]] | |
-- I require the LGI libraries | |
local lgi = require('lgi') | |
local Gtk = lgi.require('Gtk', '3.0') | |
local GLib = lgi.require('GLib', '2.0') |
/* jshint esversion: 8 */ | |
// This example is a port of: https://gist.github.com/diazvictor/6fe3372bce79587a3c21123a19881cb1 | |
// I create the Inventory class | |
class Inventory { | |
// What to do when the class is initialized | |
constructor() { | |
this.items = []; | |
} |
// This is a practice of the <https://www.sololearn.com/learning/1024/> course. | |
var currentDate = new Date(); | |
function person (name, age) { | |
this.name = name; | |
this.age = age; | |
this.yearOfBirth = currentDate.getFullYear() - this.age; | |
this.seeInfo = function () { |
local lgi = require('lgi') | |
local Gtk = lgi.require('Gtk', '3.0') | |
--- Some widgets were added to keep the initial focus on others. | |
local window = Gtk.Window { | |
title = 'TextView With Placeholder', | |
width = 400, | |
height = 400, | |
window_position = Gtk.WindowPosition.CENTER, | |
{ |
-- I require LGI | |
local lgi = require("lgi") | |
local Gtk = lgi.require("Gtk", "3.0") | |
-- I create the application | |
local app = Gtk.Application { | |
-- The application ID | |
application_id = "com.gists.github.diazvictor.ToggleDarkMode" | |
} |