Skip to content

Instantly share code, notes, and snippets.

Avatar

Seiya Konno nulltask

View GitHub Profile
View fontplus.js
/*
* Copyright (c) SOFTBANK TECHNOLOGY CORP. All rights reserved.
*
* @project: FONTPLUS
* @version: 1.0
* @see: allowed to refer
* 1. openjs(http://www.openjs.com/)
* Copyright (c) 2006-2007, Binny V Abraham
*
* 2. vxjs(http://code.google.com/p/vxjs/)
View gist:1ce68d6468e794bbb9646350d4163a41
ffmpeg -i input.m4v -s 1024x512 -f mp4 -vcodec libx264 -preset ultrafast -an -movflags faststart output.m4v
View gist:04eaa5509e3d3263028eb3c6bf6707b5
ffmpeg -i full.m4v -vcodec copy -map 0 -bsf h264_mp4toannexb -f segment -segment_format mpegts -segment_time 10 -segment_list index.m3u8 fragment_%03d.ts
View gist:ca0269c0db3d5777a661198573fb3246
shell@SGP611:/ $ ls -laF /system/fonts/
-rw-r--r-- root root 419124 2015-09-17 22:00 .SST-Condensed.ttf
-rw-r--r-- root root 397184 2015-09-17 22:00 .SST-CondensedBd.ttf
-rw-r--r-- root root 520600 2015-09-17 22:00 .SST-Heavy.ttf
-rw-r--r-- root root 389188 2015-09-17 22:00 .SST-HeavyItalic.ttf
-rw-r--r-- root root 545100 2015-09-17 22:00 .SST-Light.ttf
-rw-r--r-- root root 453948 2015-09-17 22:00 .SST-LightItalic.ttf
-rw-r--r-- root root 499956 2015-09-17 22:00 .SST-Medium.ttf
-rw-r--r-- root root 376096 2015-09-17 22:00 .SST-MediumItalic.ttf
-rw-r--r-- root root 418308 2015-09-17 22:00 .SST-UltraLight.ttf
View fonts.xml
<font weight="100" style="normal">.SST-UltraLight.ttf</font>
<font weight="100" style="italic">.SST-UltraLightItalic.ttf</font>
<font weight="300" style="normal">.SST-Light.ttf</font>
<font weight="300" style="italic">.SST-LightItalic.ttf</font>
<font weight="400" style="normal">.SSTVietnamese-Roman.ttf</font>
<font weight="700" style="normal">.SSTVietnamese-Bold.ttf</font>
<font weight="500" style="normal">.SST-Medium.ttf</font>
<font weight="500" style="italic">.SST-MediumItalic.ttf</font>
<font weight="900" style="normal">.SST-Heavy.ttf</font>
<font weight="900" style="italic">.SST-HeavyItalic.ttf</font>
View index.js
const SunCalc = require('suncalc');
const moment = require('moment-timezone');
const dates = ['2016-03-20', '2016-06-21', '2016-09-22', '2016-12-21'];
dates.forEach((target) => {
console.log('==========')
for (let h = 0; h < 24; h++) {
for (let m = 0; m < 60; m++) {
View index.js
const SunCalc = require('suncalc');
const moment = require('moment-timezone');
for (let h = 0; h < 24; h++) {
for (let m = 0; m < 60; m++) {
const date = new Date(`2017-01-18 ${h}:${m}:00`);
console.log(moment(date).tz('Asia/Tokyo').format(), SunCalc.getPosition(date, 34.649394, 135.001478).altitude);
}
}
View app.js
const Koa = require('koa');
const Router = require('koa-router');
const app = new Koa();
const router = new Router();
app.use(async (ctx, next) => {
const { request, response } = ctx;
const now = Date.now();
View chart.js.patch
1c1
< /*!
---
> /*
952c952
<
---
>
957c957
<
@nulltask
nulltask / app.js
Last active Feb 25, 2016
Draggable landmark editor for Google Maps
View app.js
var canvas = document.getElementById('map');
var center = new google.maps.LatLng(35.792621, 139.806513);
var options = {
zoom: 5,
center: center
};
var map = new google.maps.Map(canvas, options);
You can’t perform that action at this time.