[转]纯CSS 实现radio checkbox样式美化
.demo--label{margin:20px 20px 0 0;display:inline-block}.demo--radio{display:none}.demo--radioInput{background-color:#fff;border:1px solid rgba(0,0,0,0.15);border-radius:100%;display:inline-block;height:16px;margin-right:10px;margin-top:-1px;vertical-align:middle;width:16px;line-height:1}.demo--radio:checked + .demo--radioInput:after{background-color:#57ad68;border-radius:100%;content:"";display:inline-block;height:12px;margin:2px;width:12px}.demo--checkbox.demo--radio...
常见文件文件头
1、从Ultra-edit-32中提取出来的附件:文件格式分析器JPEG (jpg),文件头:FFD8FFPNG (png),文件头:89504E47GIF (gif),文件头:47494638TIFF (tif),文件头:49492A00Windows Bitmap (bmp),文件头:424DCAD (dwg),文件头:41433130Adobe Photoshop (psd),文件头:38425053Rich Text Format (rtf),文件头:7B5C727466XML (xml),文件头:3C3F786D6CHTML (html),文件头:68746D6C3EEmail [thorough only] (eml),文件头:44656C69766572792D646174653AOutlook Express (dbx),文件头:CFAD12FE...
js验证图片真实格式(针对手动修改后缀名)
js验证图片真实格式(针对手动修改后缀名) <input type="file" id="file" onchange="handleFiles(this.files)"/> <script>function handleFiles(files) { if (files.length) { var file = files[0]; console.log(file.name); console.log(getFileExt(file)); }}function getFileExt(file){ var index = file.name.lastIndexOf('.'); var fileExt = file.name.substring(index+1); return fi...
MySQL Connector/Net for .net 4.0 驱动包
MySQL Connector/Net for .net 4.0 驱动包http://mysql-connector-net-6.8.7.msi 附使用方法:using PW.Common;using PW.Model;using System;using System.Collections;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.Common;using System.Linq;using System.Text; namespace PW.Db{ /// <summary> /// 数据访问基础类 /// </summary> public class Sql { protected static string connect...
salesforce开发利器:metaforce下载
谷歌app下载地址:https://chrome.google.com/webstore/detail/metaforce/hhnkaakhlhngcdckdiogpkjihnmgodep本地下载:Metaforce 3.1.2.5_0 (本人从谷歌下载后,上传到了自己的博客供大家下载)先看下效果图:
salesforce rest api test class
上一篇文章(salesforce rest api demo)我们写到salesforce如何写rest api,这篇我们将写如何写test class@isTest(SeeAllData=true)public class Api_user_profileTest{ static testMethod void Api_user_profileTest() { system.debug('start...'); Test.startTest(); String ReturnCode = ''; RestContext.request = new RestRequest(); RestContext.response = new RestResponse(); RestContext.request.requestURI = '/services/apexrest/user/p...
salesforce rest api demo
////api getPersonBasicInformation//by bruce he@RestResource(urlMapping='/user/profile/*') global with sharing class Api_user_profile{ @HttpGet global static void getPersonBasicInformation() { RestResponse res = RestContext.response; res.addHeader('Content-Type', 'application/json'); //return result obj PersonBasicInformation model = new PersonBasicInformation(); try{ ...
C#/.NET请求salesforce restful api示例
先在salesforce里写一个restful api:@RestResource(urlMapping='/user/*') global with sharing class Api_user_profile{ @HttpGet global static String getPersonBasicInformation() { List<Account> accList = DataBase.query('SELECT id,name FROM Account limit ' + Integer.valueOf(Math.floor(Math.random() * 10 + 1))); return JSON.serialize(accList); }}再在c#/.net里调用salesforce restful api:using System;using System.Collec...
quartz.net demo
TaskJobDemo public class TimeJob : IJob { public void Execute(IJobExecutionContext context) { //向c:\Quartz.txt写入当前时间并换行 System.IO.File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "Quartz.txt", DateTime.Now + Environment.NewLine); } } class Program { static void Main(string[] args) { //1、创建一个调度器 var factory = new StdSchedu...
区块链实现简易比特币C#.NET版
using System.Collections; using System; using static System.Console; //简易区块链 namespace test { //区块 public class Block { //基本属性:上一个区块的Hash值,交易信息,Nonce变量,当前区块的Hash private int previousBlockHashCode; private string transactionInfo; private string nonce; private int blockHashCode; //构造函数 public Block() { ...
