Skip to content

Instantly share code, notes, and snippets.

/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/** Built-in value references. */

Ionic 4 global CSS

Ionic 4 every component implementation and their styles are self-contained, in fact, native shadow-dom is used, so trully isolation in enforced.

However, in Ionic Apps there are global CSS (linked in <head>) that needs to be included in order for an Ionic app to properly work.

Some of this "global CSS" style html, normalizes,and configures the typography (font-family, font-size) of the whole page, so apps look like native.

CSS files

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.rms.*;
public class ConversorMonedasJavaME extends MIDlet implements CommandListener {
private Display display;
private Form form;
import { Component, Element, Event, EventEmitter, Listen, Method, Prop, PropDidChange } from '@stencil/core';
/**
* GUIDE STYLE FOR STENCIL COMPONENTS
* -
*/
@Component({
tag: 'ion-something',
styleUrl: 'something.scss',
styleUrls: {
**I'm submitting a ...** (check one with "x")
[ ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use the #go-git tag in stackoverflow.
**How would the same operation be performed using git from the command line terminal?**
<!-- Describe how the same operation can be performed sucessfully using the official git implementation -->
**Current behavior:**
<!-- Describe how the bug manifests. -->
package main
import (
"fmt"
"math/rand"
"time"
)
var manos [][]int
var baraja []int
package main
import (
"fmt"
"github.com/gin-gonic/gin" // at 30ea9c06fc9cac893f10d6ad0847a510cf35aeaf
"time"
)
func main() {
r := gin.NewWithConfig(gin.Config{
@manucorporat
manucorporat / gist:10d4dd62d8992ed33479
Created July 3, 2014 13:32
This doesn't work either
package main
import "net/http"
import "time"
func main() {
http.HandleFunc("/ping", func1)
http.HandleFunc("/ping2", func2)
http.ListenAndServe(":8081", nil)
#include <stdio.h>
void printDiagonals(int rows, int columns, int matrix[][columns])
{
int iterations = rows + columns - 1;
for(int i = 0; i < iterations; ++i) {
int x = (i >= columns) ? columns-1 : i;
int y = i-x;
do {
@manucorporat
manucorporat / gist:8229938
Created January 3, 2014 00:14
C++'s dynamic_cast implemented for Objective-C
#define DYNAMIC_CAST(__CLASS__, __OBJ__) ((__CLASS__*)([__OBJ__ isKindOfClass:[__CLASS__ class]] ? __OBJ__ : nil))