Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

question Yang03

🎯
Focusing
Block or report user

Report or block Yang03

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
#marquee {
height:120px;
overflow:hidden;
View redux.js
const log = (store) => (next) => (action) {
console.log('start')
next(action)
console.log('end')
}
function applayMiddleware (...middlewares) {
return (createStore) {
return (reducer, preloadedState,enhancer){
View 1.scss
$pi: 3.14159265359;
$_precision: 10;
@function pow($base, $exp) {
$value: $base;
@if $exp > 1 {
@for $i from 2 through $exp {
$value: $value * $base;
}
}
View 1.scss
<div class="ellips">
<div class="dot"></div>
</div>
$pi: 3.14159265359;
$_precision: 10;
@function pow($base, $exp) {
View gist:14ceedd9dcd93ca81d749b207b2826e5
{"type":"FeatureCollection","features":[{"id":"710000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[120.005817,23.469568],[120.060116,23.545228],[120.005817,23.469568]]],[[[120.443536,22.441261],[120.274291,22.560197],[120.200415,22.721097],[120.132976,23.000352],[120.022152,23.06007],[120.107847,23.341264],[120.121753,23.504658],[120.096239,23.570106],[120.102762,23.70097],[120.175354,23.807398],[120.255474,23.851801],[120.278257,23.927783],[120.451468,24.182705],[120.546295,24.370432],[120.642772,24.49016],[120.688678,24.600694],[120.881267,24.745821],[120.908484,24.851995],[121.024684,25.040488],[121.209299,25.127094],[121.371868,25.159867],[121.413467,25.238928],[121.485729,25.292878],[121.602414,25.304355],[121.745253,25.161944],[121.928777,25.130097],[121.941769,25.038471],[122.012201,25.001451],[121.845043,24.836255],[121.84152,24.734083],[121.892504,24.617927],[121.885457,24.529684],[121.826735,24.423573],[121.809157,24.339072],[121.638554,24.08434],[121.65937,24.006899],[121.4
View gist:2943166d743a057b38ab5b65e4cb778e
import Vue from 'vue'
import App from './app'
new Vue({
el: '#app',
render: h => h(App, {
props: {
message: '小程序2'
}
View gist:763b81fd6a8da38e20d0587c18127715
...mapGetters({
x1: 'widgets/x1'
}),
...mapState('widgets', ['xx'])
state = {
xx: 0
}
View gist:646764d1dd7bda1292318c177ccbdf7d
<template>
<section class="bx-muti-img-bar">
<div class="slide-items" :style="style">
<div class="slide-item" v-for="(slide, index) in value.slides"
:key="index"
:style="[slideStyle[index], getStyle(index)]"
>
<img :src="slide['image']">
</div>
</div>
View sha1.js
function passwordDigest(str, password) {
// digest = base64 ( sha1 ( nonce + created + password ) )
var pwHash = crypto.createHash('sha1');
// var rawNonce = new Buffer(nonce || '', 'base64').toString('binary');
var s = str.concat(shaPwd(password));
pwHash.update(s);
var str = new Buffer(pwHash.digest()).toString('base64');
console.log(str);
return str;
};
View gist:2ff8e0ad7942992ec2e7e8b22df1af8d
!function(){
var IS_IOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
var IS_ANDROID = /android/i.test(navigator.userAgent);
var IS_TOUCH = createjs.Touch.isSupported();
var SCREEN_SHOW_ALL = true;
var width = 640;
var height = 1000;
var stage, queue;
var isMove = 0; //qp_o
var score = 0;
You can’t perform that action at this time.