Skip to content

Instantly share code, notes, and snippets.

@lengpiseth
lengpiseth / Personal Statement Guidance
Last active July 3, 2022 10:33
អ៊ុក សុវណ្ណារ៉ា ៖ សិល្បៈក្នុងការសរសេរ Personal Statement សំរាប់ដាក់អាហារូបករណ៍
ការសរសេរ Personal Statement មិនពិបាកនោះទេ អ្នកណាក៏អាចសរសេរបានដែរ។ ប៉ុន្តែខ្ញុំទទួលស្គាល់ថា ការសរសេរ Personal Statement ដែលល្អ ទើបពិបាក។ ដោយសារតែវាលំបាកអញ្ចឹងហើយ ទើបមាននិស្សិតមួយចំនួនមានអារម្មណ៍មិនស្រណុកចិត្ត និងគ្មានទំនុកចិត្តលើខ្លួនឯងថានឹងអាចសរសេរបានល្អ។ អ្នកខ្លះទៀត គ្រាន់តែលឺថាអាហារូបករណ៍គេទាមទារឲ្យសរសេរ Personal Statement គឺខ្លាចលែងហ៊ានដាក់ពាក្យសុំអាហារូបករណ៍នោះតែម្តង។ តាមពិតទៅវាជារឿងល្អទៅវិញទេដែលការសរសេរ Personal Statement នោះលំបាក ព្រោះថាបើយើងលំបាក បេក្ខជនដទៃទៀតក៏លំបាកដូចគ្នា អញ្ចឹងបើយើងព្យាយាមធ្វើឲ្យបានល្អជាងគេទៅ យើងនឹងជោគជ័យបាត់ទៅហើយ។
បើទោះជាការសេសេរ Personal Statement ឲ្យបានល្អវាលំបាក តែមិនមែនមានន័យថាវាមិនអាចទៅរួចនោះទេ។ វាលំបាកក៏ព្រោះតែប្រហែលជាអ្នកមិនធ្លាប់បានដឹង ឬក៏យល់ពីវាប៉ុណ្ណោះ។ អ្វីក៏ដោយ វាមានក្បួនខ្នាត និងរបៀបរបបក្នុងការធ្វើរបស់វា។ ដូចគ្នាដែរ ដើម្បីសរសេរ Personal Statement ឲ្យបានល្អ មិនមែនចេះតែសរសេរប៉ាតណាប៉ាតណីនោះទេ ត្រូវយល់ពីបែបបទនៃការសរសេរ និងដឹងពីគ្រឿងផ្សំរបស់វា ដូចដែលពាក្យចាស់លោកពោលថា សម្លរឆ្ងាញ់ព្រោះគ្រឿង។ អាស្រ័យហេតុនេះ បើអ្នកដាក់ចិត្តថាដាក់អាហារូបករណ៍ហើយនោះ ត្រូវតែយល់ដឹងពីវា។
តើធាតុផ្សំ
@lengpiseth
lengpiseth / Contract Killer 3.md
Created July 25, 2016 13:17
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@lengpiseth
lengpiseth / pdf-thumbnail-php.md
Last active October 29, 2020 08:22 — forked from umidjons/pdf-thumbnail-php.md
Creating PDF thumbnails in PHP

Creating PDF thumbnails in PHP

Install Ghostscript

Download and install right version of ghostscript. In my case my PHP was x86 architecture, so I download Ghostscript 9.14 for Windows (32 bit).

Enable ImageMagick

@lengpiseth
lengpiseth / README.md
Last active August 29, 2015 14:26 — forked from astockwell/README.md
PHP Video Url Parser

Youtube/Vimeo Video Url Parser

Parses URLs from major cloud video providers. Capable of extracting keys from various video embed and link urls to manipulate and access videos in various ways.

Usage

VideoUrlParser::identify_service("https://www.youtube.com/watch?v=x_8kFbZf20I&feature=youtu.be");
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/query.php
*/
$args = array(
// homework 5.1
db.posts.aggregate([
{$project: {"_id": 0,
"comments.author": 1
}},
{$unwind: "$comments"},
{$group: {"_id": "$comments.author",
sum: {"$sum": 1}
}},
{$sort: {"sum": -1}},