This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#usage : python soundclouddl.py <soundcloud url track/list> | |
import soundcloud | |
import urllib | |
import re | |
import time | |
import os | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#prevent ascii error | |
#place at the top of the file :D | |
import codecs | |
import sys | |
streamWriter = codecs.lookup('utf-8')[-1] | |
sys.stdout = streamWriter(sys.stdout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$apiKey = "api_key"; | |
$messageData = array( | |
"code" => 1001, | |
"subject" => "hai kak zam", | |
"messages" => "hai kak zam", | |
); | |
$registrationIdsArray = array("gcm_id"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import requests | |
import json | |
GCM_URL = "https://android.googleapis.com/gcm/send" | |
API_KEY = "your api key" | |
CLIENT_GCM = ["your device gcm_id"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = "https://android.googleapis.com/gcm/send"; | |
$api_key = "<api key>"; | |
$client_id = array("gcm_id"); | |
$headers = array( | |
"Content-type: application/json", | |
"Authorization: key=" . $api_key, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# how to use just create instance from this class, you can set client id or client secret from constructor | |
# Methods | |
# 1. get token get_token() //getting token key | |
# 2. check_token(token) // for checking tokon is valid or not | |
# 3. sending_sms(number, message, token, *args, **kwargs) //sending message => return message id | |
# 4. check_status_message(message_id, token, *args, **kwargs) //check status message | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# how to use just create instance from this class, you can set client id or client secret from constructor | |
# Methods | |
# 1. get token get_token() //getting token key | |
# 2. check_token(token) // for checking tokon is valid or not | |
# 3. sending_sms(number, message, token, *args, **kwargs) //sending message => return message id | |
# 4. check_status_message(message_id, token, *args, **kwargs) //check status message | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from wand.image import Image | |
#create class for get exif data from image | |
class ExifData: | |
key_exif = ['date:create', | |
'date:modify', | |
'exif:ApertureValue', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
stemmer porting from ivanlanin stemmer (php script) | |
https://github.com/ivanlanin/pengakar | |
''' | |
import sys | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import select, serial, threading | |
# Byte codes | |
CONNECT = '\xc0' | |
DISCONNECT = '\xc1' | |
AUTOCONNECT = '\xc2' | |
SYNC = '\xaa' | |
EXCODE = '\x55' | |
POOR_SIGNAL = '\x02' | |
ATTENTION = '\x04' |
OlderNewer