Skip to content

Instantly share code, notes, and snippets.

@krisrak
krisrak / picodash_export_geofence.py
Created Apr 23, 2017
Python script to find lat,lng within a geofence circle for csv posts exported from picodash.com
View picodash_export_geofence.py
#!/usr/bin/python
import sys
import csv
from math import sin, cos, sqrt, atan2, radians
try:
filename = sys.argv[1]
geofence = sys.argv[2]
lat = geofence.split(',')[0]
@krisrak
krisrak / picodash_export_biolocation.py
Last active Apr 26, 2017
Python script to find locations in bio and update followers csv exported from picodash.com
View picodash_export_biolocation.py
#!/usr/bin/python
import sys
import csv
import re
try:
filename = sys.argv[1]
except:
print "\nERROR: Please specify filename\n"
@krisrak
krisrak / picodash_export_bioemail.py
Last active Apr 23, 2017
Python script to find emails in bio and update followers csv exported from picodash.com
View picodash_export_bioemail.py
#!/usr/bin/python
import sys
import csv
import re
try:
filename = sys.argv[1]
except:
print "\nERROR: Please specify filename\n"
@krisrak
krisrak / picodash_export_url_download.py
Last active Sep 7, 2021
Python script to download urls in a csv file
View picodash_export_url_download.py
#!/usr/bin/python
import os
import sys
import urllib
import csv
try:
filename = sys.argv[1]
url_name = sys.argv[2]
@krisrak
krisrak / project-name.xdk
Created Apr 20, 2016
.xdk file template for Intel XDK project
View project-name.xdk
{
"project": {
"projectSettingsVersion": "3.0.0",
"creationData": {
"projectTypeName": "com.intel.xdk.projecttype.jsapp",
"projectGuid": "00000000-0000-0000-0000-000000000000",
"lastModifiedDate": 1451606400000,
"creationDate": 1451606400000
},
"XDK-app-designer": "false",
@krisrak
krisrak / gist:845eaf1de0cda6f185a5
Last active Aug 29, 2015
shopsy-twotap-custom.css
View gist:845eaf1de0cda6f185a5
.header-container {background: rgb(82, 162, 135);padding-top:20px}
#scroller {padding: 100px 10px 20px 10px !important;}
/*.amber-container {padding-top:0;}*/
#sidemenu_button_holder {display: none !important;}
.checkout-info .generic-info .new-link .img-holder .info-shipping-img {background: url(../images/shipping-info.png) left center no-repeat; width: 27px; height: 22px; background-size: 22px 18px;}
.checkout-info .generic-info .new-link .img-holder .info-payment-img {background: url(../images/credit-card.png) left center no-repeat; width: 27px; height: 22px; background-size: 22px 16px;}
.checkout-info .generic-info .new-link .img-holder .info-profile-img {background: url(../images/new-account.png) left center no-repeat; width: 27px; height: 22px; background-size: 22px 16px;}
@krisrak
krisrak / Sandbox.js
Created Apr 15, 2014
IntelXDK Sandbox Service for exploring any API and create data binding
View Sandbox.js
(function (credentials) {
var exports = {};
exports.get = function (params) {
var url = params.URL ;
return $.ajax({url: url});
};
exports.post = function (params) {
var url = params.URL ;
return $.ajax({url: url});
};