Skip to content

Instantly share code, notes, and snippets.

Avatar
💫

Dmitiry Zub☀️ dimitryzub

💫
View GitHub Profile
@sthobis
sthobis / google-translate-language-codes
Created Feb 3, 2017
List of Google Translate supported languages.
View google-translate-language-codes
/*
* https://gist.github.com/sthobis
* source: https://ctrlq.org/code/19899-google-translate-languages
*/
const languages = {
'af': 'Afrikaans',
'sq': 'Albanian',
'ar': 'Arabic',
'az': 'Azerbaijani',
@IanHopkinson
IanHopkinson / lxml_examples.py
Created Nov 24, 2015
Examples of xpath queries using lxml in python
View lxml_examples.py
#!/usr/bin/env python
# encoding: utf-8
import lxml.etree
import lxml.html
import requests
xml_sample = """<?xml version="1.0" encoding="UTF-8"?>
<foo:Results xmlns:foo="http://www.foo.com" xmlns="http://www.bah.com">
<foo:Recordset setCount="2">
View import_json_appsscript.js
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@danielpunkass
danielpunkass / Google Domains.txt
Created Mar 13, 2012
List of known Google domain names. Useful e.g. for filtering Mint referrers.
View Google Domains.txt
# What's this? It's a monster list of Google domain names that have been found to refer
# users to sites that are monitored with Shaun Inman's "Mint" statistics package. http:/haveamint.com/
#
# A huge number of these came from Shawn Blanc's domain list here:
# http://shawnblanc.net/2010/08/cleanup-mint-unique-referrers/
#
# I merged them in to my existing list for this "MONSTAH LIST". Enjoy!
#
# To filter many, many of the Google search results from your "Newest Unique Referrers" results in
# Mint, copy the list below verbatim (don't include these "comment" lines) and paste them into your