最新资源分享
消息推送/消息队列
阿里云提供了免费的消息队列MQ,可以实现手机端的消息推送
地址:ons.console.aliyun.com/#/home/pub
文档见附件ons_sdk.zip
百度也有百度云推送,但是太复杂了,还包含so文件,不标准;
而阿里云的消息队列MQ 完全服务 HTTP MQ标准,几乎可以与activeMQ 无缝对接
centos 7下载
centos 7下载地址:http://mirror.centos.org/centos/7/isos/
IDEA最新版激活码/注册码
参考:http://hw1287789687.iteye.com/blog/2285320
天气预报接口
使用百度的天气预报接口
demo:
- var weather_baidu_url = 'http://api.map.baidu.com/telematics/v3/weather';
- var ak_baidu = 'qG49xeEochXpAp1WDVzD6wA7';
- var weather_query = function (self) {
- var $thisForm = com.whuang.hsj.getForm(self);
- var $city = $thisForm.find("input[type=text]");
- var cityVal = $city.val();
- if (!cityVal) {
- toast_hwShortCenter("请输入城市");
- $city.get(0).focus();
- return;
- }
- var weather_query_url = weather_baidu_url + '?location=' + cityVal + '&output=json&ak=' + ak_baidu;
- var $result_weather_panel = $('#result_weather_panel');
- $.jsonP({
- url: weather_query_url, success: function (data) {
- var htmlFragment = null;
- if (data && data.status == 'success') {
- var results = data.results[0];
- var currentDate = data.date;
- var weather_data = results.weather_data;
- var currentCity = results.currentCity;
- $result_weather_panel.find(('h1')).html(currentCity + '<span style="font-weight: normal;font-size: initial;" >(PM2.5: ' + results.pm25 + ')</span>');
- var $span_date = $result_weather_panel.find(('header span'));
- $span_date.html(currentDate);
- var html = [];
- var length = weather_data.length;
- html.push(getWeatherResultFirstItem(weather_data[0]));
- for (var i = 1; i < length; i++) {
- html.push(getWeatherResultListItem(weather_data[i]));
- }
- htmlFragment = html.join('');
- $.ui.loadContent('#result_weather_panel', false, false, 'slide');
- } else {
- toast_hwShortCenter('没有查询到天气信息');
- return;
- }
- $result_weather_panel.find("ul.list").html(htmlFragment);
- user.log('weather:'+cityVal);
- }
- });
- };
用于app html5页面
下面是新浪的天气预报接口
- window.onload = function () {
- var iframeHtml = '<iframe name="sinaWeatherTool"' +
- 'src="http://weather.news.sina.com.cn/chajian/iframe/weatherStyle0.html?city=监利"' +
- 'width="200" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0"' +
- 'frameborder="0" scrolling="no"></iframe>';
- $('.header').prepend(iframeHtml);
- };
用于PC端网站
社交分享接口
- <div>
- <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone"
- data-cmd="qzone"></a><a
- href="#" class="bds_tsina" data-cmd="tsina"></a><a href="#" class="bds_tqq" data-cmd="tqq"></a><a
- href="#" class="bds_renren" data-cmd="renren"></a><a href="#" class="bds_weixin" data-cmd="weixin"></a>
- </div>
- <script>window._bd_share_config = {
- "common": {
- "bdSnsKey": {},
- "bdText": "${fn:substring(news.splitAndFilterString,0,90) }...",
- "bdMini": "2",
- "bdPic": "${news.pic }",
- "bdStyle": "0",
- "bdSize": "16"
- },
- "share": {},
- "image": {"viewList": ["qzone", "tsina", "tqq", "renren", "weixin"], "viewText": "分享到:", "viewSize": "16"},
- "selectShare": {"bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren", "weixin"]}
- };
- with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
- </div>
线上案例:http://hbjltv.com/
安卓模拟器 for mac
http://androidemulatormac.com/
https://www.genymotion.com/download/
http://techapple.net/2014/05/3-best-Android-emulators-for-mac-os-macbook-run-and-install-android-app-on-your-mac-os-x-macbook-airpro/
推荐网站:
http://www.thecrazyprogrammer.com/