This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "strconv" | |
import "fmt" | |
type Color string | |
type Make string | |
type Model string | |
const ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import logging | |
logger = logging.getLogger(__name__) | |
import time | |
import six | |
from twisted.internet import defer, threads | |
from scrapy.pipelines.files import FSFilesStore, S3FilesStore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.newcoresys.utils; | |
/** | |
* 随即数生成器 | |
* @author huminjie | |
* | |
*/ | |
public class RandomUtil { | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.newcoresys.utils; | |
import java.security.InvalidKeyException; | |
import java.security.Key; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandaom; | |
import java.security.spec.InvalidKeySpecException; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKey; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
package com.newcoresys.utils; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.newcoresys.utils; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* @Description: 字符串处理工具类 | |
* @author: joeymac | |
*/ | |
public class StringEx { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var router = express.Router(); | |
var Task = require('../models/task'); | |
var Auditlog = require('../models/auditlog'); | |
var User = require('../models/user'); | |
var auditprivileges = require('../common').audits; | |
var _ = require('underscore'); | |
var mongoose = require('../common').mongoose; |