repo stringlengths 5 121 | content stringlengths 35 2.09M |
|---|---|
2-V/node_api_v3 | 2-V/node_api_v3
member.js
```var db = require("../core/db");
var httpMsgs = require("../core/httpMsgs");
var util = require("util");
exports.getList = function (req, resp) {
db.executeSql("SELECT TOP(10) First_Name, Last_Name, Email FROM Main", function(data, err) {
if(err){
httpMsgs.show500(req, resp, err);
... |
20-sim/ccode-template-Labview | 20-sim/ccode-template-Labview
xxmodel.h
```/**********************************************************
* This file is generated by 20-sim ANSI-C Code Generator
*
* file: %FILE_NAME%
* subm: %SUBMODEL_NAME%
* model: %MODEL_NAME%
* expmt: %EXPERIMENT_NAME%
* date: %GENERATION_DATE%
* time: %GENERATION_... |
2001db8/GetShitDoneMusic | 2001db8/GetShitDoneMusic
README.md
```# GetShitDoneMusic
A curated collection of music and soundtracks to help you get shit done.
- [Game Soundtracks](#game-soundtracks) - [A](#games-a) [B](#games-b) [C](#games-c) [D](#games-d) [E](#games-e) [F](#games-f) [G](#games-g) [H](#games-h) [I](#games-i) [J](#games-j) K [L... |
2009harf/vim-bash_config | 2009harf/vim-bash_config
README.md
```# vim-bash_config
Personal Bash config .bashrc file and Vim config .vimrc file.
Need to prefix the file name with "." and move it to the home directory. Source the config file before use.
```
bashrc
```# .bashrc
#Source global definition
if [ -f /etc/bashrc ]; then
. /etc/bashr... |
20100204/shopping | 20100204/shopping
Bll.php
```<?php
/**
* Created by PhpStorm.
* User: jason
* Date: 2016/9/18
* Time: 10:44
*/
namespace app\components;
class Bll
{
public $dal;
public function __construct()
{
$this->dal = Factory::getInstance('Dal');
}
public function getList(){
$this->da... |
201026java/revoverflow-user-service | 201026java/revoverflow-user-service
RSSClient.java
```package com.revature.clients;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import com.revature.DTOs.RSSAccountDTO;
import com.revature.DTOs.RSSUserDTO;
@FeignClient(na... |
20104062/HICET- | 20104062/HICET-
README.md
```# HICET-
college information
``` |
2011011328/test | 2011011328/test
README.md
```# test
这是一个测试项目,测试github
``` |
2014052128/perl_work_zlj | 2014052128/perl_work_zlj
README.md
```# perl_work_zlj
This is a perl work.
``` |
2014068446/MyFrameLayout | 2014068446/MyFrameLayout
MainActivity.java
```package com.example.donnald.mylayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
public class MainActivity extends AppCompatActivity {
Button btnC... |
2015asrivastava/Poll | 2015asrivastava/Poll
abc.sql
```--
-- File generated with SQLiteStudio v3.1.1 on Mon Feb 13 01:05:33 2017
--
-- Text encoding used: UTF-8
--
PRAGMA foreign_keys = off;
BEGIN TRANSACTION;
-- Table: auth_group
CREATE TABLE "auth_group" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(80) NOT NULL UNIQUE... |
2015lym/DTY | 2015lym/DTY
Podfile
```# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'dtyios' do
inhibit_all_warnings!
use_frameworks!
use_frameworks!
pod 'AFNetworking', '3.2.1'
pod 'BRPickerView', '2.2.1'
pod 'Bugly'
pod 'IQKeyboardManager'
pod 'LBXScan'
pod ... |
201603006/thesis | 201603006/thesis
homepage.php
```<?php
// Initialize the session
session_start();
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: index.php");
exit;
}
?>
<!DOCTYPE html>
<html lang="... |
201671010410/word1 | 201671010410/word1
KeywordIdentifier.java
```/*
* 在Count类的基础上,实现一个类KeywordIdentifier,读入一个java程序源文件,输出各个关键字的个数(注意,注释中出现的关键字不计入关键字个数)*/
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
public class KeywordIdentifier {
public String filename;
public String[] keywords = new St... |
2016rshah/Project-Euler | 2016rshah/Project-Euler
ProjE02.cpp
```#include <iostream>
using namespace std;
int main(){
int a = 1;
int b = 2;
int sum = 0;
for(int c = a+b; b<4000000; c = a+b, a = b, b = c){
if(b%2 == 0){
sum+=b;
}
}
cout << "Answer: " << sum << "\n";
return 0;
}```
ProjE11.... |
20171105142/MiShop | 20171105142/MiShop
RegisterServlet.java
```package cn.edu.imnu.mishop.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.s... |
2017140203sicnu/Public-Swimming-Library | 2017140203sicnu/Public-Swimming-Library
第一章 入门基本姿势.md
```# 第一组:
# 第二组:
2017140201程月梅
(单选)题目:持浮板基本姿势正确的一项是?
A、陆上交叉持浮板
B、陆上左手持浮板
C、陆上右手持浮板
D、陆上双手持浮板和陆上单手持浮板【正确】
2017140203付尔丽
(判断题)题目:陆上双手持浮板姿势属于入门基本姿势吗?【正确】
# 第三组:
# 第四组:
# 第五组:
# 第六组:
# 第七组:
# 第八组:
# 第九组:
# 第十组:
# 第十一组:
# 第十二组:
``` |
2017TJM/SSD-pytorch | 2017TJM/SSD-pytorch
MultiBoxLoss.py
```# coding:utf-8
import torch
import torch.nn as nn
import torch.nn.functional as F
class MultiBoxLoss(nn.Module):
def __init__(self, num_classes=21):
super(MultiBoxLoss, self).__init__()
self.num_classes = num_classes
self.smooth_l1_loss = nn.SmoothL1... |
20181102932/swift-exercise1 | 20181102932/swift-exercise1
main.swift
```/*var a = 0;
var sum = 0;
while a < 100
{
a = a + 1
if a % 7 == 0
{
continue
}
else
{
sum = sum + a;
}
}
print(sum)
var shuzu:[Int] = [1,2,3,4,5]
for item in "wjxzhendiniupi"{
print(item)
}
var varA = 20
let constA = 100
var varC... |
201851019-iiitv/CS302_Underdog | 201851019-iiitv/CS302_Underdog
City.java
```package WorkFolder;
public class City {
private double longitude;
private double latitude;
private String city_name;
public City(double latitude,double longitude,String city_name)
{
this.longitude=longitude;
this.latitude=latitude;
this.city_n... |
20194266-halt/hala194266 | 20194266-halt/hala194266
Ex1.cpp
```#include<iostream>
#include<vector>
using namespace std;
int find(vector<int>&arr, int x, int low, int high)
{ if (high >= low) {
int mid = low + (high - low) / 2; // Tuong duong (l+r)/2 nhung uu di?m tránh tràn s? khi l,r l?n
// N?u arr[mid] = x, tr? v? ch? s? và k?t th... |
2020-CS-116/Hello | 2020-CS-116/Hello
README.md
```# Hello
Hello Test
``` |
2020-DEV-630/BerlinClockKata | 2020-DEV-630/BerlinClockKata
LampView.swift
```import SwiftUI
struct LampView: View {
var lampColour: LampColour
var body: some View {
RoundedRectangle(cornerRadius: ViewConstants.cornerRadius)
.foregroundColor(ViewConstants.colour(for: lampColour))
.overlay(
... |
2020-Spring-Cohort/fizzbuzz-DanielVillasmil | 2020-Spring-Cohort/fizzbuzz-DanielVillasmil
FizzBuzzApplication.java
```package org.wecancodeit.fizzbuzz;
public class FizzBuzzApplication {
static FizzBuzz game = new FizzBuzz();
public static void main(String[] args) {
for (int i =1 ; i < 100; i++) {
System.out.println(game.interpret(i)... |
2020jschultz/1st-project-2019-2020 | 2020jschultz/1st-project-2019-2020
README.md
```# 1st-project-2019-2020```
main.py
```# Function to print words which can be created
# using given set of characters
# part 1
def Check_Vow(string, vowels):
vowels = [each for each in string if each in vowels]
print(len(vowels))
print(vowels)
strin... |
2021-paper-fun/CarND-PID-Control-Project | 2021-paper-fun/CarND-PID-Control-Project
PID.cpp
```#include "PID.h"
using namespace std;
PID::PID(double Kp, double Ki, double Kd) : Kp(Kp), Ki(Ki), Kd(Kd) {
d_error = 0;
p_error = 0;
i_error = 0;
};
PID::~PID() {}
void PID::UpdateError(double cte) {
d_error = cte - p_error;
p_error = cte;
i_er... |
2021vkavuri/Lab03 | 2021vkavuri/Lab03
MainActivity.java
```package com.kavurivinay.lab03;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.SeekBar;
import android.w... |
20chan/aheuithon | 20chan/aheuithon
register.py
```import codecs, io, encodings
from aheuithon.codec.parser import parse
def aheui_decode(input, errors="strict"):
raw = bytes(input).decode("utf-8")
code = "\n".join(raw.splitlines())
code = parse(code)
return code, len(input)
def search_function(encoding):
if encodi... |
20eddy20/laravel | 20eddy20/laravel
PublicPathServiceProvider.php
```<?php
///storage/ssd1/458/3320458/public_html
namespace Cinema\Providers;
use Illuminate\Support\ServiceProvider;
class PublicPathServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
publi... |
20lives/dotfiles | 20lives/dotfiles
README.md
```# Twentylives dotfiles
## Vim
1. Clone this repository and create a symbolic link to the vimrc file
```
git clone https://github.com/20lives/dotfiles.git
cd dotfiles
ln -sf $(pwd -P)/vimrc ~/.vimrc
```
2. Install [vim-plug] by running the following command
```
curl ... |
20spokes/rooster | 20spokes/rooster
image_helper.rb
```module Rooster
module ImageHelper
end
end
```
auth.rb
```module Rooster::Auth
def authenticate
true
end
end
```
post.rb
```class Rooster::Post < ActiveRecord::Base
has_many :blocks, as: :blockable
enum state: [ :draft, :published, :archived ]
accepts_nested_attr... |
20xx0/hello-world | 20xx0/hello-world
README.md
```# hello-world
haha programming yes
so if I make a change here, then ...?
``` |
21428432/Volley | 21428432/Volley
MainActivity.java
```package com.example.thammy.vollypractise;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widge... |
214815197/HelloWorld | 214815197/HelloWorld
_nodes.js
```/**
* 节点管理页面功能脚本
* @author 姚尧 <yaogaoyu@qq.com>
*/
var _nodes = function() {
var contextPath = $("#p").attr("ref");
var alertDialog = {
title: '提示',
okValue: '确定',
ok: function() {}
};
var confirmDialog = {
title: '请确定',
ok... |
216Giorgiy/Musoq | 216Giorgiy/Musoq
AccessMethodNode.cs
```using System;
using System.Reflection;
using Musoq.Parser.Tokens;
using Musoq.Plugins.Attributes;
namespace Musoq.Parser.Nodes
{
public class AccessMethodNode : Node
{
public readonly FunctionToken FToken;
public AccessMethodNode(FunctionToken fToken, ... |
21d5/letsencrypt-certbot | 21d5/letsencrypt-certbot
ali
```#!/usr/bin/python3
#coding=utf-8
import tldextract, demjson, os, time
# pip3 install aliyun-python-sdk-core-v3
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.request import CommonRequest
client = AcsClient('<accessKeyId>', '<accessSecret>', 'default')
request = CommonR... |
21lucasmessias/uri | 21lucasmessias/uri
1030.cpp
```#include <bits/stdc++.h>
using namespace std;
typedef struct CircleList
{
int v;
struct CircleList *next = nullptr;
} CircleList;
void initList(CircleList **p)
{
if (*p != nullptr)
{
free(*p);
}
*p = (CircleList *)malloc(sizeof(CircleList));
if (*p == nullptr)
... |
220185ad/uglifyme.bat | 220185ad/uglifyme.bat
README.md
```# uglifyme.bat
Windows Drag and Drop batch file for minifying multiple Javascript files using UglifyJS
``` |
2205harshita/geeks-c- | 2205harshita/geeks-c-
Bot_start-INCREDI
```#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import telegram
from telegram.error import NetworkError, Unauthorized
from time import sleep
import os
from time import time
from src.entry import entry
import json
logging.basicConfig(
format='%(asctime)s %(l... |
2210-97/hello-world | 2210-97/hello-world
README.md
```# hello-world
Calis
debora araceli valadez hidalgo------> Eres una crack ----> sere grande ---> todo a su tiempo----> no hay prisa
``` |
2279633326/nemar | 2279633326/nemar
UserServiceImpl.java
```package com.oaec.service.impl;
import com.hwua.dao.UserMapper;
import com.hwua.po.User;
import com.oaec.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtil... |
2335904825/taobao-spider | 2335904825/taobao-spider
README.md
```# taobao-spider
淘宝商品数据爬虫,可以获取商品名称、价格、销量、位置、好评中评差评数。憋不出毕业论文心烦写的爬虫,喜欢给个star噢! thx
``` |
2356650035/abaaba | 2356650035/abaaba
README.md
```# abaaba
Ababababab
``` |
2363140194/realTest | 2363140194/realTest
README.md
```# realTest
test
``` |
23KAPILKUMAR/college-website-template | 23KAPILKUMAR/college-website-template
README.md
```# college-website-template``` |
23hertz/JS-Tips-And-Tricks | 23hertz/JS-Tips-And-Tricks
README.md
```# JavaScript Tips And Tricks
A collection of JavaScript tips and tricks.
No particular order or path.
I add things as I discover them.
*Check [Codinghub.tips](https://codinghub.tips/), too, for JavaScript tips. It's not my project but I like it.* 🔥
# TABLE OF CONTENTS
* [O... |
23luka23/firebaseTest | 23luka23/firebaseTest
MainActivity.java
```package maceng.firebasetest;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageButton;
import android.widget.Toast;
import android.view.View;
import android.view.View.OnClickListener;
import com.google.firebase.... |
2410796639/snowbabay | 2410796639/snowbabay
pig.cpp
```#include "pig.h"
struct node
{
}pigcage[100];
pig::pig(QWidget *parent) : QWidget(parent)
{
}
```
cage.h
```#ifndef CAGE_H
#define CAGE_H
#include <QWidget>
#include <subwidget.h>
class cage : public QWidget
{
Q_OBJECT
public:
explicit cage(QWidget *parent... |
2432123215/leyou | 2432123215/leyou
UserClient.java
```package com.leyou.auth.client;
import com.leyou.user.Api;
import org.springframework.cloud.openfeign.FeignClient;
@FeignClient(value = "user-service")
public interface UserClient extends Api {
}
```
CategoryService.java
```package com.leyou.item.service;
import com.leyou.item.poj... |
24617/Tower-Defence | 24617/Tower-Defence
TowerSpawner.cs
```using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TowerSpawner : MonoBehaviour
{
private bool canMakeTurret = true;
GameObject towerHold;
float snapvalue = 1.6f;
void Update()
{
Vector3 mousePos = Camera.mai... |
24engiball/thai-cid-python | 24engiball/thai-cid-python
readcid.py
```#! /usr/bin/env python
# -*- coding: utf-8 -*-
# 2013-11-08 (Y-m-d)
# apt-get install pcscd python-pyscard
from smartcard.System import readers
from smartcard.CardRequest import CardRequest
from smartcard.Exceptions import SmartcardException,NoCardException, CardRequestTimeout... |
24shadrin/marka | 24shadrin/marka
subfolder
```#!/bin/sh
a1=$(date | awk '{print $6}')
a3=$(date | awk '{print $3}')
mon=$(date | awk '{print $2}')
case $mon in
Jan) a2=01 ;;
Feb) a2=02 ;;
Mar) a2=03 ;;
Apr) a2=04 ;;
May) a2=05 ;;
Jun) a2=06 ;;
Jul) a2=07 ;;
Aug) a2=08 ;;
Sep) a2=09... |
2579081436/algorithm.github.io | 2579081436/algorithm.github.io
LCS.cpp
```#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
const int MAX=100;
string X="BCAD",Y="BAC";
int C[MAX][MAX];
int B[MAX][MAX];
string str="";
void LCS(string X,int x_len,string Y,int y_len){
if(x_len==0||y_len==0) return ;
for(int i=0;i<=x_len;i++... |
25mordad/bitdev | 25mordad/bitdev
define.php
```<?php
//DB
define('__DB_USER__', "root" );
define('__DB_PASSWORD__', "bobo" );
define('__DB_NAME__' , "bitcoin" );
define('__DB_HOST__', "localhost" );
// Create connection
$conn = new mysqli(__DB_HOST__, __DB_USER__, __DB_PASSWORD__, __DB_NAME__... |
25x8/webpack-build | 25x8/webpack-build
README.md
```
# Webpack Build
This build already have css/sass, file, babel loaders. Hot reload and optimization include.
## Installation
1. git clone https://github.com/25x8/webpack-build.git
2. npm install
3. Fix some description in package.json
## Enjoy with 5 scripts:
- ### dev
... |
2733284198/laravel-qcloud-cos | 2733284198/laravel-qcloud-cos
LaravelServicePorvider.php
```<?php
/**
* Created by PhpStorm.
* User: Caojianfei
* Date: 2018/10/8/008
* Time: 14:56
*/
namespace Caojianfei\QcloudCos;
use Storage;
use Qcloud\Cos\Client;
use League\Flysystem\Filesystem;
use Illuminate\Support\ServiceProvider;
class LaravelServic... |
27786653/AndroidSimpleDemo | 27786653/AndroidSimpleDemo
NoticeAdapter.java
```package com.yuanhai.test.Info_Fragment;
import java.util.List;
import com.net.tsz.afinal.FinalBitmap;
import com.yuanhai.test.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... |
278Mt/NoupathyProto | 278Mt/NoupathyProto
noise_detector.h
```//
// Created by DSJ on 2019/06/26.
//
#ifndef NNRAWLOGGER_NOISE_DETECTOR_H
#define NNRAWLOGGER_NOISE_DETECTOR_H
#include <jni.h>
#include <vector>
#include <string>
#include <iostream>
#include <math.h>
#include <android/log.h>
/* Header for class HelloWorldJNI */
#ifdef __... |
27Nine-Design/angularcasts-io-ng2cribs | 27Nine-Design/angularcasts-io-ng2cribs
README.md
```# angularcasts-io-ng2cribs
This is a test``` |
27tech/tfs-covid19 | 27tech/tfs-covid19
learner.py
```import os
from fastai.callback.all import SaveModelCallback, CSVLogger, EarlyStoppingCallback, ReduceLROnPlateau
from fastai.learner import Learner
from fastai.losses import MSELossFlat, L1LossFlat
from torch.nn import MSELoss, L1Loss, NLLLoss
from fastai.metrics import mae, mse
from... |
2840278902/flightchess | 2840278902/flightchess
qrc_resources_user.cpp
```/****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.10.1
**
** WARNING! All changes made in this file will be lost!
***********************************************... |
288374/Tutorial-de-Greenfoot | 288374/Tutorial-de-Greenfoot
README.md
```Tutorial-de-Greenfoot
ESte es un ejemplo creado por Perlita Martinez
```
Dolphin.java
```import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Dolphin here.
*
* @author (your name)
* @version (a version numbe... |
28shambhavi/Quantum-Espresso-DOP | 28shambhavi/Quantum-Espresso-DOP
README.md
```## Instructions
### SETTING UP THE INPUT FILE for SINGLE LAYER:
In the scf file, K_POINTS automatic: 24 24 1 0 0 0, are advisable as the minimum number if K points. One can take 12 12 1 0 0 0 also but the graphs obtained do not do justice to the calculation. The greater... |
29072021/29072021 | 29072021/29072021
README.md
```### Olá! Eu sou a Natália Vieira
- 🔭 Tech Recruiter
- Recrutamento e Seleção
- 👩💻 natalia.rh.recruiter@gmail.com.
<div>
<a href="https://github.com/29072021">
<img height = "180em" src = "https://github-readme-stats.vercel.app/api?username=29072021&show_icons=true&theme=dark&in... |
2947721120/firebaseui-web | 2947721120/firebaseui-web
README.md
```##CN
#<trans data-src="FirebaseUI for Web — Auth" data-dst="firebaseui Web认证" style="background: transparent;">firebaseui Web认证</trans>
<p><trans data-src="FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI
bindings on top of " data-dst=... |
296095958/Java-college | 296095958/Java-college
equipmentmanagement.java
```import java.util.Scanner;
public class AllocateTest {
//设备列表初始化
static Equipment []equipment=new Equipment[10];
static EquipType []equiptype=new EquipType[4];
static void allocate(String J,String type,int mm){
int i,t;
//查询该类设备
i=0;
while(i<4) {
if(eq... |
2Irina2/ai-mas-solution | 2Irina2/ai-mas-solution
README.md
```# ai-mas-solution``` |
2Lynk/multi1v1-heavy-round | 2Lynk/multi1v1-heavy-round
README.md
```# multi1v1-heavy-round

A simple plugin that adds a "heavy" round to the multi1v1 plugin by Splewis.
Players get the Heavy Assault Suit model with eith... |
2RMalinowski/ad_service_v3 | 2RMalinowski/ad_service_v3
0004_auto_20180430_1213.py
```# Generated by Django 2.0.3 on 2018-04-30 10:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ui_app', '0003_auto_20180426_1140'),
]
operations = [
migrations.AlterModelOptions(
... |
2apl/AutocomplexGit | 2apl/AutocomplexGit
SearchHistory.java
```package by.aex.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.Inheritance... |
2coldray/hw-01-code-refractor-edit | 2coldray/hw-01-code-refractor-edit
README.md
```# hw-01-code-refractor-edit``` |
2fatihceylan/Ki-isel-Finans-Y-netimi | 2fatihceylan/Ki-isel-Finans-Y-netimi
TcmbKur.java
```package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javaf... |
2l1k/AvansPlus1 | 2l1k/AvansPlus1
LoanHistoryEvent.php
```<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class LoanHistoryEvent extends Model
{
protected $guarded = [];
public function getReadStatusAttribute(){
return ($this->attributes["is_read"] == 1) ? "Просмотрено": "Новое уведомление";
... |
2minchul/nose-test-practice | 2minchul/nose-test-practice
README.md
```# nose-test-practice
test code practice```
test_todos.py
```# Third-party imports...
from nose.tools import assert_true, assert_is_not_none, assert_list_equal, assert_is_none
from unittest.mock import Mock, patch
import requests
from services import get_todos, get_uncompleted... |
2om/2om.stock | 2om/2om.stock
README.md
```# 2om.stock
Actually getting back to coding step-by-step.
``` |
2pavel/CaesarCipher.rb | 2pavel/CaesarCipher.rb
caesar.rb
```def caesar_cipher(string, shift)
charcodes_arr = string.split(//).map(&:ord).map! do |charcode|
if (charcode >= 65 && charcode <= 90)
charcode += shift
if charcode > 90
charcode -= 26
else
charcode
end
elsif (charcode >= 97 && char... |
2pees/aiortc | 2pees/aiortc
g711.py
```import audioop
import fractions
from ..mediastreams import AudioFrame
SAMPLE_RATE = 8000
TIME_BASE = fractions.Fraction(1, 8000)
def mono_8khz(frame):
data = frame.data
timestamp = frame.pts
# resample at 8 kHz
if frame.sample_rate != SAMPLE_RATE:
data, _ = audioop.... |
2seunghye/NAC-Front | 2seunghye/NAC-Front
db2.js
```export const lookUpArr = [
{
abi: 'accessControl',
methodName: 'Yu205',
objects: [
{ name: 'obj1', macAddress: '0.0.0.0' },
{ name: 'obj2', macAddress: '0.0.0.0' },
],
subject: { macAddress: '0.0.0.0', name: 'name1' },
scName: 'acc',
},
{
abi:... |
2spaces/uglify.github.io | 2spaces/uglify.github.io
README.md
```# uglify.github.io
uglify github pages
``` |
2tefan/Arduino-Color-Switcher | 2tefan/Arduino-Color-Switcher
main.cpp
```#include <Arduino.h>
int red_led = 6;
int blue_led = 5;
int green_led = 3;
int rgb_kathode = 10;
int Sevseg_kathode = 12;
int Sevseg_kathode2 = 13;
int poti = 14;
int type = 0;
int modi = 8;
int potenziometer() {
pinMode(poti, INPUT);
int value = analogRead(poti);
... |
2vg/Rustaceans | 2vg/Rustaceans
README.md
```# Rustaceans
my rust practice repository.
```
hello.rs
```fn main() {
let x = "Hello"; // &str
print!("{}", x);
let mut y = " World".to_string(); // String
print!("{}", y);
y.push_str("!"); // can push_str because mut variable.
let z = &y[y.len() - 1 .. y.len()]; ... |
2wiktor2/UdemyLesson56 | 2wiktor2/UdemyLesson56
MainActivity.java
```package com.example.lesson56douwnloadcontent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import jav... |
3015RangerRobotics/RobotCode2018 | 3015RangerRobotics/RobotCode2018
ZAutoLeftRightSwitchFirst.java
```package org.usfirst.frc.team3015.robot.commands;
import org.usfirst.frc.team3015.motionProfiles.MotionProfiles;
import edu.wpi.first.wpilibj.command.CommandGroup;
import edu.wpi.first.wpilibj.command.WaitCommand;
public class ZAutoLeftRightSwitchFir... |
30lm32/scala-memos | 30lm32/scala-memos
README.md
```# Scala Memos
In this repo, you can find my personal memos I took to keep tracking of the context of Scala while learning it.
0-Internal Function
1-Partially Applied Function
2-Closures - First-class Functions
3-Higher-order Functions
4-Pass Parameter by using curly... |
31d4r/JSON-Country-List | 31d4r/JSON-Country-List
DetailViewController.swift
```//
// DetailViewController.swift
// Countrify
//
// Created by Eldar Tutnjic on 06/04/2019.
// Copyright © 2019 eldartutnjic. All rights reserved.
//
import UIKit
class DetailViewController: UIViewController {
@IBOutlet weak var flagImageView: UIImageVie... |
3210439/ImageSegmentation | 3210439/ImageSegmentation
배경 제거 - BackgroundSubtractorMOG2.cpp
```#include<opencv2/opencv.hpp>
#include<iostream>
using namespace std;
using namespace cv;
int main() // 이것은 가우시안 혼합 기반 배경 / 전경 분할 알고리즘이다.
{
Mat frame; // 현재 프레임
Mat result; // MOG2에 의하여 생성되는 결과 영상
Ptr<BackgroundSubtractor> pMOG2; // MOG2 배경 삭제 객체
in... |
32bitkid/tdfjs.ui | 32bitkid/tdfjs.ui
tdfjs.ui.min.js
```!function(t){"use strict";if(void 0===t)throw"tdfjs not loaded...";var e=Document.prototype,d=e.createElement.bind(document),n=e.createTextNode.bind(document),a=d("div"),o=d("style");a.dataset.passed=0;var i="tdf-"+(1e6*Math.random()|0),r='attr(data-passed) " Passed"',l='attr(data-... |
335/TIL | 335/TIL
spring-boot-starter-mail.md
```# spring-boot-starter-mail 첨부파일 전송
AWS SES로 첨부파일 포함된 메일 발송기능 개발
```java
public class EmailService {
private final JavaMailSender mailSender;
public void sendEmail(SimpleMailMessage simpleMailMessage) {
mailSender.send(simpleMailMessage);
}
public void sendEmail(M... |
3361805992/CSAndroid-Notes | 3361805992/CSAndroid-Notes
README.md
```## 说明
这里梳理了Android进阶的笔记,供奋斗在Android道路上的队友参考,我学习历程以及目标方向,其中涉及到的书籍和视频教程的笔记等内容,后续整理将逐步在此更新。
# 技能点 :star:
-----
## 语言基础 :star2:
### 知识点 :bookmark_tabs:
> C/ C++
> NDK
* JNI 注册流程
* 动态注册和静态注册方式
> Java
* [并发基础](./语言基础/java并发.md)
* [线程安全](./语言基础/... |
33757152/ZJJSwipeLeftList | 33757152/ZJJSwipeLeftList
Header.h
```//
// Header.h
// ZJJSwipeLeftList
//
// Created by admin on 2020/10/25.
//
#ifndef Header_h
#define Header_h
/// 获取当前屏幕宽度
#define XTAY_SCREEN_W [UIScreen mainScreen].bounds.size.width
/// 获取屏幕高度
#define XTAY_SCREEN_H [UIScreen mainScreen].boun... |
369713387/DesignMode | 369713387/DesignMode
program.cs
```//using System;
//using System.Collections.Generic;
//using System.Text;
//namespace ConsoleApp1.组合模式
//{
// class program
// {
// static void Main(string[] args)
// {
// ConcreteCompany root = new ConcreteCompany("北京总公司");
// root.Add(new ... |
36rahu/pincode_directory | 36rahu/pincode_directory
search.py
```import string
from pincodes import pincodes
def search_with_pincode(pincode):
'''Searching the location with using the pincode. It's expect the 6 digit number.'''
if isinstance(pincode,int) or isinstance(pincode,str):
pincode = str(pincode)
else:
raise... |
370417/qr-haggis | 370417/qr-haggis
Roadmap.md
```# Roadmap
Engine steps:
- [x] Define the game state
- [ ] Test a game state for correctness
- [ ] Implement the rules (playing cards, passing, etc)
- [ ] Compress the game state to the size of a QR code (goal: 272 bits)
- [ ] Reverse the compression
- [ ] Test roundtrip compression
Cl... |
375432636/BigDateShare | 375432636/BigDateShare
大数据概述和基本应用.md
```# 大数据概述和基本应用
# 1. 大数据概要
* 大数据的概念, 影响, 应用, 关键技术
* 大数据与云计算, 物联网的关系
## 1.1 大数据时代
### 1.1.1 大数据的背景是第三次信息化浪潮
* 大数据
* 云计算
* 物联网
```
我们听到大数据这个词应该是在2010年前后. 讲大数据一定离不开一个大背景, 就是第三次信息化浪潮. 实际上第三次信息化浪潮就是以大数据,云计算,物联网为等新技术为代表, 这三种技术促成了第三次信息化浪潮.
```
### 1.1.2 历史上的浪潮
根据IBM前首席执行官郭士纳的... |
379359622/wu1259771 | 379359622/wu1259771
README.md
```# wu1259771
no
``` |
386jp/ibo_doc_export | 386jp/ibo_doc_export
README.md
```# IBO Document Exporter
```
IBO.CSS that I uploaded is not completed (under developing). Please DO NOT USE this system for now. I will update it later.
```
## Description
By using this system, you can export your document in IBO (International Baccalaureate Organization) format. I... |
3974kjh/exam | 3974kjh/exam
README.md
```# practice
This is the code for the algorithm problem practiced on sites "SW Export Academy" and "Baekjoon Online Judge".
``` |
3D-e-Chem/knime-klifs | 3D-e-Chem/knime-klifs
LigandsApi.java
```/*
* KLIFS API
* Dynamically interact with the rich content of KLIFS: the structural kinase database
*
* OpenAPI spec version: 0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do... |
3DEmpire/Project_X | 3DEmpire/Project_X
test.php
```<?php $this->pageTitle=Yii::app()->name; ?>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/jquery/AJAXadminType.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/tinymce/jscripts/tiny_mce/tiny_mce.js" ></script>... |
3DRacers/Docs | 3DRacers/Docs
code.html.md
```---
title: 3DRacers - Coding Guide
toc_footers:
- <a href='http://store.3dracers.com'>Buy 3DRacers</a>
- <a href='https://github.com/3DRacers/3D-Models'>Download 3D models STL</a>
- <a href='/docs/app.html'>Download iOS/Android App</a>
- <a href='/editor'>Online Editor</a>
searc... |