text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```objective-c
#import <Foundation/Foundation.h>
@interface PodsDummy_Reusable_iOS : NSObject
@end
@implementation PodsDummy_Reusable_iOS
@end
``` | /content/code_sandbox/Example/Pods/Target Support Files/Reusable-iOS/Reusable-iOS-dummy.m | objective-c | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 27 |
```objective-c
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_ReusableDemo_tvOSVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_Reus... | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo tvOS/Pods-ReusableDemo tvOS-umbrella.h | objective-c | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 72 |
```objective-c
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_ReusableDemo_tvOS : NSObject
@end
@implementation PodsDummy_Pods_ReusableDemo_tvOS
@end
``` | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo tvOS/Pods-ReusableDemo tvOS-dummy.m | objective-c | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 31 |
```shell
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${U... | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo tvOS/Pods-ReusableDemo tvOS-resources.sh | shell | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 1,630 |
```shell
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signa... | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo tvOS/Pods-ReusableDemo tvOS-frameworks.sh | shell | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 2,346 |
```markdown
# Acknowledgements
This application makes use of the following third party libraries:
## Reusable
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including with... | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo tvOS/Pods-ReusableDemo tvOS-acknowledgements.markdown | markdown | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 237 |
```objective-c
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_ReusableDemo_iOS : NSObject
@end
@implementation PodsDummy_Pods_ReusableDemo_iOS
@end
``` | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo iOS/Pods-ReusableDemo iOS-dummy.m | objective-c | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 31 |
```objective-c
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_ReusableDemo_iOSVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_Reusa... | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo iOS/Pods-ReusableDemo iOS-umbrella.h | objective-c | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 72 |
```shell
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signa... | /content/code_sandbox/Example/Pods/Target Support Files/Pods-ReusableDemo iOS/Pods-ReusableDemo iOS-frameworks.sh | shell | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 2,344 |
```swift
//
// AppDelegate.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions la... | /content/code_sandbox/Example/ReusableDemo iOS/AppDelegate.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 132 |
```swift
//
// CollectionViewController.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
final class CollectionViewController: UICollectionViewController {
override func viewDidLoad() {
super.viewDidLoad()
guard let collectionView = self.collectionView else { return... | /content/code_sandbox/Example/ReusableDemo iOS/CollectionViewController.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 548 |
```swift
//
// ViewController.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
final class TableViewController: UITableViewController {
var boolValues = [false, false]
override func viewDidLoad() {
super.viewDidLoad()
tableView.register(cellType: MySimpleColorCel... | /content/code_sandbox/Example/ReusableDemo iOS/TableViewController.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 576 |
```swift
//
// MyCustomWidget.swift
// ReusableDemo
//
// Created by Olivier HALLIGON on 18/08/2016.
//
import UIKit
import Reusable
class MyCustomWidget: UIView, NibOwnerLoadable {
@IBInspectable var rectColor: UIColor? {
didSet {
self.rectView.backgroundColor = self.rectColor
}
}
@IBInspectab... | /content/code_sandbox/Example/ReusableDemo iOS/CustomViews/MyCustomWidget.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 154 |
```swift
//
// InfoDetailViewController.swift
// ReusableDemo
//
// Created by Olivier Halligon on 10/07/2016.
//
import UIKit
import Reusable
final class InfoDetailViewController: UIViewController, StoryboardSceneBased {
static let sceneStoryboard = UIStoryboard(name: "InfoViewController", bundle: nil)
@IBOu... | /content/code_sandbox/Example/ReusableDemo iOS/Storyboards/InfoDetailViewController.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 165 |
```swift
//
// InfoViewController.swift
// ReusableDemo
//
// Created by Olivier Halligon on 10/07/2016.
//
import UIKit
import Reusable
final class InfoViewController: UIViewController, StoryboardBased {
@IBOutlet private weak var infoLabel: UILabel!
private var infoText: String?
func setInfo(_ text: Strin... | /content/code_sandbox/Example/ReusableDemo iOS/Storyboards/InfoViewController.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 145 |
```swift
//
// CollectionHeaderView.swift
// ReusableDemo
//
// Created by Olivier Halligon on 20/01/2016.
//
import UIKit
import Reusable
/**
* This view is loaded from a NIB, and is the XIB file's
* root view (and not the File's Owner). => it is `NibLoadable`
*
* It is also reusable and has a `reuseIdentifie... | /content/code_sandbox/Example/ReusableDemo iOS/CollectionViewCells/CollectionHeaderView.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 221 |
```swift
//
// MyColorSquareCell.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
import Reusable
/**
* This view is reusable and has a `reuseIdentifier` (as it's a CollectionViewCell
* and it uses the Collectioniew recycling mechanism).
*
* That's why it's annotated with ... | /content/code_sandbox/Example/ReusableDemo iOS/CollectionViewCells/MyColorSquareCell.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 230 |
```swift
//
// MyStoryboardTextSquareCell.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
import Reusable
/**
* This one can be either `NibReusable` or just `Reusable` it doesn't really matter,
* as we will never have to explicitly call `collectionView.register()` to regist... | /content/code_sandbox/Example/ReusableDemo iOS/CollectionViewCells/MyStoryboardTextSquareCell.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 202 |
```swift
//
// MyXIBIndexSquaceCell.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
import Reusable
/**
* This view is loaded from a NIB, and is the XIB file's
* root view (and not the File's Owner). => it is `NibLoadable`
*
* It is also reusable and has a `reuseIdentifie... | /content/code_sandbox/Example/ReusableDemo iOS/CollectionViewCells/MyXIBIndexSquaceCell.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 230 |
```swift
//
// MyXIBSwitchCell.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
import Reusable
/**
* This view is loaded from a NIB, and is the XIB file's
* root view (and not the File's Owner). => it is `NibLoadable`
*
* It is also reusable and has a `reuseIdentifier` (a... | /content/code_sandbox/Example/ReusableDemo iOS/TableViewCells/MyXIBInfoCell.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 345 |
```swift
//
// MySimpleColorCell.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
import Reusable
/**
* This view is reusable and has a `reuseIdentifier` (as it's a TableViewCell
* and it uses the TableView recycling mechanism).
*
* That's why it's annotated with the `Reus... | /content/code_sandbox/Example/ReusableDemo iOS/TableViewCells/MySimpleColorCell.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 228 |
```swift
//
// MyXIBTextCell.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
import Reusable
/**
* This view is loaded from a NIB, and is the XIB file's
* root view (and not the File's Owner). => it is `NibLoadable`
*
* It is also reusable and has a `reuseIdentifier` (as ... | /content/code_sandbox/Example/ReusableDemo iOS/TableViewCells/MyXIBTextCell.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 199 |
```swift
//
// MyStoryBoardIndexPathCell.swift
// ReusableDemo
//
// Created by Olivier Halligon on 19/01/2016.
//
import UIKit
import Reusable
// This one can be either `NibReusable` or just `Reusable` it doesn't matter actually
// As we will never have to explicitly call `tableView.register()` to register it:
//... | /content/code_sandbox/Example/ReusableDemo iOS/TableViewCells/MyStoryBoardIndexPathCell.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 163 |
```swift
//
// MyHeaderTableViex.swift
// ReusableDemo
//
// Created by Allan Vialatte on 29/05/16.
//
import UIKit
import Reusable
/**
* This view is loaded from a NIB, and is used as the File's Owner
* of the XIB file (and not set as the XIB's root view)
*
* That's why it's annotated with the `NibOwnerLoadab... | /content/code_sandbox/Example/ReusableDemo iOS/TableViewCells/MyHeaderTableView.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 201 |
```swift
//
// AppDelegate.swift
// ReusableDemo tvOS
//
// Created by Olivier HALLIGON on 16/02/2017.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptio... | /content/code_sandbox/Example/ReusableDemo tvOS/AppDelegate.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 136 |
```swift
//
// MyCustomWidget.swift
// ReusableDemo
//
// Created by Olivier HALLIGON on 16/02/2017.
//
import UIKit
import Reusable
class MyCustomWidget: UIView, NibOwnerLoadable {
@IBInspectable var rectColor: UIColor? {
didSet {
self.rectView.backgroundColor = self.rectColor
}
}
@IBInspectab... | /content/code_sandbox/Example/ReusableDemo tvOS/MyCustomWidget.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 154 |
```swift
/*********************************************
*
*
*
*********************************************/
#if canImport(UIKit)
import UIKit
// MARK: Reusable support for UITableView
public extension UITableView {
/**
Register a NIB-Based `UITableViewCell` subclass (conforming to `Reusable` & `NibLoadable... | /content/code_sandbox/Sources/View/UITableView+Reusable.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 961 |
```swift
/*********************************************
*
*
*
*********************************************/
#if canImport(UIKit)
import UIKit
// MARK: Protocol definition
/// Make your `UITableViewCell` and `UICollectionViewCell` subclasses
/// conform to this protocol when they are *not* NIB-based but only cod... | /content/code_sandbox/Sources/View/Reusable.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 205 |
```swift
/*********************************************
*
*
*
*********************************************/
#if canImport(UIKit)
import UIKit
// MARK: Reusable support for UICollectionView
public extension UICollectionView {
/**
Register a NIB-Based `UICollectionViewCell` subclass (conforming to `Reusable`... | /content/code_sandbox/Sources/View/UICollectionView+Reusable.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 1,142 |
```swift
/*********************************************
*
*
*
*********************************************/
#if canImport(UIKit)
import UIKit
// MARK: Protocol Definition
///Make your UIView subclasses conform to this protocol when:
/// * they *are* NIB-based, and
/// * this class is used as the XIB's root vi... | /content/code_sandbox/Sources/View/NibLoadable.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 313 |
```swift
/*********************************************
*
*
*
*********************************************/
#if canImport(UIKit)
import UIKit
// MARK: Protocol Definition
///Make your UIView subclasses conform to this protocol when:
/// * they *are* NIB-based, and
/// * this class is used as the XIB's File's ... | /content/code_sandbox/Sources/View/NibOwnerLoadable.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 415 |
```swift
/*********************************************
*
*
*
*********************************************/
#if canImport(UIKit)
import UIKit
// MARK: Protocol Definition
///Make your UIViewController subclasses conform to this protocol when:
/// * they *are* Storyboard-based, and
/// * this ViewController is... | /content/code_sandbox/Sources/Storyboard/StoryboardSceneBased.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 358 |
```swift
/*********************************************
*
*
*
*********************************************/
#if canImport(UIKit)
import UIKit
// MARK: Protocol Definition
///Make your UIViewController subclasses conform to this protocol when:
/// * they *are* Storyboard-based, and
/// * this ViewController is... | /content/code_sandbox/Sources/Storyboard/StoryboardBased.swift | swift | 2016-01-19T19:49:55 | 2024-08-10T21:10:40 | Reusable | AliSoftware/Reusable | 2,999 | 286 |
```yaml
version: 2.0.1{build}
branches:
only:
- master
image:
- Visual Studio 2015
- Visual Studio 2017
configuration:
- Release
build:
parallel: true
project: MSVC\MyTinySTL_VS2015.sln
test_script:
- cmd: cd .\MSVC\x64\Release\
- cmd: MyTinySTL.exe
``` | /content/code_sandbox/appveyor.yml | yaml | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 98 |
```objective-c
#ifndef MYTINYSTL_HEAP_ALGO_H_
#define MYTINYSTL_HEAP_ALGO_H_
// heap : push_heap, pop_heap, sort_heap, make_heap
#include "iterator.h"
namespace mystl
{
/*****************************************************************************************/
// push_heap
// heap heap
/************************... | /content/code_sandbox/MyTinySTL/heap_algo.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,667 |
```objective-c
#ifndef MYTINYSTL_UTIL_H_
#define MYTINYSTL_UTIL_H_
// move, forward, swap pair
#include <cstddef>
#include "type_traits.h"
namespace mystl
{
// move
template <class T>
typename std::remove_reference<T>::type&& move(T&& arg) noexcept
{
return static_cast<typename std::remove_reference<T>::typ... | /content/code_sandbox/MyTinySTL/util.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 2,278 |
```objective-c
#ifndef MYTINYSTL_MAP_H_
#define MYTINYSTL_MAP_H_
// map multimap
// map :
// multimap :
// notes:
//
//
// mystl::map<Key, T> / mystl::multimap<Key, T>
// * emplace
// * emplace_hint
// * insert
#include "rb_tree.h"
namespace mystl
{
// map
// mystl::less
template <class Key, cla... | /content/code_sandbox/MyTinySTL/map.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 3,978 |
```objective-c
#ifndef MYTINYSTL_UNORDERED_MAP_H_
#define MYTINYSTL_UNORDERED_MAP_H_
// unordered_map unordered_multimap
// map multimap hashtable
// notes:
//
//
// mystl::unordered_map<Key, T> / mystl::unordered_multimap<Key, T>
// * emplace
// * emplace_hint
// * insert
#include "hashtable.h"
names... | /content/code_sandbox/MyTinySTL/unordered_map.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 4,293 |
```objective-c
#ifndef MYTINYSTL_BASIC_STRING_H_
#define MYTINYSTL_BASIC_STRING_H_
// basic_string
//
#include <iostream>
#include "iterator.h"
#include "memory.h"
#include "functional.h"
#include "exceptdef.h"
namespace mystl
{
// char_traits
template <class CharType>
struct char_traits
{
typedef CharType ch... | /content/code_sandbox/MyTinySTL/basic_string.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 15,400 |
```objective-c
#ifndef MYTINYSTL_ALLOC_H_
#define MYTINYSTL_ALLOC_H_
// alloc
//
// v2.0.0
//
//
//
// issuefree_list
//
// C++
//
#include <new>
#include <cstddef>
#include <cstdio>
namespace mystl
{
// : FreeList
// <=4K
union FreeList
{
union FreeList* next; //
char data[1]; //
};
//
en... | /content/code_sandbox/MyTinySTL/alloc.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,777 |
```objective-c
#ifndef MYTINYSTL_MEMORY_H_
#define MYTINYSTL_MEMORY_H_
//
// auto_ptr
#include <cstddef>
#include <cstdlib>
#include <climits>
#include "algobase.h"
#include "allocator.h"
#include "construct.h"
#include "uninitialized.h"
namespace mystl
{
//
template <class Tp>
constexpr Tp* address_of(Tp& valu... | /content/code_sandbox/MyTinySTL/memory.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,106 |
```objective-c
#ifndef MYTINYSTL_VECTOR_H_
#define MYTINYSTL_VECTOR_H_
// vector
// vector :
// notes:
//
//
// mystl::vecotr<T>
// * emplace
// * emplace_back
// * push_back
// std::is_nothrow_move_assignable<T>::value == true
// * reserve
// * resize
// * insert
#include <initializer_list>
#incl... | /content/code_sandbox/MyTinySTL/vector.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 5,967 |
```objective-c
#ifndef MYTINYSTL_UNINITIALIZED_H_
#define MYTINYSTL_UNINITIALIZED_H_
//
#include "algobase.h"
#include "construct.h"
#include "iterator.h"
#include "type_traits.h"
#include "util.h"
namespace mystl
{
/*****************************************************************************************/
// unin... | /content/code_sandbox/MyTinySTL/uninitialized.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,584 |
```objective-c
#ifndef MYTINYSTL_ALLOCATOR_H_
#define MYTINYSTL_ALLOCATOR_H_
// allocator
#include "construct.h"
#include "util.h"
namespace mystl
{
// allocator
//
template <class T>
class allocator
{
public:
typedef T value_type;
typedef T* pointer;
typedef const T* const_pointer;... | /content/code_sandbox/MyTinySTL/allocator.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 567 |
```objective-c
#ifndef MYTINYSTL_STACK_H_
#define MYTINYSTL_STACK_H_
// stack
// stack :
#include "deque.h"
namespace mystl
{
// stack
// mystl::deque
template <class T, class Container = mystl::deque<T>>
class stack
{
public:
typedef Container container_type;
//
typedef ty... | /content/code_sandbox/MyTinySTL/stack.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,029 |
```objective-c
#ifndef MYTINYSTL_EXCEPTDEF_H_
#define MYTINYSTL_EXCEPTDEF_H_
#include <stdexcept>
#include <cassert>
namespace mystl
{
#define MYSTL_DEBUG(expr) \
assert(expr)
#define THROW_LENGTH_ERROR_IF(expr, what) \
if ((expr)) throw std::length_error(what)
#define THROW_OUT_OF_RANGE_IF(expr, what) \
... | /content/code_sandbox/MyTinySTL/exceptdef.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 141 |
```objective-c
#ifndef MYTINYSTL_ITERATOR_H_
#define MYTINYSTL_ITERATOR_H_
//
#include <cstddef>
#include "type_traits.h"
namespace mystl
{
//
struct input_iterator_tag {};
struct output_iterator_tag {};
struct forward_iterator_tag : public input_iterator_tag {};
struct bidirectional_iterator_tag : public forwar... | /content/code_sandbox/MyTinySTL/iterator.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,931 |
```objective-c
#ifndef MYTINYSTL_TYPE_TRAITS_H_
#define MYTINYSTL_TYPE_TRAITS_H_
//
// use standard header for type_traits
#include <type_traits>
namespace mystl
{
// helper struct
template <class T, T v>
struct m_integral_constant
{
static constexpr T value = v;
};
template <bool b>
using m_bool_constant = m_... | /content/code_sandbox/MyTinySTL/type_traits.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 213 |
```objective-c
#ifndef MYTINYSTL_RB_TREE_H_
#define MYTINYSTL_RB_TREE_H_
// rb_tree
// rb_tree :
#include <initializer_list>
#include <cassert>
#include "functional.h"
#include "iterator.h"
#include "memory.h"
#include "type_traits.h"
#include "exceptdef.h"
namespace mystl
{
// rb tree
typedef bool rb_tree_co... | /content/code_sandbox/MyTinySTL/rb_tree.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 11,266 |
```objective-c
#ifndef MYTINYSTL_NUMERIC_H_
#define MYTINYSTL_NUMERIC_H_
// mystl
#include "iterator.h"
namespace mystl
{
/*****************************************************************************************/
// accumulate
// 1 init
// 2 init
/***************************************************************... | /content/code_sandbox/MyTinySTL/numeric.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 904 |
```objective-c
#ifndef MYTINYSTL_ASTRING_H_
#define MYTINYSTL_ASTRING_H_
// string, wstring, u16string, u32string
#include "basic_string.h"
namespace mystl
{
using string = mystl::basic_string<char>;
using wstring = mystl::basic_string<wchar_t>;
using u16string = mystl::basic_string<char16_t>;
using u32strin... | /content/code_sandbox/MyTinySTL/astring.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 113 |
```objective-c
#ifndef MYTINYSTL_ALGO_H_
#define MYTINYSTL_ALGO_H_
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4244)
#endif
// mystl
#include <cstddef>
#include <ctime>
#include "algobase.h"
#include "memory.h"
#include "heap_algo.h"
#include "functional.h"
namespace mystl
{
/***************... | /content/code_sandbox/MyTinySTL/algo.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 17,380 |
```objective-c
#ifndef MYTINYSTL_ALGOBASE_H_
#define MYTINYSTL_ALGOBASE_H_
// mystl
#include <cstring>
#include "iterator.h"
#include "util.h"
namespace mystl
{
#ifdef max
#pragma message("#undefing marco max")
#undef max
#endif // max
#ifdef min
#pragma message("#undefing marco min")
#undef min
#endif // min
... | /content/code_sandbox/MyTinySTL/algobase.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 3,570 |
```objective-c
#ifndef MYTINYSTL_LIST_H_
#define MYTINYSTL_LIST_H_
// list
// list :
// notes:
//
//
// mystl::list<T>
// * emplace_front
// * emplace_back
// * emplace
// * push_front
// * push_back
// * insert
#include <initializer_list>
#include "iterator.h"
#include "memory.h"
#include "function... | /content/code_sandbox/MyTinySTL/list.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 7,263 |
```objective-c
#ifndef MYTINYSTL_UNORDERED_SET_H_
#define MYTINYSTL_UNORDERED_SET_H_
// unordered_set unordered_multiset
// set multiset hashtable
// notes:
//
//
// mystl::unordered_set<Key> / mystl::unordered_multiset<Key>
// * emplace
// * emplace_hint
// * insert
#include "hashtable.h"
namespace m... | /content/code_sandbox/MyTinySTL/unordered_set.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 3,984 |
```objective-c
#ifndef MYTINYSTL_SET_H_
#define MYTINYSTL_SET_H_
// set multiset
// set :
// multiset :
// notes:
//
//
// mystl::set<Key> / mystl::multiset<Key>
// * emplace
// * emplace_hint
// * insert
#include "rb_tree.h"
namespace mystl
{
// set
// mystl::less
template <class Key, class Co... | /content/code_sandbox/MyTinySTL/set.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 3,380 |
```objective-c
#ifndef MYTINYSTL_SET_ALGO_H_
#define MYTINYSTL_SET_ALGO_H_
// set : union, intersection, difference, symmetric_difference
//
#include "algobase.h"
#include "iterator.h"
namespace mystl
{
/*****************************************************************************************/
// set_union
// S1... | /content/code_sandbox/MyTinySTL/set_algo.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,534 |
```objective-c
#ifndef MYTINYSTL_ALGORITHM_H_
#define MYTINYSTL_ALGORITHM_H_
// mystl heap set
#include "algobase.h"
#include "algo.h"
#include "set_algo.h"
#include "heap_algo.h"
#include "numeric.h"
namespace mystl
{
} // namespace mystl
#endif // !MYTINYSTL_ALGORITHM_H_
``` | /content/code_sandbox/MyTinySTL/algorithm.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 80 |
```objective-c
#ifndef MYTINYSTL_FUNCTIONAL_H_
#define MYTINYSTL_FUNCTIONAL_H_
// mystl
#include <cstddef>
namespace mystl
{
//
template <class Arg, class Result>
struct unarg_function
{
typedef Arg argument_type;
typedef Result result_type;
};
//
template <class Arg1, class Arg2, class Result>
st... | /content/code_sandbox/MyTinySTL/functional.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,667 |
```objective-c
#ifndef MYTINYSTL_QUEUE_H_
#define MYTINYSTL_QUEUE_H_
// queue priority_queue
// queue :
// priority_queue :
#include "deque.h"
#include "vector.h"
#include "functional.h"
#include "heap_algo.h"
namespace mystl
{
// queue
// mystl::deque
template <class T, class Container = mystl::deq... | /content/code_sandbox/MyTinySTL/queue.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 2,274 |
```objective-c
#ifndef MYTINYSTL_HASHTABLE_H_
#define MYTINYSTL_HASHTABLE_H_
// hashtable
// hashtable :
#include <initializer_list>
#include "algo.h"
#include "functional.h"
#include "memory.h"
#include "vector.h"
#include "util.h"
#include "exceptdef.h"
namespace mystl
{
// hashtable
template <class T>
struct... | /content/code_sandbox/MyTinySTL/hashtable.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 11,625 |
```objective-c
#ifndef MYTINYSTL_CONSTRUCT_H_
#define MYTINYSTL_CONSTRUCT_H_
// constructdestroy
// construct :
// destroy :
#include <new>
#include "type_traits.h"
#include "iterator.h"
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4100) // unused parameter
#endif // _MSC_VER
namespace mys... | /content/code_sandbox/MyTinySTL/construct.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 425 |
```objective-c
#ifndef MYTINYSTL_DEQUE_H_
#define MYTINYSTL_DEQUE_H_
// deque
// deque:
// notes:
//
//
// mystl::deque<T>
// * emplace_front
// * emplace_back
// * emplace
// * push_front
// * push_back
// * insert
#include <initializer_list>
#include "iterator.h"
#include "memory.h"
#include "util... | /content/code_sandbox/MyTinySTL/deque.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 9,102 |
```objective-c
#ifndef MYTINYSTL_VECTOR_TEST_H_
#define MYTINYSTL_VECTOR_TEST_H_
// vector test : vector push_back
#include <vector>
#include "../MyTinySTL/vector.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace vector_test
{
void vector_test()
{
std::cout << "[===============================... | /content/code_sandbox/Test/vector_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,090 |
```objective-c
#ifndef MYTINYSTL_QUEUE_TEST_H_
#define MYTINYSTL_QUEUE_TEST_H_
// queue test : queue, priority_queue push
#include <queue>
#include "../MyTinySTL/queue.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace queue_test
{
void queue_print(mystl::queue<int> q)
{
while (!q.empty())
{
... | /content/code_sandbox/Test/queue_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,723 |
```objective-c
#ifndef MYTINYSTL_STACK_TEST_H_
#define MYTINYSTL_STACK_TEST_H_
// stack test : stack push
#include <stack>
#include "../MyTinySTL/stack.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace stack_test
{
void stack_print(mystl::stack<int> s)
{
while (!s.empty())
{
std::cout <... | /content/code_sandbox/Test/stack_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 881 |
```objective-c
#ifndef MYTINYSTL_MAP_TEST_H_
#define MYTINYSTL_MAP_TEST_H_
// map test : map, multimap insert
#include <map>
#include "../MyTinySTL/map.h"
#include "../MyTinySTL/vector.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace map_test
{
// pair
#define PAIR mystl::pair<int, int>
//... | /content/code_sandbox/Test/map_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 2,235 |
```objective-c
#ifndef MYTINYSTL_UNORDERED_SET_TEST_H_
#define MYTINYSTL_UNORDERED_SET_TEST_H_
// unordered_set test : unordered_set, unordered_multiset insert
#include <unordered_set>
#include "../MyTinySTL/unordered_set.h"
#include "set_test.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace uno... | /content/code_sandbox/Test/unordered_set_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 2,200 |
```objective-c
#ifndef MYTINYSTL_STRING_TEST_H_
#define MYTINYSTL_STRING_TEST_H_
// string test : string insert
#include <string>
#include "../MyTinySTL/astring.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace string_test
{
void string_test()
{
std::cout << "[=================================... | /content/code_sandbox/Test/string_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 2,231 |
```objective-c
#ifndef MYTINYSTL_LIST_TEST_H_
#define MYTINYSTL_LIST_TEST_H_
// list test : list insert, sort
#include <list>
#include "../MyTinySTL/list.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace list_test
{
//
bool is_odd(int x) { return x & 1; }
void list_test()
{
std::cout << "[==... | /content/code_sandbox/Test/list_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,291 |
```objective-c
#ifndef MYTINYSTL_ALGORITHM_TEST_H_
#define MYTINYSTL_ALGORITHM_TEST_H_
// : mystl 81
#include <algorithm>
#include <functional>
#include <numeric>
#include "../MyTinySTL/algorithm.h"
#include "../MyTinySTL/vector.h"
#include "test.h"
namespace mystl
{
namespace test
{
#ifdef max
#pragma message(... | /content/code_sandbox/Test/algorithm_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 15,482 |
```objective-c
#ifndef MYTINYSTL_SET_TEST_H_
#define MYTINYSTL_SET_TEST_H_
// set test : set, multiset insert
#include <set>
#include "../MyTinySTL/set.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace set_test
{
void set_test()
{
std::cout << "[================================================... | /content/code_sandbox/Test/set_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,779 |
```c++
#ifdef _MSC_VER
#define _SCL_SECURE_NO_WARNINGS
#endif
#if defined(_MSC_VER) && defined(_DEBUG)
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#endif // check memory leaks
#include "algorithm_performance_test.h"
#include "algorithm_test.h"
#include "vector_test.h"
#include "list_test.h"
#in... | /content/code_sandbox/Test/test.cpp | c++ | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 305 |
```objective-c
#ifndef MYTINYSTL_UNORDERED_MAP_TEST_H_
#define MYTINYSTL_UNORDERED_MAP_TEST_H_
// unordered_map test : unordered_map, unordered_multimap insert
#include <unordered_map>
#include "../MyTinySTL/unordered_map.h"
#include "map_test.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace uno... | /content/code_sandbox/Test/unordered_map_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 2,555 |
```objective-c
#ifndef MYTINYSTL_DEQUE_TEST_H_
#define MYTINYSTL_DEQUE_TEST_H_
// deque test : deque push_front/push_back
#include <deque>
#include "../MyTinySTL/deque.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace deque_test
{
void deque_test()
{
std::cout << "[============================... | /content/code_sandbox/Test/deque_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 1,106 |
```objective-c
#ifndef MYTINYSTL_TEST_H_
#define MYTINYSTL_TEST_H_
// TestCase UnitTest
#include <ctime>
#include <cstring>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <vector>
#include "Lib/redbud/io/color.h"
namespace mystl
{
namespace test
{
#define g... | /content/code_sandbox/Test/test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 6,931 |
```objective-c
#ifndef MYTINYSTL_ALGORITHM_PERFORMANCE_TEST_H_
#define MYTINYSTL_ALGORITHM_PERFORMANCE_TEST_H_
// sort, binary_search
#include <algorithm>
#include "../MyTinySTL/algorithm.h"
#include "test.h"
namespace mystl
{
namespace test
{
namespace algorithm_performance_test
{
//
#define FUN_TEST1(mode, fu... | /content/code_sandbox/Test/algorithm_performance_test.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 970 |
```objective-c
// ============================================================================
//
// Header File : redbud/platform.h
//
// This file contains some preprocessing macros related to the platform.
// ============================================================================
#ifndef ALINSHANS_REDBUD_PLAT... | /content/code_sandbox/Test/Lib/redbud/platform.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 722 |
```objective-c
// ============================================================================
//
// Header File : redbud/io/color.h
//
// This file is used to control font format and color in the terminal, which
// refers to a project on github, see path_to_url .
// ==================================================... | /content/code_sandbox/Test/Lib/redbud/io/color.h | objective-c | 2016-08-05T04:08:41 | 2024-08-16T17:50:46 | MyTinySTL | Alinshans/MyTinySTL | 11,147 | 2,281 |
```javascript
const request = require('request');
const os = require('os');
const fs = require('fs');
const unzip = require('unzip2');
const platform = os.platform();
const DIST = './bin';
const urls = {
darwin: 'path_to_url
win32: 'path_to_url
linux: 'path_to_url
};
const files = {
darwin: ['ffmpeg', 'fpcalc'... | /content/code_sandbox/install.js | javascript | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 312 |
```yaml
branches:
only:
- master
image: Visual Studio 2017
platform:
- x64
environment:
CYG_ROOT: C:\cygwin64
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 11 x64
build_script:
- npm install -g @angular/cli@1.0.0
- cd app/
- npm install
- '%CYG_ROOT%/bin... | /content/code_sandbox/appveyor.yml | yaml | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 146 |
```shell
#!/bin/sh
cd app
ng build --base-href './'
cd ..
electron .
``` | /content/code_sandbox/launch.sh | shell | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 20 |
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>AllToMP3 - Feedback</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>AllToMP3 <small>Feedback</small></h1>
<form method="post" id="fo... | /content/code_sandbox/feedback/index.html | html | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 249 |
```javascript
var electron = require('electron');
var fform = document.getElementById('form');
var femail = document.getElementById('email');
var fmessage = document.getElementById('message');
var infos;
if (localStorage.getItem('email')) {
femail.value = localStorage.getItem('email');
}
fform.onsubmit = function(e... | /content/code_sandbox/feedback/feedback.js | javascript | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 350 |
```css
@import url('path_to_url
html {
margin: 0;
padding: 0;
font-family: 'Source Sans Pro';
}
body {
padding: 20px;
}
label {
display: block;
}
.message {
width: 100%;
height: 200px;
margin-bottom: 20px;
}
.email {
margin-bottom: 20px;
}
input {
width: 100%;
font-family: 'Source Sans Pro';
}
tex... | /content/code_sandbox/feedback/style.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 182 |
```javascript
// Karma configuration file, see link for more information
// path_to_url
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'angular-cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-remap-ist... | /content/code_sandbox/app/karma.conf.js | javascript | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 272 |
```javascript
// Protractor configuration file, see link for more information
// path_to_url
/*global jasmine */
var SpecReporter = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
},
directC... | /content/code_sandbox/app/protractor.conf.js | javascript | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 188 |
```javascript
const { app, BrowserWindow, ipcMain, Menu } = require('electron');
const autoUpdater = require("electron-updater").autoUpdater;
const path = require('path');
const url = require('url');
const nedb = require('nedb-promise');
const util = require('util');
const os = require('os');
const ncp = require('ncp')... | /content/code_sandbox/main.js | javascript | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 4,295 |
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>AllToMP3</title>
<base href="/">
<script type="text/javascript">
var electron = require('electron');
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<app-root>
<div style="text-align: c... | /content/code_sandbox/app/src/index.html | html | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 114 |
```shell
rm -rf dist/
mkdir dist
ng build --aot --output-path dist/en --base-href './'
ng build --aot --output-path dist/fr --locale fr --i18n-format xlf --i18n-file src/locale/messages.fr.xlf --base-href './'
ng build --aot --output-path dist/fi --locale fi --i18n-format xlf --i18n-file src/locale/messages.fi.xlf --ba... | /content/code_sandbox/app/build.sh | shell | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 552 |
```css
/* You can add global styles to this file, and also import other style files */
@import '../node_modules/@typopro/web-source-sans-pro/TypoPRO-SourceSansPro.css';
@import './assets/css/entypo.css';
html {
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
font-family: 'TypoPRO Source Sans Pro';
b... | /content/code_sandbox/app/src/styles.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 502 |
```css
@font-face {
font-family: 'entypo';
src: url('../font/entypo.eot?34335183');
src: url('../font/entypo.eot?34335183#iefix') format('embedded-opentype'),
url('../font/entypo.woff2?34335183') format('woff2'),
url('../font/entypo.woff?34335183') format('woff'),
url('../font/entypo.ttf?3433... | /content/code_sandbox/app/src/assets/css/entypo.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 1,787 |
```css
[class^="icon-"], [class*=" icon-"] {
font-family: 'entypo';
font-style: normal;
font-weight: normal;
/* fix buttons height */
line-height: 1em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
}
.icon-beamed-note { *zoom: expression( this.runtimeStyle['zoom'... | /content/code_sandbox/app/src/assets/css/entypo-ie7.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 2,582 |
```css
.icon-beamed-note { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-bug { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-ccw { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); ... | /content/code_sandbox/app/src/assets/css/entypo-ie7-codes.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 2,510 |
```css
/*
Animation example, for spinners
*/
.animate-spin {
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
-webkit-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
display: inline-block;
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg... | /content/code_sandbox/app/src/assets/css/animation.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 555 |
```css
.icon-beamed-note:before { content: '\e800'; } /* '' */
.icon-bug:before { content: '\e801'; } /* '' */
.icon-ccw:before { content: '\e802'; } /* '' */
.icon-circle:before { content: '\e803'; } /* '' */
.icon-circular-graph:before { content: '\e804'; } /* '' */
.icon-clapperboard:before { content: '\e805'; } /*... | /content/code_sandbox/app/src/assets/css/entypo-codes.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 1,280 |
```html
<div class="body">
<div class="header">
<div class="header-title">AllToMP3</div>
<div class="header-logos">
<i class="icon-youtube"></i>
<i class="icon-soundcloud"></i>
<i class="icon-spotify"></i>
<i class="icon-deezer"></i>
</div>
<div class="header-contact">
<d... | /content/code_sandbox/app/src/app/app.component.html | html | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 768 |
```css
.body {
max-width: 550px;
margin: 0 auto;
}
.header {
display: flex;
flex-direction: row;
margin: 20px;
justify-content: space-between;
align-items: center;
}
.header-title {
color: #ff8a65;
font-weight: 400;
font-size: 24px;
}
.header-logos {
color: #ff8a65;
text-align: center;
}
.heade... | /content/code_sandbox/app/src/app/app.component.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 437 |
```css
@font-face {
font-family: 'entypo';
src: url('../font/entypo.eot?72521212');
src: url('../font/entypo.eot?72521212#iefix') format('embedded-opentype'),
url('../font/entypo.svg?72521212#entypo') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'entypo';
src:... | /content/code_sandbox/app/src/assets/css/entypo-embedded.css | css | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 17,727 |
```html
<div class="request-div" *ngIf="!request.aborted" (click)="clickRequest()" [ngClass]="{'clickable': clickable()}">
<div class="request--icon" [ngStyle]="{'background-image': 'url(' + request.cover + ')'}">
<div class="request--progress--div" (mouseenter)="coverMouseEnter()" (mouseleave)="coverMouseLeave()... | /content/code_sandbox/app/src/app/request/request.component.html | html | 2016-07-29T12:27:38 | 2024-08-14T13:08:01 | alltomp3-app | AllToMP3/alltomp3-app | 1,313 | 689 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.