Skip to content

Instantly share code, notes, and snippets.

@krisrak
krisrak / idc.md
Last active September 28, 2023 16:12
This document shows how to setup and access Intel Developer Cloud via SSH and JupyterLab
@krisrak
krisrak / picodash_export_geofence.py
Created April 23, 2017 20:56
Python script to find lat,lng within a geofence circle for csv posts exported from picodash.com
#!/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 April 26, 2017 01:45
Python script to find locations in bio and update followers csv exported from picodash.com
#!/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 April 23, 2017 20:54
Python script to find emails in bio and update followers csv exported from picodash.com
#!/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 September 14, 2023 20:44
Python script to download urls in a csv file
#!/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 April 20, 2016 19:00
.xdk file template for Intel XDK project
{
"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 August 29, 2015 14:06
shopsy-twotap-custom.css
.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 April 15, 2014 23:37
IntelXDK Sandbox Service for exploring any API and create data binding
(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});
};