Skip to content

Instantly share code, notes, and snippets.

var tabris = require('tabris')
exports.create = function() {
return new tabris.Page({
title: "I told you so!",
topLevel: true
});
};
new tabris.ImageView({
input[type=text], textarea {
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
-ms-transition: all 0.30s ease-in-out;
-o-transition: all 0.30s ease-in-out;
outline: none;
padding: 3px 0px 3px 3px;
margin: 5px 1px 3px 0px;
border: 1px solid #DDDDDD;
}
{
text-shadow: 1px 1px 1px #888, 0 0 10px grey, 0 0 5px grey;
}
version: '3'
services:
db:
image: mariadb
# image: mysql
restart: always
volumes:
- db:/var/lib/mysql
environment:
@mikeymop
mikeymop / grub
Created February 10, 2018 07:56
Plymouthd fix Fedora 25+
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
#added for plymouth
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_VIDEO_BACKEND="efi_gop" ## OR "efi_uga"
@mikeymop
mikeymop / dmesg.log
Last active March 21, 2018 08:11
Logs in search of USB-DP err
[19994.197484] usbpd usbpd0: Type-C Sink (powered) connected
[19994.199499] PMI: smblib_vconn_oc_work: over-current detected on VCONN
[19994.206810] healthd: battery l=92 v=4182 t=22.0 h=2 st=3 c=425 chg=
[19994.213880] healthd: battery l=92 v=4182 t=22.0 h=2 st=3 c=425 chg=
[19994.383368] healthd: battery l=92 v=4182 t=22.0 h=2 st=3 c=425 chg=
[19994.444532] msm-dwc3 a800000.ssusb: DWC3 exited from low power mode
[19994.444865] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[19994.444876] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[19994.446792] xhci-hcd xhci-hcd.0.auto: hcc params 0x0230fe65 hci version 0x110 quirks 0x00010010
[19994.446811] xhci-hcd xhci-hcd.0.auto: irq 735, io mem 0x0a800000
#include <map>
#include <string.h>
#include <cctype>
#include "tokens.h"
//track all tokentypes from tokens.h
static std::map<TokenType, std::string> TokenMap {
{PRINT, "PRINT"},
{IF, "IF"},
{THEN, "THEN"},
#include <map>
#include <string.h>
#include <cctype>
#include "tokens.h"
//track all tokentypes from tokens.h
static std::map<TokenType, std::string> TokenMap {
{PRINT, "PRINT"},
{IF, "IF"},
{THEN, "THEN"},
@mikeymop
mikeymop / lex.cpp
Last active November 14, 2018 00:03
/*
* lex.cpp
*
* CS280 - Fall 2018
*/
#include <cctype>
#include <map>
using std::map;
#include <stdio.h>
/*
Create Codebreaker.
./codebreaker [4 digit code] eg. ./codebreaker BGGY
Player 2 has 12 tries to guess the code.
enum Color {
B = "Blue",