Skip to content

Instantly share code, notes, and snippets.

View channely's full-sized avatar
♠️
7

蝉闹外 channely

♠️
7
View GitHub Profile
#!/bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
/**
* Typing animation with pure CSS.
* Works best in browsers supporting the ch unit.
*/
@keyframes typing { from { width: 0; } }
@keyframes blink-caret { 50% { border-color: transparent; } }
h1 {
font: bold 200% Consolas, Monaco, monospace;
@channely
channely / commands
Last active August 29, 2015 14:03
Dev : Cordova+Android+AngularJS
My Version
ubuntu 14.04/Linux-mint 15
git (now - 1.8.1.2)
nodejs (now - v0.10.25)
android-sdk (now - api 19,android 4.4)
This 3 steps only need to d once.
install Cordova (now - 3.5.0-0.2.4)
$ sudo npm install -g cordova

1.小步伐修改程序,每一小步的修改后,程序能正常运行,commit。

2.JS OOP (JavaScript高级程序设计,p 156~166;或 Javascript 权威指南 第8章后两节 和 第九章 前两节)

3.重构后,每个函数只做一件事,函数不超过十五行

4.函数名符合命名规范,见名知意

5.函数内圈复杂度在容易理解的前提下降至最低。

@channely
channely / Command of android's initialization
Created July 29, 2013 02:07
Use terminal to init an android project with keystore and test.
【路径清空】
~/projects/android $ rm -fr *
【创建工程文件夹】
~/projects/android $ mkdir demo01
~/projects/android $ cd demo01/
【创建源码路径】
~/projects/android/demo01 $ mkdir src
~/projects/android/demo01 $ cd src/
  1. 在3001服务器下包含“用户注册”、“登录”页面以及“welcome”页面
  2. “用户注册”页面包含用户名输入框,密码输入框和一个【register】按钮,密码输入框中的内容不明文显示
  3. “用户登录”页面包含用户名输入框,密码输入框和一个【login】按钮,密码输入框中的内容不明文显示
  4. “Welcome”页面显示成功注册/登录的用户的用户名,如:Welcome, Mike!

关于群策工具的开发

用到的工具(非必需)

Chrome && Chrome Plugins

@channely
channely / 1.配置LinuxMint系统的web开发环境--app.md
Last active January 2, 2016 11:29
已经有了一个ubuntu/mint版本的Linux系统? 按照本文档的说明操作之后 你心爱的系统将蜕变成一个强大的web/移动开发利器 提高生产力

·------------------------------------------------------系统以64bit为例进行配置--------------------------------------------------------·

							       32位和64位的机器均可安装64位的系统

·--------------------------------------------------------------·1.必备软件·-----------------------------------------------------------------·

####ibus <-----------------(软件管理器安装)

####ibus-pinyin <----------(软件管理器安装) 切换输入法快捷键:Alt+Shift

@channely
channely / angular_lesson_plan.md
Last active January 3, 2016 10:38
the sample plan for angular lessons during screencasting

AngularJS

tags : Web HTML5 JavaScript mvc

  • **AngularJS:**是一款专为web应用开发打造的开源JS框架,由Google创建并进行维护.
  • **jt-mobile-kit:**是一个gem包,也就是由Ruby代码编写的一款类似系统插件的功能包.它集成了Android,Ruby on Rails,AngularJS三种开发框架于一体,可以一步到位的初始化一个轻量级app+server结构的工程.
  • Other gem: Bundler, Rwebserver,
  • 主要语言:JavaScript.
@channely
channely / keybase.md
Created June 13, 2017 02:16
keybase.io Mac Client Usage require.

Keybase proof

I hereby claim:

  • I am channely on github.
  • I am plomk (https://keybase.io/plomk) on keybase.
  • I have a public key ASBiwTTNo8RApUxcvSBdFMP4PLuA0UBlfISK7YaPI7_kmwo

To claim this, I am signing this object: