Skip to content

Instantly share code, notes, and snippets.

View earlwlkr's full-sized avatar

earlwlkr earlwlkr

  • Ho Chi Minh City, Vietnam
View GitHub Profile
[2014/6/25 - 13:43:21] Canh Cao: Mi Various quang cao may chu: 'SAMP.GAMEPLAYVN.NET:7777'.
[2014/6/25 - 15:46:36] Canh Cao: Kenz Mauser quang cao may chu: 'gta-viet.net'.
[2014/6/25 - 15:46:46] Canh Cao: Kenz Mauser quang cao may chu: 'gta-viet.net'.
[2014/6/25 - 15:46:48] Canh Cao: Kenz Mauser quang cao may chu: 'gta-viet.net:777'.
[2014/6/25 - 15:46:51] Canh Cao: Kenz Mauser quang cao may chu: ' gta-viet.net:777'.
[2014/6/25 - 15:47:30] Canh Cao: Kenz Mauser quang cao may chu: '/newb gta-viet.net:7777 vao day choi ne'.
[2014/6/26 - 11:10:46] Canh Cao: TOP Sid quang cao may chu: '/newb Ae Qua Sever TOP Sid ung ho va Gangter free RF hot'' Ko fa'' member cho cac ban zui
[2014/6/26 - 14:55:18] Canh Cao: Hot Pursuit quang cao may chu: '/b GTAVN.ORG:7777'.
[2014/6/26 - 14:55:32] Canh Cao: Hot Pursuit quang cao may chu: '/b GTAVN.ORG:7777'.
[2014/6/26 - 14:55:44] Canh Cao: Hot Pursuit quang cao may chu: '/b GTAVN.ORG:7777'.
@earlwlkr
earlwlkr / rss-parser.py
Created January 29, 2015 10:45
Parse RSS content from VnExpress.net
# -*- coding: utf-8 -*-
# Python code to parse news content from VnExpress RSS Feeds.
import os
import re
from bs4 import BeautifulSoup # external lib
import requests # external lib
import feedparser # external lib
MAX_LINKS = 5
/*
Vehicle Shop Filterscript - By Mark
Commands:
- /vehshop: hien shop xe
Huong dan:
* Cai dat:
- Tai include mSelection
- Copy tu dong 25 den dong 47 bo vao gamemode chinh
#include <a_samp>
new words_blacklist[][24] = {
// Ghi nhung chu bi cam vao day.
"ditmeserver", "blabla"
};
public OnFilterScriptInit()
{
#include <a_samp>
#include <YSI\y_iterate>
#include <zcmd>
new bool: wearing_mask[MAX_PLAYERS char];
public OnPlayerConnect(playerid)
{
wearing_mask{playerid} = false;
return 1;
/************************************************************************/
/* Author: cqkhanh */
/* Date: 21/11/2014*/
/* Brief: Driver for UART*/
/* History Prepared/Updated by */
/* +21/11/2014: initial version cqkhanh */
/* +26/11/2014: update send and receive functions earlwlkr */
/************************************************************************/
/* Include */
@earlwlkr
earlwlkr / main.c
Last active August 29, 2015 14:10
UART-LED main app
#include <stdint.h>
#include "led.h"
#include "uart.h"
uart_err_t send_message(const uint8_t msg[], uint32_t msg_length);
void blink_led(led_colour_t colour);
void halt(void);
int main()
{
@earlwlkr
earlwlkr / uart.c
Created November 27, 2014 08:30
UART driver
/************************************************************************/
/* Author: cqkhanh */
/* Date: 21/11/2014*/
/* Brief: Driver for UART*/
/* History Prepared/Updated by */
/* +21/11/2014: initial version cqkhanh */
/* +26/11/2014: update send and receive functions earlwlkr */
/************************************************************************/
/* Include */
#include <sstream>
#include <iostream>
#include <algorithm>
#include <vector>
#include "ClientInfo.h"
#include "IntervalScaledAttribute.h"
#include "BinaryAttribute.h"
#include "CategoricalAttribute.h"
// By Earl Walker - 1212156
#include <iostream>
#include <vector>
#include <string>
#include <locale>
using namespace std;
//#define MANUALLY_INPUT