Skip to content

Instantly share code, notes, and snippets.

View bestpika's full-sized avatar

観月唯 bestpika

  • やりたい事しかできない
View GitHub Profile
@bestpika
bestpika / Web.config
Last active June 25, 2018 07:45
IIS 7.x static content
<configuration>
<system.webServer>
<modules>
<remove name="FormsAuthentication" />
<remove name="RoleManager" />
<remove name="UrlAuthorization" />
<remove name="DefaultAuthentication" />
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
@bestpika
bestpika / 0.md
Last active March 28, 2018 09:17
CentOS 6, 7
@bestpika
bestpika / MarqueeTextView.java
Last active March 16, 2017 09:25
Android MarqueeTextView
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.TypedValue;
public class MarqueeTextView extends android.support.v7.widget.AppCompatTextView {
private Paint paint = null;
private float x = 0.0f;
private float y = 0.0f;
@bestpika
bestpika / LoginHack.md
Last active March 6, 2017 17:41
自製登入說明
@bestpika
bestpika / a.js
Last active February 3, 2017 06:47
在 ajax 送出 post 前加上 token #mvc #ajax
$.ajaxPrefilter((o) => {
if (o.type.toLowerCase() == 'post' && o.contentType.toLowerCase().includes('x-www-form-urlencoded')) {
var d = o.data.split('&'); // data
var i = $('input[name="__RequestVerificationToken"]:first'); // one
if (i.length > 0) {
var n = i.attr('name');
var v = encodeURIComponent(i.val());
var k = n + '=' + v;
d.push(k);
o.data = d.join('&');

交控平台


系統安裝

  • 燒錄映像檔
  • 修改 /config.txt
  • 安裝開機

@bestpika
bestpika / 7688.md
Last active September 29, 2016 01:45

MTK 7688 (DUO)

rootfs

$ opkg update
$ opkg install block-mount kmod-fs-ext4 kmod-usb-storage-extras e2fsprogs
$ mkfs.ext4 /dev/mmcblk0p1
@bestpika
bestpika / vscode.md
Last active September 24, 2016 14:09
$ npm install -g typings
$ typings install dt~node dt~express --global --save