How to make an application icon for macOS using
iconset&iconutil
This file contains hidden or 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:typed_data'; | |
| import 'dart:io'; | |
| import 'package:http/http.dart'; | |
| import 'package:path_provider/path_provider.dart'; | |
| downloadFile(String url, {String filename}) async { | |
| var httpClient = http.Client(); | |
| var request = new http.Request('GET', Uri.parse(url)); |
This file contains hidden or 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
| <template> | |
| <v-card class="p-64"> | |
| <v-card-title>Class Schedule | |
| <v-spacer></v-spacer> | |
| <v-btn @click="createPDF" color="primary">Download as PDF</v-btn> | |
| <v-spacer></v-spacer> | |
| <v-select :items="fillColleges" multiple clearable single-line hide-details label="Filter By College" @change="filterCollege"></v-select> | |
| <v-spacer></v-spacer> | |
| <v-select :items="fillPrograms" multiple clearable single-line hide-details label="Filter By Program" @change="filterProgram"></v-select> | |
| <v-spacer></v-spacer> |
This file contains hidden or 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
| //@author http://stackoverflow.com/questions/5712527/how-to-detect-total-available-free-disk-space-on-the-iphone-ipad-device | |
| - (uint64_t)freeDiskspace | |
| { | |
| uint64_t totalSpace = 0; | |
| uint64_t totalFreeSpace = 0; | |
| __autoreleasing NSError *error = nil; | |
| NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
| NSDictionary *dictionary = [[NSFileManager defaultManager] attributesOfFileSystemForPath:[paths lastObject] error: &error]; |
This file contains hidden or 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
| [db makeFunctionNamed:@"UTTypeConformsTo" maximumArguments:2 withBlock:^(sqlite3_context *context, int argc, sqlite3_value **argv) { | |
| if (sqlite3_value_type(argv[0]) == SQLITE_TEXT) { | |
| const unsigned char *a = sqlite3_value_text(argv[0]); | |
| const unsigned char *b = sqlite3_value_text(argv[1]); | |
| CFStringRef as = CFStringCreateWithCString(nil, (const char*)a, kCFStringEncodingUTF8); | |
| CFStringRef bs = CFStringCreateWithCString(nil, (const char*)b, kCFStringEncodingUTF8); | |
| sqlite3_result_int(context, UTTypeConformsTo(as, bs)); |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import struct | |
| import types | |
| import gzip | |
| class IfoFileException(Exception): | |
| """Exception while parsing the .ifo file. | |
| Now version error in .ifo file is the only case raising this exception. |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "compress/gzip" | |
| "io" | |
| "io/ioutil" | |
| "bytes" | |
| "log" | |
| ) |