Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
// Copyright (c) 2022 8th Wall, Inc. /* globals AFRAME */ AFRAME.registerComponent('target-video', { schema: { name: {type: 'string'}, video: {type: 'string'}, }, init() { const {object3D} = this.el const {name} = this.data object3D.visible = false const v = document.querySelector(this.da...
8thwall/web/examples/aframe/alpha-video/target-video.js/0
{ "file_path": "8thwall/web/examples/aframe/alpha-video/target-video.js", "repo_id": "8thwall", "token_count": 416 }
0
// Copyright (c) 2021 8th Wall, Inc. /* globals AFRAME */ // This component hides and shows certain elements as the camera moves AFRAME.registerComponent('portal', { schema: { width: {default: 4}, height: {default: 6}, depth: {default: 1}, }, init() { this.camera = document.getElementById('camera...
8thwall/web/examples/aframe/portal/portal-components.js/0
{ "file_path": "8thwall/web/examples/aframe/portal/portal-components.js", "repo_id": "8thwall", "token_count": 1123 }
1
const reportWebVitals = (onPerfEntry) => { if (onPerfEntry && onPerfEntry instanceof Function) { import('web-vitals').then(({getCLS, getFID, getFCP, getLCP, getTTFB}) => { getCLS(onPerfEntry) getFID(onPerfEntry) getFCP(onPerfEntry) getLCP(onPerfEntry) getTTFB(onPerfEntry) }) } ...
8thwall/web/examples/aframe/reactapp/src/reportWebVitals.js/0
{ "file_path": "8thwall/web/examples/aframe/reactapp/src/reportWebVitals.js", "repo_id": "8thwall", "token_count": 164 }
2
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>8th Wall Web: babylon.js</title> <link rel="stylesheet" type="text/css" href="index.css"> <!-- Babylo...
8thwall/web/examples/babylonjs/placeground/index.html/0
{ "file_path": "8thwall/web/examples/babylonjs/placeground/index.html", "repo_id": "8thwall", "token_count": 466 }
3
/* Ported to JavaScript by Lazar Laszlo 2011 lazarsoft@gmail.com, www.lazarsoft.info */ /* * * Copyright 2007 ZXing authors * * 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 * * ...
8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/datablock.js/0
{ "file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/datablock.js", "repo_id": "8thwall", "token_count": 1196 }
4
<!doctype html> <html> <head> <title>8thWall Web: Simple Shaders</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <link rel="stylesheet" type="text/css" href="index.css"> <!-- XR Extras - provides utilities like load screen, almost there, and error hand...
8thwall/web/examples/camerapipeline/simpleshaders/index.html/0
{ "file_path": "8thwall/web/examples/camerapipeline/simpleshaders/index.html", "repo_id": "8thwall", "token_count": 310 }
5
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>8th Wall Web: babylon.js</title> <link rel="stylesheet" type="text/css" href="index.css"> <!-- Babylo...
8thwall/web/gettingstarted/babylonjs/index.html/0
{ "file_path": "8thwall/web/gettingstarted/babylonjs/index.html", "repo_id": "8thwall", "token_count": 485 }
6
/* globals AFRAME, XRExtras, XR8 */ import {xrComponents} from './xr-components' import {xrPrimitives} from './xr-primitives' import {ensureXrAndExtras} from './ensure' let xrextrasAframe = null const onxrloaded = () => { XR8.addCameraPipelineModule(XRExtras.Loading.pipelineModule()) } // We want to start showing t...
8thwall/web/xrextras/src/aframe/aframe.js/0
{ "file_path": "8thwall/web/xrextras/src/aframe/aframe.js", "repo_id": "8thwall", "token_count": 2343 }
7
* { font-family: inherit; box-sizing: inherit; } .absolute-fill { position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .hidden { display: none !important; } .error-text-outer-container { display: flex; align-items: center; justify-content: center; } .error-text-container { flex: 0 0 a...
8thwall/web/xrextras/src/common.css/0
{ "file_path": "8thwall/web/xrextras/src/common.css", "repo_id": "8thwall", "token_count": 723 }
8
<div id="recorder" class="recorder-container"> <svg viewBox="0 0 38 38" class="progress-container"> <circle class="progress-track" r="16" cx="19" cy="19"></circle> <circle id="progressBar" class="progress-bar" r="16" cx="19" cy="19"></circle> <circle class="loading-circle" r="16" cx="19" cy="19"></circle>...
8thwall/web/xrextras/src/mediarecorder/record-button.html/0
{ "file_path": "8thwall/web/xrextras/src/mediarecorder/record-button.html", "repo_id": "8thwall", "token_count": 171 }
9
const STATS_URL = 'https://cdn.8thwall.com/web/aframe/stats.16.min.js' let statsModule = null const loadJsPromise = url => new Promise((resolve, reject) => ( document.head.appendChild( Object.assign( document.createElement('script'), {async: true, onload: resolve, onError: reject, src: url} ) )...
8thwall/web/xrextras/src/statsmodule/stats.js/0
{ "file_path": "8thwall/web/xrextras/src/statsmodule/stats.js", "repo_id": "8thwall", "token_count": 557 }
10
## 一、颜色模式 颜色模式有两种: - RGBA `rgba(0,0,0,0.5); //黑色,透明度0.5` - HSLA(颜色(0~360),饱和度(0%~100%),明度(0%~100%),透明度(0~1)) **红橙黄绿青蓝紫红**:颜色从 0~360 顺序,各占30度。比如红色为0,黄色为120,绿色为240。 `HSLA(0, 100%, 50%, 1); // 红色不透明,饱和度100%,亮度50%` 明度默认是50%,一般建议保留50的值,如果加到100后,变成白色,降到0后为黑色。 > 注意: > > 1、RGBA和HSLA中的透明度**不会影响子元素的透明度,不具继承性;** >...
Daotin/Web/02-CSS/02-CSS3/02-颜色模式,文字阴影,盒模型,边框圆角,边框阴影.md/0
{ "file_path": "Daotin/Web/02-CSS/02-CSS3/02-颜色模式,文字阴影,盒模型,边框圆角,边框阴影.md", "repo_id": "Daotin", "token_count": 3831 }
11
## 1、函数的定义 ```javascript // 第一种:声明式函数------------------------------- function fn1(){ console.log("我是第一种定义方法!"); } // 第二种:赋值式函数------------------------------------ var fn2 = function (){ console.log("我是第二种定义方法!"); }; // 注意分号 // 使用方式1: fn2(); // 使用方式2:函数的自调用 (function (a,b){   console.log("我是第二种定义方法!" + a+b)...
Daotin/Web/03-JavaScript/01-JavaScript基础知识/04-函数.md/0
{ "file_path": "Daotin/Web/03-JavaScript/01-JavaScript基础知识/04-函数.md", "repo_id": "Daotin", "token_count": 7365 }
12
打飞机小案例 玩法:键盘上下左右方向键控制飞机的移动,子弹打到敌机,敌机消失,计分板显示消灭敌机数量。 代码如下: ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> ...
Daotin/Web/03-JavaScript/02-DOM/案例04:打飞机.md/0
{ "file_path": "Daotin/Web/03-JavaScript/02-DOM/案例04:打飞机.md", "repo_id": "Daotin", "token_count": 4668 }
13
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .map { width: 800px; height: 600px; background-color: #ccc; position: relative; } </style> </head> <body> <div class="map"></div> <script src="comm...
Daotin/Web/03-JavaScript/04-JavaScript高级知识/案例源码/贪吃蛇/index.html/0
{ "file_path": "Daotin/Web/03-JavaScript/04-JavaScript高级知识/案例源码/贪吃蛇/index.html", "repo_id": "Daotin", "token_count": 5407 }
14
前提:我们在mysql创建了一个数据库: mydb. mydb 里面有个数据表 mytable。 mytable 中的数据为: | id | name | age | | ---- | ------ | ---- | | 1 | daotin | 18 | | 2 | lvonve | 19 | | 3 | li | 20 | PHP代码连接数据库mydb: ```php <?php @header("content-type:text/html;charset=utf8"); mysql_connect("localhost:3306", "root", "root"...
Daotin/Web/05-PHP&数据库/04-PHP连接mysql数据库.md/0
{ "file_path": "Daotin/Web/05-PHP&数据库/04-PHP连接mysql数据库.md", "repo_id": "Daotin", "token_count": 3243 }
15
// Stacked Icons // ------------------------- .@{fa-css-prefix}-stack { position: relative; display: inline-block; width: 2em; height: 2em; line-height: 2em; vertical-align: middle; } .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x { position: absolute; left: 0; width: 100%; text-align: cent...
Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/less/stacked.less/0
{ "file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/less/stacked.less", "repo_id": "Daotin", "token_count": 201 }
16
## 一、let **作用:与var类似, 用于声明一个变量。** **let和var的区别:** - 在块作用域内有效(只要有{}出现 则只在该{}范围内生效) - 不能重复声明 - 不会预处理, 不存在提升 ```html <script type="text/javascript"> console.log(res); //不会预处理, 不存在提升,报错 // 不能重复声明 let res = 10; let res = 10; // 报错 </script> ``` **应用:循环遍历加监听** 我们先开看一个例子: ```html <body> ...
Daotin/Web/08-ES6语法/03-let,const,解构赋值,模板字符串,对象简化,箭头函数,三点运算符,形参默认值.md/0
{ "file_path": "Daotin/Web/08-ES6语法/03-let,const,解构赋值,模板字符串,对象简化,箭头函数,三点运算符,形参默认值.md", "repo_id": "Daotin", "token_count": 4733 }
17
## async模块介绍 *Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with Node.js and installable via npm install --save async, it can also be used directly in the browser.* async是一个实用的模块,对于处理异步javascript来说,它可以提供简介强大...
Daotin/Web/10-Node.js/06-扩展async.md/0
{ "file_path": "Daotin/Web/10-Node.js/06-扩展async.md", "repo_id": "Daotin", "token_count": 2056 }
18
## 一、flux架构 什么是flux? 简单说,Flux 是一种架构思想,专门解决软件的结构问题。 一般**中大型react项目**会用到 Flux,便于管理数据模型。小型项目就没必要使用了。 ### 1、基本概念 首先,Flux将一个应用分成四个部分。 - **View**: 视图层 - **Action**(动作):视图层发出的消息,用来修改数据模型(比如mouseClick) - **Dispatcher**(派发器):用来接收Actions、执行回调函数 - **Store**(数据层):用来存放应用的状态,一旦发生变动,就提醒Views要更新页面 ![](./img/3.png) > Flux...
Daotin/Web/13-React/05-Flux架构.md/0
{ "file_path": "Daotin/Web/13-React/05-Flux架构.md", "repo_id": "Daotin", "token_count": 8268 }
19
## 一、接口 js中类的接口定义: ```typescript interface Human { run(); eat(); } ``` > 接口的方法没有方法体。 > > 实现接口的类,必须实现接口中的所有方法。 ## 二、依赖注入(服务) 依赖注入就是自己创建一个服务(服务的本质就是一个类),然后在使用类的时候,不需要自己new类的实例,只需要按照特定的方式注入,类的实例就会被自动创建,然后直接使用即可。 ### 1、创建服务 ```js ng g service services/DIYMath // ng g s services/DIYMath ``` 创建的时候会有个警告`W...
Daotin/Web/14-Angular/04-接口,依赖注入,http代理.md/0
{ "file_path": "Daotin/Web/14-Angular/04-接口,依赖注入,http代理.md", "repo_id": "Daotin", "token_count": 2171 }
20
Manifest-Version: 1.0 Class-Path:
Humsen/web/web-core/src/META-INF/MANIFEST.MF/0
{ "file_path": "Humsen/web/web-core/src/META-INF/MANIFEST.MF", "repo_id": "Humsen", "token_count": 15 }
21
package pers.husen.web.common.constants; /** * 数据库字段常量 * * @author 何明胜 * * 2017年11月8日 */ public class DbConstans { /** 数据库字段有效状态 */ public static final int FIELD_VALID_FLAG = 0; /** 数据库字段删除状态 */ public static final int FIELD_DELETED_FLAG = 1; }
Humsen/web/web-core/src/pers/husen/web/common/constants/DbConstans.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/common/constants/DbConstans.java", "repo_id": "Humsen", "token_count": 159 }
22
/** * 通用助手 * * @author 何明胜 * * 2017年10月21日 */ package pers.husen.web.common.helper;
Humsen/web/web-core/src/pers/husen/web/common/helper/package-info.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/common/helper/package-info.java", "repo_id": "Humsen", "token_count": 54 }
23
package pers.husen.web.dao; /** * @author 何明胜 * * 2017年9月30日 */ public interface VisitTotalDao { /** * 查询所有访问量 * @return */ public int queryVisitTotal(); /** * 查询当日访问量 * @return */ public int queryVisitToday(); /** * 更新当日访问量和总访问量 * * @param visitDate * @return */ public int update...
Humsen/web/web-core/src/pers/husen/web/dao/VisitTotalDao.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/dao/VisitTotalDao.java", "repo_id": "Humsen", "token_count": 192 }
24
package pers.husen.web.dbutil.mappingdb; /** * @author 何明胜 * @desc 文章分类数据库映射 * @created 2017年12月12日 上午10:14:34 */ public class ArticleCategoryMapping { /** * 数据库名称 */ public static final String DB_NAME = "article_category"; public static final String CATEGORY_ID = "category_id"; public s...
Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/ArticleCategoryMapping.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/ArticleCategoryMapping.java", "repo_id": "Humsen", "token_count": 217 }
25
package pers.husen.web.service; import java.util.ArrayList; import pers.husen.web.bean.vo.MessageAreaVo; import pers.husen.web.dao.MessageAreaDao; import pers.husen.web.dao.impl.MessageAreaDaoImpl; /** * @author 何明胜 * * 2017年9月25日 */ public class MessageAreaSvc implements MessageAreaDao{ private static final Me...
Humsen/web/web-core/src/pers/husen/web/service/MessageAreaSvc.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/service/MessageAreaSvc.java", "repo_id": "Humsen", "token_count": 231 }
26
package pers.husen.web.servlet.image; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import pers.husen.web.common.handler....
Humsen/web/web-core/src/pers/husen/web/servlet/image/ImageDownloadSvt.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/image/ImageDownloadSvt.java", "repo_id": "Humsen", "token_count": 357 }
27
# web 个人网站项目,包括博客、代码库、文件下载、留言、登录注册等功能 网址:www.hemingsheng.cn ------------ ## 主要文件结构如下 - `WebContent` -> 前端源文件 (前端三方插件在`/WebContent/plugins`下) - `config` -> 配置文件 - `docs` -> 说明文档 - `libs` -> 后端jar包 - `src` -> 后端源文件 ------------ ### web工程目录结构如下: web: │ .classpath │ .gitattributes │ .gitignor...
Humsen/web/web-mobile/README.md/0
{ "file_path": "Humsen/web/web-mobile/README.md", "repo_id": "Humsen", "token_count": 10856 }
28
@charset "UTF-8"; .topbar-nav { min-height: 30px; width: 100%; margin-bottom: 0; } .topbar-nav label { color: #6e83ab; } .navbar-brand-a { padding: 5px 15px 1px; height: 30px; } .access-today { margin-left: 5% !important; } .online-current { margin-top: 4px; margin-left: 20px; } .topbar-btn-login { padd...
Humsen/web/web-mobile/WebContent/css/navigation/topbar.css/0
{ "file_path": "Humsen/web/web-mobile/WebContent/css/navigation/topbar.css", "repo_id": "Humsen", "token_count": 426 }
29
/** * jQuery MD5 hash algorithm function * * <code> * Calculate the md5 hash of a String * String $.md5 ( String str ) * </code> * * Calculates the MD5 hash of str using the » RSA Data Security, Inc. MD5 * Message-Digest Algorithm, and returns that hash. MD5 (Message-Digest * algorithm 5) is a widely-...
Humsen/web/web-mobile/WebContent/js/customize-jquery.md5.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/js/customize-jquery.md5.js", "repo_id": "Humsen", "token_count": 4688 }
30
/** * 编辑版本特性 * * @author 何明胜 * * 2017年11月10日 */ // 当前最新版本id var latest_version_id; // 当前编辑版本id var curr_version_id; //当前版本号 var curr_version_num; $(function() { // 获取当前最新版本 getLatestVersion(); // 绑定加载上一个版本事件 $('#btn_prevV').click(prevVersionClick); // 绑定加载下一个版本事件 $('#btn_nextV').click(nextVersionClick...
Humsen/web/web-mobile/WebContent/js/personal_center/editor_version.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/js/personal_center/editor_version.js", "repo_id": "Humsen", "token_count": 2845 }
31
<link rel="stylesheet" href="/css/personal_center/modify-pwd.css"> <!-- 修改用户密码脚本 --> <script src="/js/personal_center/modify-pwd.js"></script> <form id="modifyPwdForm" class="form-horizontal modify-pwd-form"> <div class="form-group"> <label for="oldPassword" class="col-sm-2 control-label">旧密码</label> <div class=...
Humsen/web/web-mobile/WebContent/personal_center/modify_pwd.html/0
{ "file_path": "Humsen/web/web-mobile/WebContent/personal_center/modify_pwd.html", "repo_id": "Humsen", "token_count": 586 }
32
/* * Editor.md * * @file editormd.logo.css * @version v1.5.0 * @description Open source online markdown editor. * @license MIT License * @author Pandao * {@link https://github.com/pandao/editor.md} * @updateTime 2015-06-09 */ /*! prefixes.scss v0.1.0 | Author: Pandao | https://gi...
Humsen/web/web-mobile/WebContent/plugins/editormd/css/editormd.logo.css/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/css/editormd.logo.css", "repo_id": "Humsen", "token_count": 1011 }
33
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3