Skip to content

Instantly share code, notes, and snippets.

View halink0803's full-sized avatar
🇻🇳
Busy running

Ha Link halink0803

🇻🇳
Busy running
View GitHub Profile
@halink0803
halink0803 / LearnPress Assignment.md
Last active March 16, 2018 18:34
[Outdated] LearnPress Assignment is an add-on which provide the assignment post type with its features to LearnPress LMS plugins.

###What is an Assignment?
Assignment is another type of quiz for testing student progress or underdstanding of a course. However, assignment is bigger, reuquire longer time and more effort to complete. As being define as above, assignment in LearnPress is a post which giving a task for student to complete, allow student to upload their files, then teacher can download these file, check and give student score.

###How to use Assignment in LearnPress?
In LearnPress, assignment is an add-on, if you want to use assignment feature, you have to install "LearnPress Assignment Add-on".
Assignment in menu

After install Assignment Add-on, you can see "Assignment" menu along with "Lesson" and "Quiz".
Just like quiz and lesson, there are two ways to create an assignment in LearnPress: "Quick add assignment" and "Add assignment"

###Introduction


LearnPress was made totally translatable. The language file of LearnPress - **learnpress.pot** is put in **learnpress/lang/** folder, there are many ways for you to translate this file that works. In this tutorial, I will introduce 2 popular methods - using Loco plugin and Poedit.

But first, in order to change WordPress language, you change the Site Language in the Settings > General in WordPress dashboard. WordPress Language Set Up

###Translate LearnPress using Loco plugin


First, you have install Loco plugin. After installing Loco Plugin, in the Manage Translation, you can see LearnPress are listed with available languages files. If you do not find your language, click to **add language** to add your new translation.
@halink0803
halink0803 / README
Last active August 29, 2015 04:04 — forked from adilapapaya/README
Export Table Data to CSV using Javascript
Example code for exporting data in a table to a csv file.
@halink0803
halink0803 / LearnPress Course Gradebook.md
Last active December 20, 2016 04:55
LearnPress Course Gradebook

###Introduction
LearnPress Course Gradebook provide you features to view your class result, export these result to csv, post those to frontend.

###Usage Access course gradebook from your course list in WordPress dashboard

Course gradebook access

In the course gradebook, you can see a table of result including your list of student, quiz (assignment) and their result in each quiz.

@halink0803
halink0803 / gist:ea38445fd826a8c927f2
Created February 20, 2016 03:52 — forked from kitek/gist:1579117
NodeJS create md5 hash from string
var data = "do shash'owania";
var crypto = require('crypto');
crypto.createHash('md5').update(data).digest("hex");
{ "keys": ["g", "t"], "command": "next_view",
"context":
[
{ "key": "setting.command_mode", "operand": true },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["g", "r"], "command": "prev_view",
"context":
@halink0803
halink0803 / keyrepeat.shell
Created April 4, 2016 02:32 — forked from kconragan/keyrepeat.shell
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
@halink0803
halink0803 / Sublime packages.md
Last active February 22, 2017 03:47
Sublime packages to install

##Sublime packages to install

  1. Advanced New File
  2. Markdown editing
  3. Monokai Extended
  4. Bracket Highlighter
  5. ApacheConf.tmLanguage
  6. Color Highlighter
  7. CSS Extened Completions
  8. DocBlockr

"""js echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Host name
Hostname 192.168.0.1
User ha-dev
Password ******
Host name
Hostname 192.168.x.x
User ubuntu
IdentityFile /link/to/keyfile