This file contains 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 getDay(day) { | |
let searchDay = -1 | |
switch (day.toLowerCase()) { | |
case 'sunday': | |
searchDay = 0 | |
break; | |
case 'monday': | |
searchDay = 1 | |
break; | |
case 'tuesday': |
This file contains 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
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'dart:convert'; | |
import 'package:http/http.dart' as http; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
import 'service_entry.dart'; | |
class HomePage extends StatefulWidget { | |
static String tag = 'home-page'; |
This file contains 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
enum AppColor:String { | |
case AppClearColor | |
case AppGrayColor | |
case AppWhiteColor | |
case PrimaryColor | |
case PrimaryColor1 | |
case PrimaryColor2 | |
case PrimaryColor3 | |
case SecondaryColor1 | |
case ThemeColor |
This file contains 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
pod 'pop', '~> 1.0' | |
pod 'EZSwiftExtensions' |
This file contains 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
// ==UserScript== | |
// @name relaod | |
// @namespace reload | |
// @description relaod | |
// @include http://10.201.1.14:8094/* | |
// @version 1 | |
// @grant none | |
// @noframes | |
// ==/UserScript== |
This file contains 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
// Create a xib with TableView | |
// Create a xib with TableViewCell | |
// Connect the TableViewCell xib to a class | |
//http://stackoverflow.com/questions/24056183/uitableview-using-swift | |
//http://stackoverflow.com/questions/26081287/required-initializer-initcoder-must-be-provided-by-subclass-of-uitablevi?rq=1 | |
//swift file of TableViewCell | |
class TapCell1: UITableViewCell { |
This file contains 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
// | |
// CustomPageRenderer.swift | |
// (c) 2016 Vineeth Vijayan, licensed under the MIT License | |
// Inspired by https://gist.github.com/mattt/bd5e48ae461848cdbd1e#file-recipepagerenderer-swift | |
import UIKit | |
import AVFoundation | |
/// Units for printing content insets | |
let POINTS_PER_INCH: CGFloat = 72 |