text
stringlengths
27
775k
# SimpleAdminLTE : is the AdminLTE template without example pages # Complete AdminLTE: https://github.com/almasaeed2010/AdminLTE
class SessionsController < ApplicationController def create user = User.from_omniauth(env["omniauth.auth"]) session[:user_id] = user.id if SharedBasket.where(user_id: user.id).first == nil SharedBasket.where(user_id: user.id).create Folder.where(name: "Save For Later", user_id: user.id).first...
/* * Copyright 2019 nwillc@gmail.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLA...
@if (count($errors) > 0) @foreach ($errors->all() as $message) <div class="uk-alert-danger" uk-alert> <a class="uk-alert-close" uk-close></a> {{ $message }} </div> @endforeach @endif
-- This should give me the number of buses on each route at a given time DROP TABLE IF EXISTS temp.variables; CREATE TEMP TABLE variables AS SELECT '17:00:00' AS query_time; DROP TABLE IF EXISTS temp.buses_per_route; CREATE TEMP TABLE buses_per_route AS SELECT route_id AS "route", COUNT(trip_id) AS "buses" FROM...
--- layout: post title: "awils3126 must have cheated flatstickpub" category: photos --- [![awils3126 must have cheated flatstickpub](/instagram/th-BwvdsuXp2aH.jpg)](https://www.instagram.com/p/BwvdsuXp2aH/)
class Debt { int id; int parentId; String date; double value; String description; Debt({ this.id, this.parentId, this.date, this.description, this.value = 0.0, }); }
import { createSelector } from 'reselect'; export const getAttributeHealingPower = createSelector( [], () => { return 0; } );
function kube_shell() { IMAGE=`pwd` IMAGE=`basename $IMAGE` if [ -n "$1" ]; then IMAGE="$1" fi echo "Opening shell into pod '$IMAGE'..." kubectl exec -it "$IMAGE" sh }
using System; namespace AVR.Debugger.Interfaces { public interface IServiceProvider { T GetService<T>(); void AddService<T>(object instance); void AddService<T>(Func<object> factory); } }
import Steering from './steering'; import Phaser from 'phaser'; import Vector2 = Phaser.Math.Vector2; import Sprite = Phaser.Physics.Arcade.Sprite; export class Flee implements Steering { constructor( private owner: Sprite, private pursuer: { x: number; y: number }, public force: number ) {} calculateImpulse...
//-------------------------------------------------------------------------------------------------- // // Copyright (c) 2018 Denis Dyakov // poritons Copyright (c) 2019 Iron Heart Consulting, LLC // Adapted for ADS1115 device by Steve Conklin // // Permission is hereby granted, free of charge, to any person obtaini...
from os.path import basename from pyriksprot import interface, to_speech, workflows from pyriksprot.dispatch import dispatch # pylint: disable=redefined-outer-name TAG = "vx.y.z" def main(target_type: dispatch.TargetTypeKey, source_folder: str): workflows.extract_corpus_tags( source_folder=source_fold...
/* Class: Graphic.Image Shape implementation of an image. Author: Sébastien Gruhier, <http://www.xilinus.com> License: MIT-style license. */ Graphic.Image = Class.create(); Object.extend(Graphic.Image.prototype, Graphic.Rectangle.prototype); // Keep parent initialize Graphic.Image.prototype._shapeInitial...
if [ -e ~/.secrets ]; then source ~/.secrets fi
#!/bin/ksh MenuItems=5 (( secshi = $(date +%s) + ((5-$(date +%w)+7) % 7)*86400 )) n=$MenuItems print "<select name=\"PayWeek\">" while (( --n >= 0 )) do hi=$(date --date=@$secshi "+%Y-%m-%d") (( secslo = secshi-6*86400+3600 )) secslo=$(date --date=$(date --date=@$secslo "+%Y-%m-%d") "+%s") lo=$(date --date=@$se...
name := "iiot-demo" version := "1.0" scalaVersion := "2.10.5" val sparkVersion = "1.6.0" val kuduVersion = "1.2.0-cdh5.10.0" // protocol buffer support //PB.protobufSettings //PB.targets in Compile := Seq( // scalapb.gen() -> (sourceManaged in Compile).value //) libraryDependencies ++= Seq( "org.scalatest" %% "s...
/*eslint-disable no-magic-numbers*/ module.exports = function jsonTree(modules) { let maxDepth = 1; let rootSize = 0; const root = { children: [], name: "root" }; const getChild = function (arr, name) { for (let i = 0; i < arr.length; i++) { if (arr[i].name === name) { return arr[i...
# Lingua-Poly Language Disassembling Library # Copyright (C) 2018-2019 Guido Flohr <guido.flohr@cantanea.com> # All rights reserved # # This library is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of...
export default function formatBytes(value: number) { if (value / 1000 / 1000 > 1) { return `${(value / 1000 / 1000).toFixed(2)} MB`; } else if (value / 1000 > 1) { return `${(value / 1000).toFixed(2)} KB`; } else { return `${value.toFixed(2)} B`; } }
/* * Copyright (c) 2015 Andrew O'Malley * * 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, pub...
class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_filter :authenticate_user_from_token before_filter :miniprofiler before_filter :redirect_to_real_domain def current_user super || Guest.new end helper_method :current_user private def authenticate_...
--- layout: post title: "数据结构-线性查找和二分查找" subtitle: "linear search and n\binary search" date: 2017-11-10 13:48:00 author: "xuepro" header-img: "img/home_bg.jpg" header-mask: 0.3 catalog: true multilingual: true tags: - DS --- 哈夫曼编码 ```cpp // copyright by hwdo...
/* * Copyright (C) 2016 "IoT.bzh" * Author Fulup Ar Foll <fulup@iot.bzh> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
import { TowerMap } from '../../Specs/TowerMap'; import { RaceTowers } from '../RaceTowers'; import { FelGuard } from './FelGuard'; import { Mannoroth } from './Mannoroth'; import { SummoningShrine } from './SummoningShrine'; import { KilJaeden } from './KilJaeden'; import { DemonizedDreadlord } from './DemonizedDreadl...
--- title: 消息代码 | Microsoft Docs description: 了解消息视图的每个消息行上显示的消息代码的含义。 ms.custom: SEO-VS-2020 ms.date: 11/04/2016 ms.topic: conceptual helpviewer_keywords: - message codes ms.assetid: 9f91f4e2-c1f1-4349-9f11-2fbbf59654be author: mikejo5000 ms.author: mikejo manager: jillfra ms.workload: - multiple ms.openlocfilehash: e...
CREATE PROCEDURE [dbo].[aspnet_Users_CreateUser] @ApplicationId uniqueidentifier, @UserName nvarchar(256), @IsUserAnonymous bit, @LastActivityDate DATETIME, @UserId uniqueidentifier OUTPUT AS BEGIN IF( @UserId IS NULL ) SELECT @UserId = NEWID() ELSE BEGIN ...
export * from "./deviceInputSystem"; export * from "./InputDevices/deviceEnums"; export * from "./InputDevices/deviceTypes"; export * from "./Helpers/eventFactory"; export * from "./Implementations/nativeDeviceInputSystem"; export * from "./Implementations/webDeviceInputSystem"; import "./InputDevices/deviceS...
## [编写一个类,实现简单的栈,栈中有以下操作:](stack.cc) ​ > 元素入栈 void push(int); ​ > 元素出栈 void pop(); ​ > 读出栈顶元素 int top(); ​ > 判断栈空 bool emty(); ​ > 判断栈满 bool full(); 如果栈溢出,程序终止。栈的数据成员由存放 10个整型数据的数组构成。先后做如下操作: ​ > 创建栈 ​ > 将10入栈 ​ > 将12入栈 ​ > 将14入栈 ​ > 读出并输出栈顶元素 ​ > ...
# Rare Disease analysis in Mondo To answer the question of 'How many rare diseases are there?' we analyzed terms in Mondo to get a total count of Rare Diseases as defined in Mondo Disease Ontology (Mondo). ## Methods This analysis was performed on the [Mondo 2019-09-30 release](http://purl.obolibrary.org/obo/mondo/...
using System; using System.Linq; using Raven.Client.Embedded; using Raven.Tests.Common; using Xunit; namespace Raven.Tests.Issues.Ravendb718 { public class DateTimeOffset_QueryDynamicTests : RavenTest { [Fact] public void DateTimeOffset_FromNow_OnDynamicIndex_Queries_WithCorrectOff...
package com.genaku.maskededittextsample import android.os.Bundle import android.support.design.widget.TextInputEditText import android.support.v7.app.AppCompatActivity import android.text.Editable import android.text.InputType import android.text.TextWatcher import android.view.View import android.widget.EditText impo...
using Letter.IO; namespace Letter.Tcp { public interface ITcpFilter : IFilter<ITcpSession> { } }
<?php /** * Created by PhpStorm. * User: xmy 280564871@qq.com * Date: 2017/4/1 * Time: 15:41 */ namespace Admin\Model; use Think\Model; class TabModel extends Model { public function __construct($name = '', $tablePrefix = '', $connection = '') { /* 设置默认的表前缀 */ $this->tablePrefix ='tab_'; /* 执行构造方法 */ ...
import test from 'ava'; import match from '../index.js'; import {spy} from 'sinon'; test('Must match and return object\'s key', t => { const expected = [1]; const actual = match('value', { a: 'test', value: expected }); t.is(actual, expected, ''); }); test('Must return default value if nothing matched', t =>...
<?php namespace Larabros\Elogram\Exceptions; use Exception as BaseException; /** * Base exception class for this package. * * @package Elogram * @author Hassan Khan <contact@hassankhan.me> * @link https://github.com/larabros/elogram * @license MIT */ class Exception extends BaseException { }
{-# LANGUAGE OverloadedStrings #-} module PngLoader where import System.IO import System.Environment import qualified Data.ByteString as B import qualified Data.Word as W import qualified Data.ByteString.Char8 as C import qualified Codec.Compression.Zlib as Zlib import qualified Data.ByteString.Lazy as LB import quali...
$(function(){ // 입력창에 아무 입력도 없을 경우 'Add comment'를 기본으로 세팅 var input_area_default = $('#input_area').html(); if(input_area_default == ''){ var default_text = 'Add comment' $('#input_area').html(default_text) } }); // 입력을 시작하면 기본 세팅인 'Add comment'를 제거 $(document).on("focus","#input_area",function() { var...
using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Builder { public static class RoutingAndMvc { public static IEndpointRouteBuilder UseCustomRoutes(this IEndpointR...
import numpy from chainer import link from chainer.functions.array.concat import concat from chainer.functions.noise.dropout import dropout from fgnt.chainer_extensions import weight_init from fgnt.chainer_extensions.sequence_linear \ import sequence_linear_function from fgnt.chainer_extensions.sequence_lstm impor...
module test_julia_inferred using Test function f1(a::Bool) Any[a ? 1 : 1.0] end function f2(a::Bool)::Vector{Any} [a ? 1 : 1.0] end function f3(a::Bool) [a ? 1 : 1.0] end @inferred(f1(true)) @inferred(f2(true)) @test_throws Exception @inferred(f3(true...
class Student: def __init__(self, name, subjects): self.name = name self.subjects = subjects def greet(self): print("Hello, I'm {}. My favourite subjects are: ".format(self.name)) for item in self.subjects: print("\t{}".format(item)) # objects creation: ivan = Student("Ivan Ivanov", ["maths", "phisics"]...
{**********************************************************************} { } { "The contents of this file are subject to the Mozilla Public } { License Version 1.1 (the "License"); you may not use this } { file except in comp...
<?php declare(strict_types=1); namespace CurrencyConverter\Application\Exception; class ApiDomainException extends \DomainException { }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
<?php namespace app\admin\controller; use think\Session; use think\Controller; use think\Request; use think\Config; use app\admin\controller\Common; class Banner extends Common{ public function banner_list(){ $list=db('banner')->order('id desc')->paginate(4); $page=$list->render(); $num=db('banner')->...
ecall x3, x0, 5 ecall x4, x0, 5 blt x4, x3, Else slli x4, x4, 3 beq x0, x0, Exit Else: slli x3, x3, 3 beq x0, x0, Exit Exit:
package com.salama.service.core.interfaces; import com.salama.service.core.net.RequestWrapper; /** * * @author XingGu Liu * */ public interface RequestTracer { public void init(); public void destroy(); /** * * @param request */ public void onRequest(RequestWrapper request); ...
import 'dart:developer'; import 'dart:io'; import 'package:http/http.dart' as http; import 'dart:convert' as convert; class LoginRestapi { var url = 'http://jsserver.iptime.org:8080/login'; Future<int> KakaoLoginGet() async { var response = await http.get(url); if (response.statusCode == HttpStatus.ok...
INSERT OR REPLACE INTO files (key, time_stamp, data) VALUES (?, ?, ?)
# All cities in a country (Morocco) organised by largest population to the smallest | Name | CountryCode | District | Population | | :--- | :--- | :--- | :---: | |Casablanca|MAR|Casablanca|2940623| |Rabat|MAR|Rabat-Salé-Zammour-Z|623457| |Marrakech|MAR|Marrakech-Tensift-Al|621914| |Fès|MAR|Fès-Boulemane|541162| |Tange...
/* Copyright (C) 2010 FlameScripts <http://www.flame-wow.org/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * *...
require "optparse" require_relative "../config/environment" parser = OptionParser.new { |args| args.on "-f", "--fund FUND" args.on "-o", "--organisation ORGANISATION" args.on "-q", "--quarter QUARTER", Integer args.on "-y", "--year YEAR", Integer args.on "-i", "--input FILE" } options = {} parser.parse!(int...
# Neighbor finders export NoNeighborFinder, find_neighbors, DistanceNeighborFinder, DistanceVecNeighborFinder, TreeNeighborFinder, CellListMapNeighborFinder """ NoNeighborFinder() Placeholder neighbor finder that returns no neighbors. When using this neighbor finder, ensure that `nl_only`...
# The Book of Ruby - http://www.sapphiresteel.com puts("What shall we call this class? ") className = gets.strip().capitalize() # make sure class name starts with capital letter Object.const_set(className,Class.new) # create new class puts("I'll give it a method called 'myname'" ) className = Object.const_get(classN...
atc --model="./Wav2word.pb" \ --output_type=FP32 \ --output="./Wav2word_tensorflow_aipp" \ --framework=3 \ --soc_version=Ascend310
import path from 'path'; import inquirer from 'inquirer'; import disallowUndefined from 'lib/proxy/disallowUndefined'; import {PropertyNotDefinedError} from 'lib/exceptions/PropertyNotDefinedError'; import {ObjectExtras} from 'lib/helpers/ObjectExtra'; import {RandTypes} from 'lib/helpers/RandTypes'; export default a...
<?php namespace OK\Uml\Parser\Factory; use OK\Uml\Entity\NodeInterface; use OK\Uml\Entity\ArgumentNode; /** * @author Oleg Kochetkov <oleg.kochetkov999@yandex.ru> */ class ArgumentFactory implements NodeFactoryInterface { /** * @param \ReflectionParameter $param * @param array $args * * @re...
// Flutter imports: import 'package:afya_moja_core/afya_moja_core.dart'; import 'package:afya_moja_core/src/app_asset_strings.dart'; import 'package:afya_moja_core/src/app_strings.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; enum GenericNoDataTypes { noData, error } //...
#!/bin/bash apt-get -y install build-essential apt-get -y install scons apt-get -y install automake apt-get -y install autoconf apt-get -y install m4 apt-get -y install perl apt-get -y install flex apt-get -y install bison apt-get -y install byacc #apt-get -y install libconfig-dev #apt-get -y install libconfig++-dev ap...
# 文件的读写 ### <1>写数据(write) 使用write()可以完成向文件写入数据 demo: 新建一个文件 `file_write_test.py`,向其中写入如下代码: ```python f = open('test.txt', 'w') f.write('hello world, i am here!\n' * 5) f.close() ``` 运行之后会在`file_write_test.py`文件所在的路径中创建一个文件`test.txt`,并写入内容,运行效果显示如下: [ 补图 ] 注意: - 如果文件不存在,那么创建;如果存在那么就先清空,然后写入数据 ### <2>读数据(...
#!/bin/bash [ "$DEBUG" ] && set -x set -eo pipefail dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" image="$1" # Use a client image with curl for testing clientImage='buildpack-deps:jessie-curl' # Create an instance of the container-under-test serverImage="$("$dir/../image-name.sh" librarytest/rapidoid-hello-web...
namespace Vorbis { //https://github.com/knot3/OggSharp/tree/master/OggSharp //https://github.com/yebgi83/OggVorbisSharp //https://github.com/shilrobot/oggvorbis }
package net.corda.vega.portfolio import net.corda.core.contracts.* import net.corda.core.identity.Party import net.corda.core.internal.sum import net.corda.core.messaging.CordaRPCOps import net.corda.core.messaging.vaultQueryBy import net.corda.core.node.services.vault.QueryCriteria import net.corda.vega.contracts.IRS...
require_relative "plugin/splatoon2/version" require_relative "plugin/splatoon2/macro/fast_return" require_relative "plugin/splatoon2/macro/jump_to_right_key" require_relative "plugin/splatoon2/macro/jump_to_up_key" require_relative "plugin/splatoon2/macro/jump_to_left_key" require_relative "plugin/splatoon2/mode/gurugu...
pub const REGEX_RFC3339: &str = r"^([0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}[Zz+-:0-9]{1,6}$)"; pub const REGEX_RFC3339_NANO: &str = r"^([0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{7,9}[Zz+-:0-9]{1,6}$)"; pub const REGEX_RFC1123: &str = r"^([A-Za-z]{3}, [0-9]{2} [A-Za-z]{3...
package typingsSlinky.materialUi.global.MaterialUI import typingsSlinky.materialUi.MaterialUI.Tabs.TabProps import typingsSlinky.materialUi.MaterialUI.Tabs.TabsProps import typingsSlinky.react.mod.Component import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scala...
<div class="footer"> <p>Copyright &copy; 2016-2017 <a href="http://jitamin.com">Jitamin</a> Version <?= APP_VERSION ?> All rights reserved. <span class="pull-right">Jitamin on <a href="https://github.com/jitamin/jitamin" title="Jitamin is developed on Github"><i class="fa fa-github"></i> Github</a></span> ...
--- layout: post title: 中文 tags: site comment: true image: published: true ---
mod matrix; mod tuple; pub use matrix::Matrix; pub use tuple::Tuple; pub const EPSILON: f64 = 1e-4; #[cfg(test)] mod matrix_test; #[cfg(test)] mod tuple_test;
#!/bin/sh emit "export INIT_PROCESS=rhel-sysv" export INIT_PROCESS=rhel-sysv emit_alias_sudo "service" emit_alias_sudo "chkconfig" emit_stdin << 'SERVICE_SCRIPT' SERVICE_BIN=$(which service 2>/dev/null) if [ $? -ne 0 ]; then die "no 'service' executable" fi function service { # name action if [ "$2" = "enable" ];...
package me.tylerbwong.rebelbase.data.models import com.google.gson.annotations.SerializedName /** * @author Tyler Wong */ data class PlanetResponse(@SerializedName(COUNT) var count: Int, @SerializedName(NEXT) var next: String, @SerializedName(RESULTS) var results:...
<?php echo Message::render() ?> <div class=forum-title> <?php echo html::anchor( 'forum/post/'.$post->id, $post->title ); ?> </div> <div class=forum-content> <?php echo $post->content ?> </div> <div> <?php echo __('Created by:') ?> <b><?php echo html::anchor('profile/view/'.$post->user->id, $post->user->us...
package main import ( "errors" "fmt" "io" "net" "os" "github.com/code-tool/docker-fpm-wrapper/pkg/util" ) type DataListener struct { socketPath string listener net.Listener rPool *util.ReaderPool writer io.Writer errorChan chan error } func NewDataListener(socketPath string, rPool *util.Reader...
/* eslint-disable unicorn/filename-case */ export default { depend: ["Plain", "ExplicitName", "PromisePlugin"], create: (Plain, ExplicitName, PromisePlugin) => { return { lorem: Plain.get("lorem"), foo: ExplicitName.echo("bar"), ping: PromisePlugin.ping, } }, }
# do_not_heart_me Цифровой Прорыв 2020 Сердце
CREATE TABLE IF NOT EXISTS sb.migrations ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (), version INTEGER NOT NULL, files TEXT NOT NULL, executed timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ); INSERT INTO sb.migrations(version, files) VALUES(2, '0002_add_migrations_table.sql');
use crate::common::{ configuration::genesis_model::Fund, jcli_wrapper, jormungandr::{starter::Starter, ConfigurationBuilder}, }; use chain_addr::Discrimination; #[test] pub fn test_correct_utxos_are_read_from_node() { let sender_private_key = jcli_wrapper::assert_key_generate_default(); println!("S...
require_relative '../src/ntp_dos' require 'optparse' puts 'NTP Amp DOS attack' puts 'by DaRkReD' puts 'usage ntpdos.py <target ip> <ntpserver list> <number of threads> ex: sudo ntp_dos_proxy.rb 1.2.3.4 file.txt 10'
// cannot exist within mapStateSlice due to import cycles with // layerDataSelector(used to be mapStateSlice) -> nso/impact -> layer-data -> mapStateSlice // x -> y .. x is used by y import { Map as MapBoxMap } from 'mapbox-gl'; import type { RootState } from '../store'; import type { LayerDataTypes } from '../layers/l...
import tz.co.asoft.Phone import kotlin.test.* class PhoneTest { @Test fun shouldBeNormalized() { val phone1 = Phone("0752748674") assertEquals("255752748674", phone1.value) val phone2 = Phone("255752748674") assertEquals("255752748674", phone2.value) val phone3 = Phon...
# 88. Merge Sorted Array 标签(空格分隔): leetcode easy array --- 给两个排好序的正数数组,*nums1*和*nums2*,合并它们。 **注意:** 1. 直接修改*nums1*,你可以假定nums1的长度>=两个数组长度之和。 2. m是*nums1*的有效元素个数,n是*nums2*的有效元素个数。 ## 思路 1. 题目没有给定升序还是降序,此处默认升序。 2. 我们从m+n-1开始,比较两个数组的最末位,谁大就覆盖,且索引-1. 3. 我们以nums2的索引来判断,这是有一定的技巧性的。如果这个索引<0,我们就停止比较,因为所有nums2都插入了且前面也正...
package tests import ( "testing" "github.com/gruntwork-io/terratest/modules/terraform" ) func TestSerial(t *testing.T) { // setup options := &terraform.Options{ TerraformDir: ".", } terraform.InitAndApply(t, options) defer terraform.Destroy(t, options) t.Run("terraform_init_should_succeed", func(t *testin...
--- layout: page title: About me permalink: /about/ banner_image: sample-banner-image-2.jpg banner_image_alt: About me --- 一名爱折腾,爱自学的程序猿. * 2012 年毕业于武汉理工大学, 本科. * 2012 年入职东软集团 (大连) 有限公司. 东软是我人生中最重要的一个转折点, 是一个把大学理论知识变成实践经验的工厂. 2012/07 -- 2012/12 一大批校招的毕业生在东软接受了半年的 C/C++ 语言培训 培训期间主要完成以下项目: <table> <tr> ...
function write_doc(docformat::Pandoc2HTML, doc, rendered, out_path) _, weave_source = splitdir(abspath(doc.source)) weave_version, weave_date = weave_info() # Header is inserted from displayed plots header_script = doc.header_script self_contained = (header_script ≠ "") ? [] : "--self-contained" ...
require File.expand_path('../../../spec_helper', __FILE__) describe "Process.setpriority" do platform_is_not :windows do it "takes three arguments" do lambda { Process.setpriority }.should raise_error(ArgumentError) lambda { Process.setpriority(Process::PRIO_PROCESS) }.should raise_erro...
-- ------------------------------------------------------------ -- Resolve state-as-country -- ------------------------------------------------------------ -- -------------------------------------- -- Resolves political divisions which are treated as countries in -- the reference databases (GADM, Geonames) but are a...
# ClimbingRobot CAD and code for my wheeled-legged-climbing robot: https://youtu.be/anp15oVASc4
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
namespace Nest.Searchify.Abstractions { public interface IPagingParameters { int Start(); int Size { get; set; } int? Page { get; set; } bool HasSort(); } }
<p align="center"> <img src="https://raw.githubusercontent.com/gnlow/id/master/Dalkak/dalkak_logo.svg?sanitize=true" width="100"></img> </p> <h1 align="center"> Dalkak <a href="https://bundlephobia.com/result?p=dalkak"> <img src="https://badgen.net/bundlephobia/minzip/dalkak"></img> </a> </h1> Library for B...
import 'dart:convert'; import 'dart:math'; import 'package:fluent_reader_lite/models/service.dart'; import 'package:fluent_reader_lite/utils/global.dart'; import 'package:fluent_reader_lite/utils/store.dart'; import 'package:fluent_reader_lite/utils/utils.dart'; import 'package:html/parser.dart'; import 'package:tuple...
package business import ( "errors" "time" "github.com/opiumated/yellowpages/locations" "github.com/opiumated/yellowpages/mongo" "gopkg.in/mgo.v2/bson" ) type Business struct { ID bson.ObjectId `json:"id"` Name string `json:"name"` Address string ...
<?php /** * @file gebruiker_aanpassen.php * @author Dieter Verboven * View waarin de admin een gebruiker kan aanpassen * - toont een $persoon-object in een formulier * - systeem toont een foutmelding als de invoercontrole niet correct is. */ ?> <script> $(document).ready(function () { $(".b...
# God Wars 2 Library This is just my attempt at cataloging as much info about God Wars 2 as I can find or write. Feel free to fork and contribute!
//! ` ` // @<Check variable-size...@>= #[allow(unused_macros)] pub(crate) macro Check_variable_size_avail_list { ($globals:expr) => {{ /// current locations of interest in `mem` let (mut p, mut q) : (pointer, pointer); /// is something amiss? let mut clobbered: boolean; // p...
 using System.Text; namespace BasicHttpServer.HTTP { public class ResponseCookie : Cookie { public ResponseCookie(string name, string value) : base(name, value) { Path = "/"; } public int MaxAge { get; set; } public bool HttpOnly { get; set; } ...
--- layout: post title: "Rails 日志切割" date: 2013-09-15 23:48 comments: true categories: [Rails, Linux, Logorotate] --- 编辑日志切割配置 `/etc/logrotate.conf`, 新增 Rails 日志配置项 {% highlight ruby %} {{YOUR_APP_CURRENT_PATH}}/log/*.log { daily dateext missingok rotate 65535 delaycompress notifempty copytruncate } {...
package com.example.weather import android.os.Bundle import android.util.Log import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.Image import androidx.compose.foundation.layout.* import androidx.compose.material.* import androidx.compose.runtime.Com...
module HLearn.DataStructures.MonoidTree ( MonoidTree , getval , takeMT , dropMT ) where import HLearn.Algebra ------------------------------------------------------------------------------- -- data types data MonoidTree m = Node { val :: m, numdp' :: Int, left :: MonoidTree m, right :: Mo...