repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
robak86/neography | lib/cypher/abstract/IQueryPart.ts | 183 | import {QueryContext} from "../common/QueryContext";
import {IBoundQueryPart} from "./IBoundQueryPart";
export interface IQueryPart {
toCypher(ctx:QueryContext):IBoundQueryPart
} | mit |
RaymondKwong/raymond_projects | services/jwtauth/src/main/java/com/raymond/entrypoint/GlobalExceptionHandler.java | 1163 | package com.raymond.entrypoint;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.AuthenticationException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.Re... | mit |
serverworks/dashdog | spec/dashdog_spec.rb | 127 | require 'spec_helper'
describe Dashdog do
it 'has a version number' do
expect(Dashdog::VERSION).not_to be nil
end
end
| mit |
mattsoulanille/compSci | GiftList/GiftEntry.java | 1290 |
/**
* The GiftEntry class describes a gift in terms of three values:
* the gift name, the gift receipient, and whether the gift
* has been bought yet.
*
* @author Richard White
* @version 2013-12-05
*/
public class GiftEntry
{
/**
* Constructor for known recipient with blank Gift
* @param reci... | mit |
EduardoMRB/webflavia-php-sdk-v1 | src/Webflavia/Entity/AbstractNavigable.php | 2220 | <?php
/**
* Copyright (c) 2014 Webflavia
*
* 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 without limitation the rights to
* use, copy, modify, merge, pu... | mit |
ONSdigital/pattern-library | docs/components-data-tables-data-table-with-swipe-control.html | 74520 | <!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9 ie8"><![endif]-->
<!--[if IE 9]><html class="no-js ie9"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"><!--<![endif]-->... | mit |
chrisharrington/traque | app/models/base.js | 177 | module.exports = function(params) {
params = params || {};
_.extend(this, params);
this.validate = params.validate || function() {
return true;
};
} | mit |
giggals/Software-University | Arrays - Lab/Join Arrays/Program.cs | 382 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Join_Arrays
{
class Program
{
static void Main(string[] args)
{
int[] nums = { 100, 200, 300 };
foreach (var x in nums)
{
... | mit |
DelBianco/TesteSymfony | app/cache/dev/assetic/config/8/8933b2c685bce28af52752733fbcafbf.php | 70 | <?php
// EventFormBundle:Categoria:index.html.twig
return array (
);
| mit |
fzheng/codejam | ccup/ch1/IsUnique.java | 1234 | public class IsUnique {
public static boolean isUnique1(String input) {
int checker = 0;
int n = input.length();
if (n <= 1) return true;
for (int i = 0; i < n; i++) {
int c = input.charAt(i) - 'a';
if ((checker & (1 << c)) > 0) return false;
checker |= (1 << c);
}
return tru... | mit |
UDA-EJIE/uda-rup | doc/dev/Adapters_componentes_RUP.md | 755 | # Uso de adapters en los componentes RUP
En los componentes RUP se hace uso de unos módulos js llamados **adapters**.
Estos módulos se crearon con la finalidad de propocionar diferentes implementaciones dependiendo de si se trata del aspecto visual Material, Bootstrap o de jQueryUI.
De este modo exitirán tres adapte... | mit |
bradmontgomery/swift_wrapper | swift_wrapper.sh | 6134 | #!/bin/bash
# About
# -----
#
# This script contains some bash wrappers for swift, the command-line
# interface to Rackspace's OpenStack Storage API.
#
# To get started, you'll need to install the python-swiftclient
#
# pip install python-swiftclient
#
# It's also available on github:
# https://github.com/openstac... | mit |
LaunchU/QuadVenture | app/controllers/venture/projects_controller.rb | 1365 | require_dependency "venture/application_controller"
module Venture
class ProjectsController < ApplicationController
before_action :set_project, only: [:show, :edit, :update, :destroy]
# GET /projects
def index
@projects = Project.all
end
# GET /projects/1
def show
end
# GET /... | mit |
matheuscscp/nanotrip | src/PanelItem.hpp | 1943 |
#ifndef PANELITEM_HPP
#define PANELITEM_HPP
#include "LevelMakerPanel.hpp"
#include "Button.hpp"
#include "InputString.hpp"
#include "Text.hpp"
class PanelItem : public LevelMakerPanel {
private:
Sprite* sprite_input_mass;
Button* button_input_mass;
lalge::R2Vector input_mass_position;
bool invalid_input_mass;
... | mit |
dpskvn/mikulas.js | test/SpecRunner.html | 801 | <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jasmine Spec Runner v2.0.0</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.0.0/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="lib/jasmine-2.0.0/jasmine.css">
<s... | mit |
Misza13/StarsReloaded | StarsReloaded.Client.ViewModel/Controls/GalaxyMapPanelViewModel.cs | 4361 | namespace StarsReloaded.Client.ViewModel.Controls
{
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using GalaSoft.MvvmLight.CommandWpf;
using GalaSoft.MvvmLight.Messaging;
using StarsReloaded.Client.Mediation.Mes... | mit |
vectorcoindev/Vector | src/qt/locale/bitcoin_sq.ts | 110078 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="sq" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Vector</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+... | mit |
daviian/sd_googlemaps | Configuration/TCA/tx_sdgooglemaps_domain_model_styler.php | 5995 | <?php
return [
'ctrl' => [
'type' => 'type',
'title' => 'LLL:EXT:sd_googlemaps/Resources/Private/Language/locallang_db.xlf:tx_sdgooglemaps_domain_model_styler',
'label' => 'style_option',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'versioningWS' => true,
'languageField' => ... | mit |
wojteklu/logo | README.md | 1520 | # Logo interpreter 🐢
[](#)
[](https://twitter.com/wojteklu)
>An interpreter is a computer program that directly executes instructions written in a programming or sc... | mit |
cmeon/Simplex | lib/test/CMakeFiles/linearstructure_5.dir/cmake_clean.cmake | 297 | FILE(REMOVE_RECURSE
"CMakeFiles/linearstructure_5.dir/linearstructure.cpp.o"
"linearstructure_5.pdb"
"linearstructure_5"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang CXX)
INCLUDE(CMakeFiles/linearstructure_5.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
| mit |
andrewgremlich/presence-keeper | pk_static_files_server/app/js/util/DataControl.js | 369 |
class DataControl {
constructor() {
this.appData
updateData()
}
updateData() {
this.appData = fetcherama()
}
fetcherama() {
lib.fetch(`http://localhost:8080/api/class/getNearbyClasses/${coor.long}/${coor.lat}`, opt, data => {
if (data.success === true) {
return data.classes
... | mit |
badugisoft/jarr | jarr.gen.go | 3182 | // ********************************************************* //
// The content of this file is auto-generated, DO NOT MODIFY //
// ********************************************************* //
package jarr
func CondString(c bool, t, f string) string {
if c {
return t
} else {
return f
}
}
func CondInt(c bool, ... | mit |
ericgreen/topology | app-ui/next/doc/modules/nx.graphic.html | 19999 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>nx.graphic - Next UI Toolkit</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" hr... | mit |
topfreegames/khan | cmd/loadtest.go | 1802 | package cmd
import (
"github.com/spf13/cobra"
"github.com/topfreegames/khan/loadtest"
"github.com/topfreegames/khan/log"
"github.com/uber-go/zap"
)
var sharedClansFile string
var nGoroutines int
var loadtestCmd = &cobra.Command{
Use: "loadtest",
Short: "runs a load test against a remote Khan API",
Long: `Ru... | mit |
LogiksPlugins/tabbedspace | index.php | 4102 | <?php
if(!defined('ROOT')) exit('No direct script access allowed');
$dashboard=getConfig("DASHBOARD_PAGE");
?>
<div id="workspace" style='display:none;overflow:hidden;width: 100%;height: 100%;'>
<ul>
<?php if(strlen($dashboard)>0) { ?>
<li><a href='#dashboard'>Dashboard</a></li>
<?php } ?>
</ul>
<?php if(str... | mit |
HerbLuo/shop-api | src/main/java/cn/cloudself/dao/IAppJiyoujiaHeadDao.java | 887 | package cn.cloudself.dao;
import cn.cloudself.model.AppJiyoujiaHeadEntity;
import cn.cloudself.model.IntegerEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;
import java.util.List;
/**
* @author HerbLuo
* @ve... | mit |
thruelios/ab180 | src/qt/signverifymessagedialog.cpp | 8779 | #include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
Sign... | mit |
zoltanvi/password-manager | src/view/PasswordManagerRegistration.java | 2435 | package view;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.BorderLayout;
import java.awt.Font;
public class PasswordManagerRegistration {
JPanel regpanel;
private JTextField txtUsername;
private... | mit |
shuxinqin/Chloe | src/ChloeDemo/DbTypeConsts.cs | 487 | using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
namespace System.Data
{
public static class DbTypeConsts
{
/// <summary>
/// 自定义一个 DbType 表示 pgsql 的 json 类型
/// </summary>
public const DbType NpgJson = (DbType)135;
/// <summary>
... | mit |
vasco-santos/CertificationService | certModule/CertAuthority.py | 6803 | # -*- coding: utf-8 -*-
"""
This module provides the necessary methods for a Certification Authority.
For creating the self signed Certificate for the CA, use the following command:
$ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem
@author: Vasco Santos
"""
import time
from M2Crypto impo... | mit |
nice-php/docs | extensions/doctrine-odm.md | 109 | Configuring Doctrine ODM
========================
The Doctrine ODM extension is currently under development. | mit |
filmhomage/car2go | car2go_sample/Network/FMAPIManager.h | 1431 | //
// FMAPIManager.h
// car2go_sample
//
// Created by Jonghyun Kim on 2017/05/29.
// Copyright © 2017 kokaru. All rights reserved.
//
typedef void (^apisuccess)(NSURLSessionDataTask *sessionDataTask, id responseObject);
typedef void (^apifailure)(NSURLSessionDataTask *sessionDataTask, NSError *error);
@interface... | mit |
Lslgg/admin-manager | src/app/admin/power/shared/power.model.ts | 1410 | export class Power{
public id:string;
public code:string;
public url:string;
public title:string;
public explain:string;
public menuId:string;
public type:string;
public isValid:boolean;
public isChecked:boolean=false;
public operation:Array<string>=new Array<string>();
pub... | mit |
nikitanovosibirsk/district42 | tests/list/test_list_of_representation.py | 1650 | from baby_steps import given, then, when
from district42 import represent, schema
def test_list_of_representation():
with given:
sch = schema.list(schema.bool)
with when:
res = represent(sch)
with then:
assert res == "schema.list(schema.bool)"
def test_list_of_values_represent... | mit |
thomjoy/turftest | src/jspm_packages/npm/mapbox.js@2.1.5/docs/assets/csv2geojson.js | 5283 | /* */
"format cjs";
(function(e){if("function"==typeof bootstrap)bootstrap("csv2geojson",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeCsv2geojson=e}else"undefined"!=typeof window?window.csv2ge... | mit |
moustacheminer/discordmail | src/mail/DiscordMailHooks.ts | 1161 | import { Buffer } from 'buffer';
const discordmailhooksLegacyBrailleRegex = /([\u2800-\u28FF]+)(?:.)([\u2800-\u28FF]+)/;
class DiscordMailHooks {
email: string
constructor(email: string) {
this.email = email;
}
matches() {
return discordmailhooksLegacyBrailleRegex.test(this.email);
}
toWebhook()... | mit |
redxtreme/practicePong | pong.html | 5793 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pong</title>
<style>
canvas {
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
... | mit |
router5/router5 | packages/xstream-router5/README.md | 1125 | [](https://badge.fury.io/js/xstream-router5)
# xstream-router5
[xstream](http://staltz.com/xstream/) integration with [router5](https://router5.js.org)
```sh
npm install --save xstream-router5
```
### Usage
_xstream-router5_ exports a single function `cre... | mit |
instagibbs/bitcoin | src/util/system.cpp | 46739 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/system.h>
#ifdef ENABLE_EXTERNAL_SIGNER
#if defined(WIN32) && !de... | mit |
simplestory/simplestory.github.io | _includes/about/zh.md | 317 | Hi,我是鬼甲怪,一名cv算法工程师。我会在这里分享一些工作学习上的知识。在工作之余,我喜欢看视频、开黑打机。
受限于本人的学识,写(抄)出来的博文可能会有一些**小错误**,如果你发现了,请务必联系我(1195997479@qq.com)。:)
| mit |
alexdu98/Ambiguss | src/AppBundle/Command/CanonicalisationCommand.php | 1454 | <?php
namespace AppBundle\Command;
use FOS\UserBundle\Util\Canonicalizer;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony... | mit |
Azure/azure-sdk-for-go | services/preview/apimanagement/mgmt/2021-01-01-preview/apimanagement/group.go | 28709 | package apimanagement
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regen... | mit |
com372-14/com372-14.github.io | _lessons/2014-11-26.md | 214 | ---
layout: post
title: No Class (Thanksgiving Break)
lesson_num: '00'
week_num: 14
class_date: November 26, 2014
lead:
dontlink: true
---
## Due For This Class
## Presentation
## Lesson Heading
## Homework
| mit |
Tethik/mtg | mtg.js | 5687 | var module = angular.module('mtg', ['ngRoute', 'timer']);
DEBUG = true;
module.controller('main', function($scope, $filter) {
$scope.matches = [];
$scope.players = [{}, {}];
var orderBy = $filter('orderBy');
$scope.importFromStorage = function() {
console.log("Importing from local storage");
tourney = JSON.... | mit |
anthonykulis/npm-test | src/index.js | 399 | // Demo component
// this is only example component
// you can find tests in __test__ folder
import React from 'react';
import Button from './components/Button'
class TeamCatfish extends React.Component {
render() {
return (
<div className="team-catfish">
<p>TC</p>
... | mit |
Noah-Huppert/Website-2013 | vhosts/www.noahhuppert.com/htdocs/trex/deps/v8/src/mips/frames-mips.cc | 2234 | // Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | mit |
aleclarson/lotus-require | index.js | 554 |
var LOTUS = Symbol.for('lotus');
var lotus = global[LOTUS];
if (!lotus) {
var lotusPath = process.env.LOTUS_PATH;
// Try using the local version.
if (lotusPath) {
lotusPath += '/lotus-require';
if (__dirname === lotusPath) {
// We are already using the local version.
}
else if (require('f... | mit |
wcabus/MADN-oAuth | Timesheet.Domain/TimeRegistration.cs | 423 | using System;
namespace Timesheet.Domain
{
public class TimeRegistration
{
public Guid Id { get; set; }
public Guid TaskId { get; set; }
public string EmployeeId { get; set; }
public DateTimeOffset TimeStart { get; set; }
public DateTimeOffset TimeEnd { get; se... | mit |
freieslabor/murnau | doc/Murnau.Adapter.Labor.Api.html | 6599 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.13.0">
<title>Murnau.Adapter.Labor.Api – murnau v0.0.1</title>
<link re... | mit |
parttimenerd/chyrp_de | modules/shadowbox/shadowbox.php | 2824 | <?php
class Shadowbox extends Modules {
static function __install() {
Like::install();
}
static function __uninstall($confirm) {
if ($confirm)
Like::uninstall();
}
static function admin_sb_settings($admin) {
if (!Visitor::... | mit |
arturictus/easy_serializer | lib/easy_serializer/cacher.rb | 738 | module EasySerializer
class Cacher
attr_reader :serializer, :metadata
def initialize(serializer, metadata)
@serializer = serializer
@metadata = metadata
end
def execute
CacheOutput.new(_execute)
end
private
def _execute
strategy = if metadata.is_a?(EasySerializer... | mit |
mvader/reactmad-redux-example | src/store.js | 338 | import { compose, combineReducers, createStore } from 'redux';
import { devTools } from 'redux-devtools';
import twist from './reducers/twist';
import form from './reducers/form';
const twister = combineReducers({
twist,
form
});
const finalCreateStore = compose(devTools())(createStore);
export default finalCrea... | mit |
dpo/OptimizationProblems.jl | src/arglina.jl | 746 | # Linear function - full rank
#
# Source: Problem 32 in
# J.J. More', B.S. Garbow and K.E. Hillstrom,
# "Testing Unconstrained Optimization Software",
# ACM Transactions on Mathematical Software, vol. 7(1), pp. 17-41, 1981.
#
# See also Buckley#80 (with different N and M)
#
# classification SUR2-AN-V-0
e... | mit |
pact-foundation/pact_broker | lib/pact_broker/config/load.rb | 1624 | require "pact_broker/configuration"
require "pact_broker/logging"
require "pact_broker/config/setting"
require "pact_broker/config/space_delimited_string_list"
module PactBroker
module Config
class Load
include PactBroker::Logging
def self.call runtime_configuration
new(runtime_configuratio... | mit |
stephen-hill/Atto | readme.md | 504 | # Atto PHP Framework
[![Build Status]](https://travis-ci.org/stephen-hill/Atto)
[![Test Coverage]](https://coveralls.io/r/stephen-hill/Atto)
[![SemVer]](http://semver.org)
Atto is a PHP Framework solely for developing RESTful APIs.
[Build Status]: http://img.shields.io/travis/stephen-hill/Atto/master.svg?style=flat-... | mit |
topheman/cycle-infos | test/spec/controllers/home.js | 123 | 'use strict';
describe('Controller: HomeCtrl', function () {
it('should make a unit test ...', function () {
});
});
| mit |
shlinkio/shlink | module/Core/src/Action/RobotsAction.php | 1270 | <?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Action;
use Fig\Http\Message\StatusCodeInterface;
use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Shlinkio\Shlink\Core\Crawling\CrawlingHel... | mit |
dwetterau/quill-firebase | src/public/stylesheets/style.css | 432 | body {
padding: 50px;
}
html {
position: relative;
min-height: 100%;
}
body {
padding-top: 60px;
padding-left: 0;
padding-right: 0;
margin-bottom: 75px;
}
footer {
position: absolute;
bottom: 0;
width: 100%;
line-height: 45px;
}
div.alert-container {
width: 100%;
po... | mit |
Jonathan-Z/PowerShellMusic | setup.py | 457 | import cx_Freeze
import sys
import os
executables = [cx_Freeze.Executable("MusicCompiler.py", base=None)]
cx_Freeze.setup(
name= "MusicCompiler",
description = "Best Program Ever Known To Humanity.",
author = "Space Sheep Enterprises",
options = {"build_exe":{"excludes":["urllib","html","h... | mit |
withinboredom/docker-alpine | examples/user-nginx/Dockerfile | 111 | FROM smebberson/alpine-nginx
MAINTAINER Scott Mebberson <scott@scottmebberson.com>
# Add the files
ADD root /
| mit |
vlnvv/vlnvv.github.com | _posts/blog/2014-10-25-android-fragments.md | 2545 | ---
layout: post
title: "Android Inter-Fragment Communication"
modified:
categories: blog
excerpt:
tags: [Android, Coding]
image:
feature: so-simple-sample-image-5.jpg
comments: true
share: true
date: 2014-10-25T23:12:55-04:00
author: vlnvv
---
There are a bunch of tutorials on inter-fragment communications in Andro... | mit |
Fumaloko92/MSc-Thesis | 17-05-2017/neuralturingmachines-master/src/com/anji_ahni/nn/activationfunction/PowerActivationFunction.java | 1453 | package com.anji_ahni.nn.activationfunction;
/**
* Square-root function.
*
* @author Oliver Coleman
*/
public class PowerActivationFunction implements ActivationFunction, ActivationFunctionNonIntegrating {
/**
* identifying string
*/
public final static String NAME = "power";
/**
* @see Object#toString(... | mit |
sleepepi/patstrial.org | app/controllers/documents_controller.rb | 367 | # frozen_string_literal: true
class DocumentsController < ApplicationController
before_action :authenticate_user!, except: [:download]
layout "layouts/full_page_sidebar"
# GET /docs
def index
if current_user.can_view_unblinded_folder?
@documents = Document.latest_files
else
@documents = D... | mit |
bq12345/bq12345.github.io | src/coding.md | 9107 | # 编码
本篇主要讲述计算机编码相关的知识,字集码是把字符集中的字符编码为指定集合中某一对象,以便文本在计算机中存储和通过通信网络的传递。主要有 ASCII、ISO西欧系列、DOS字符集、Windows字符集、亚洲字符集、Unicode。
## 编码历史
在计算机存储和传输的所有数据最终形态都是 0 或 1,为了能使传输字符就规定了一个数字对应一个字符,例如对于字母 a 来说,就是存入 97 这个数字,而在读取的时候遇到 97 自然也就知道了它代表的是 a。
为了使得所有的计算机都能知道这个约定,于是 ASCII 最早就被发明出来了,包含控制字符,标点,英文大小写,同时还是留了 128-255 来后续使用。
但是当时候的人... | mit |
EasyLOB/EasyLOB-Chinook-2 | Chinook.Data/Profiles/CustomerProfile.cs | 2406 | using EasyLOB.Data;
using System.Collections.Generic;
namespace Chinook.Data
{
public partial class Customer
{
#region Profile
public static IZProfile Profile { get; private set; } = new ZProfile
(
Name: "Customer",
IsIdentity: true,
Ke... | mit |
KrisPetkov/Test-repository | Intro-Programming/16.Print-Long-Sequence/PrintLongSequence.cs | 331 | using System;
class PrintLongSequence
{
static void Main(string[] args)
{
for (int i = 2; i <= 1002; i++)
{
if ((i%2)==0)
{
Console.WriteLine(i);
}
else
{
Console.WriteLine(-i);
}
}
... | mit |
adiachenko/catchy_api | app/Jobs/Auth/SendEmailChangeConfirmation.php | 828 | <?php
namespace App\Jobs\Auth;
use App\Jobs\Job;
use App\Storage\EmailConfirmation\EmailConfirmationRepository;
use Illuminate\Support\Facades\Mail;
class SendEmailChangeConfirmation extends Job
{
protected $newEmail;
/**
* Create a new job instance.
*
* @return void
*/
public functi... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.1/error-handlers/1.0.0.html | 6630 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>error-handlers: 17 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | mit |
suissa/cors-server-client | app/partials/partial1.html | 520 | <p>Busca de JSON em uma API sem CORS usando <a href="http://cors-server.getup.io/">http://cors-server.getup.io/</a>
</p>
<form data-ng-submit="submit()">
<label for="url">
<input type="text" name="url" data-ng-model="url">
<!-- <button data-ng-click="find(url)">Buscar</button> -->
<input type="submit" v... | mit |
mohitsethi/vagrant-hp | README.md | 6746 | # Vagrant HP Provider
[](http://badge.fury.io/rb/vagrant-hp) [](https://gemnasium.com/mohitsethi/vagrant-hp) [](https://c... | mit |
jeremytammik/tbc | a/1869_using_vs_racking.md | 10519 | <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="bc.css">
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" type="text/javascript"></script>
</head>
<!---
- 17047221 [ADN Support]
- VS operation could not be ... | mit |
travis-ci/packer-templates | cookbooks/travis_packer_templates/metadata.rb | 450 | # frozen_string_literal: true
name 'travis_packer_templates'
maintainer 'Travis CI GmbH'
maintainer_email 'contact+travis-packer-templates-cookbook@travis-ci.org'
license 'MIT'
description 'Installs/Configures travis_packer_templates'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.0-2.0.5/released/8.8.1/poltac/0.8.8.html | 18416 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>poltac: 1 m 4 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styl... | mit |
caesarshift/msfw | msfw/MSFirewallRule.cs | 34510 | using System; //default
using System.Collections.Generic; //dictionary,list
using System.Linq; //because jon skeet
using NetFwTypeLib; //firewall library
using System.Net.Sockets; //protocol enum
using System.Net; //IPAddress class
namespace msf... | mit |
ldarren/mysg | api/addTrip.js | 1913 | const
pObj=pico.export('pico/obj'),
fb=require('api/fbJSON'),
rdTrip=require('redis/trip')
return {
setup(context,cb){
cb()
},
addPickup(user,action,evt,name,next){
const text=pObj.dotchain(evt,['message','text'])
if(!text) return next(null,`fb/ask${action[action.length-1]}`)
const a=action.pop()
switch(... | mit |
edecisions/recapt | src/main/java/com/recapt/domain/IssueHistory.java | 1356 | /*
* Property of RECAPT http://recapt.com.ec/
* Chief Developer Ing. Eduardo Alfonso Sanchez eddie.alfonso@gmail.com
*/
package com.recapt.domain;
import java.time.LocalDateTime;
/**
*
* @author Eduardo
*/
public class IssueHistory {
private String name;
private String description;
private String r... | mit |
olivererxleben/hipsterbility | serverside/node_modules/avconv/tests/basics.js | 6328 | "use strict";
var testCase = require('nodeunit').testCase,
path = require('path'),
fs = require('fs'),
avconv;
function read(stream, callback) {
var output = [],
err = [];
stream.on('data', function(data) {
output.push(data);
});
stream.on('error', function(d... | mit |
rishiloyola/jsmol-models | jsmol/j2s/J/renderspecial/PolyhedraRenderer.js | 3499 | Clazz.declarePackage ("J.renderspecial");
Clazz.load (["J.render.ShapeRenderer"], "J.renderspecial.PolyhedraRenderer", ["JU.P3i", "JM.Atom", "JU.C"], function () {
c$ = Clazz.decorateAsClass (function () {
this.drawEdges = 0;
this.isAll = false;
this.frontOnly = false;
this.screens = null;
this.vibs = false;
Cl... | mit |
gabemartinez/clastestsuite | tests/buttons.js | 975 | var buttons = function(req, res, next) {
var request = require('request');
var cheerio = require('cheerio');
var Case = require('case');
// var url = "http://clas.asu.edu";
var url = req.body.page;
var parsedResults = [];
//testing url argument site buttons casing
request(url, function (error, respo... | mit |
ipjohnson/Grace | tests/Grace.Tests/Properties/AssemblyInfo.cs | 784 | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")... | mit |
preceptorjs/taxi | examples/stitching.js | 4049 | var taxi = require('..');
var chromedriver = require('chromedriver');
var fs = require('fs');
var user = process.env.SAUCE_USERNAME;
var accessKey = process.env.SAUCE_ACCESS_KEY;
var sauceLabsUrl = "http://" + user + ":" + accessKey + "@ondemand.saucelabs.com/wd/hub";
var tests = [
{ url:'http://localhost:9515/', c... | mit |
LockScreen/Backend | venv/bin/rst2xml.py | 642 | #!/Users/Varun/Documents/GitHub/LockScreen/venv/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import l... | mit |
kedromelon/babel | packages/babel-plugin-transform-optional-chaining/README.md | 2010 | # babel-plugin-transform-optional-chaining
The Optional Chaining Operator allows you to handle properties of deeply nested
objects without worrying about undefined intermediate objects.
## Example
### Accessing deeply nested properties
```js
const obj = {
foo: {
bar: {
baz: 42,
},
},
};
const baz... | mit |
harveyqing/Qingblog | Qingblog/public/static/dopetrope/js/theme.js | 142 | /**
* @author Chine
*/
function switchTheme(theme) {
$.cookie('blog_theme', theme, { expires: 30 });
location.href = location.href;
}
| mit |
leeroybrun/node-mt-files-downloader | lib/Download.js | 8675 | var mtd = require('mt-downloader');
var fs = require('fs');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var Download = function() {
EventEmitter.call(this);
this._reset();
this.url = '';
this.filePath = '';
this.options = {};
this.meta = {};
this._retry... | mit |
Autodrop3d/autodrop3dServer | public/webcad/app/sketcher/constr/solver.js | 7075 | import * as utils from '../../utils/utils'
import * as math from '../../math/math'
import QR from '../../math/qr'
import LMOptimizer from '../../math/lm'
import {ConstantWrapper, EqualsTo} from './constraints'
import {dog_leg} from '../../math/optim'
/** @constructor */
function Param(id, value, readOnly) {
this.res... | mit |
rainphp/RainCMS | website/themes/default/layout.home.html | 2421 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{$title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{$description}">
<!-- Le styles -->
<link href="css/style.css" rel="stylesh... | mit |
lewie9021/ambient-js | src/Controller.js | 870 | (function() {
function Base(props) {
this.id = Ambient.getID();
$.extend(this, props || {});
}
Base.extend = function(methods) {
if (typeof methods === "function") {
methods = methods();
}
methods = (methods || {});
... | mit |
weifengsmile/xiexie | client/src/containers/Root.js | 931 | import React from 'react'
import { Router, Route, hashHistory, browserHistory, IndexRoute } from 'react-router'
import MainContainer from '../components/MainContainer'
import Login from '../components/hello/Login'
import Register from '../components/hello/Register'
import Index from '../components/index/Index'
import H... | mit |
442331311/waste | build/contacts.html | 13537 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>联系我们 - 八八箱业</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="Keywords" content="宜宾废旧桂圆筐,八八箱业,废料回收,桂圆筐交易,报废桂圆筐,废旧桂圆筐" />
<met... | mit |
khapota/messages-terminal | test.py | 1064 | from messenger import Skype
import keyring
import utils
token = keyring.get_password('messagesReceiver', 'skypeToken')
registrationToken = keyring.get_password('messagesReceiver', 'skypeRegistrationToken')
username = keyring.get_password('messagesReceiver', 'skypeUsername')
password = keyring.get_password('messagesRec... | mit |
phinoppix/webpack-react-starter | src/app/template.html | 243 | <!DOCTYPE html>
<html lang="en">
<head>
<title>Simple Webpack-React Starter Kit</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="app"></div>
</body>
</html> | mit |
cacciatc/old_happiNES | tests/shifts/LSR_inst.rb | 5182 | require 'test/unit'
class LSRTest < Test::Unit::TestCase
def setup
@temp_file = "lsr_dump"
@input_file = "lsr_input"
end
def test_addr_mode_accumulator
instr = [0xA9,0xFF,0x4A]
instr.push(0x02)
write_input_file(instr)
system(".././2a03 #{@input_file} #{@temp_file}")
f = File.new(@temp_file)
fstring... | mit |
danielmarcoto/ControleRemoto | app/src/main/java/br/com/command/comandos/PersianaSuiteAbrirCommand.java | 435 | package br.com.command.comandos;
import br.com.command.interfaces.Command;
import br.com.command.modelos.PersianaSuite;
/**
* Created by danielmarcoto on 17/11/15.
*/
public class PersianaSuiteAbrirCommand implements Command {
private PersianaSuite persiana;
public PersianaSuiteAbrirCommand(PersianaSuite p... | mit |
douggr/benri | library/Benri/Controller/Action.php | 1579 | <?php
/**
* Used to implement Action Controllers for use with the Front Controller.
*
* @link Benri_Controller_Abstract.html Benri_Controller_Abstract
*/
abstract class Benri_Controller_Action extends Benri_Controller_Action_Abstract
{
/**
* Layout used by this controller.
* @var string
*/
p... | mit |
HRPersona/Backend | src/Attendance/Model/ShiftmentRepositoryInterface.php | 394 | <?php
namespace Persona\Hris\Attendance\Model;
use Persona\Hris\Repository\RepositoryInterface;
/**
* @author Muhamad Surya Iksanudin <surya.iksanudin@personahris.com>
*/
interface ShiftmentRepositoryInterface extends RepositoryInterface
{
/**
* @param string $id
*
* @return ShiftmentInterface|n... | mit |
OverloadUT/LaborTracker | LaborTracker.js | 18428 | var READONLY = false
// How much labor you generate per minute
var LABORGENRATE = 2;
if (READONLY){
// This is just for setting up a display-only example of this app
Characters = new Meteor.Collection(null)
Timers = new Meteor.Collection(null)
} else {
Characters = new Meteor.Collection("characters");
Timer... | mit |
kenyonduan/amazon-mws | src/main/java/com/elcuk/jaxb/OptionalWeightUnitOfMeasure.java | 740 | /* */ package com.elcuk.jaxb;
/* */
/* */ import javax.xml.bind.annotation.XmlEnum;
/* */ import javax.xml.bind.annotation.XmlType;
/* */
/* */ @XmlType(name="OptionalWeightUnitOfMeasure")
/* */ @XmlEnum
/* */ public enum OptionalWeightUnitOfMeasure
/* */ {
/* 30 */ GR,
/* 31 */ KG,
/... | mit |
somebox/getpaid | test/functional/customers_controller_test.rb | 1526 | require File.dirname(__FILE__) + '/../test_helper'
require 'customers_controller'
# Re-raise errors caught by the controller.
class CustomersController; def rescue_action(e) raise e end; end
class CustomersControllerTest < Test::Unit::TestCase
fixtures :customers
def setup
@controller = CustomersController.n... | mit |
AlManja/logs.py | logsgui3.py | 9203 | #!/usr/bin/env python
import os
import sys # provides interaction with the Python interpreter
from functools import partial
from PyQt4 import QtGui # provides the graphic elements
from PyQt4.QtCore import Qt # provides Qt identifiers
from PyQt4.QtGui import QPushButton
t... | mit |