This file contains hidden or 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 ruby | |
| require "json" | |
| require "uri" | |
| require "net/http" | |
| require "google_drive" | |
| require "./config.rb" | |
| ## constants |
This file contains hidden or 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
| /* | |
| * usage: | |
| * <a href="https://itunes.apple.com/app/idxxx?mt=8" data-appref="appscheme://">open app</a> | |
| * <script>$('a').appref();</script> | |
| */ | |
| 'use strict'; | |
| (function($) { | |
| $.fn.appref = function(options) { | |
| var settings = { | |
| ref: 'appref' |
This file contains hidden or 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 ruby | |
| require "json" | |
| require "uri" | |
| require "net/http" | |
| require "google_drive" | |
| require "pp" | |
| ## help | |
| if ARGV.size < 2 |
This file contains hidden or 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 | |
| #encoding: utf-8 | |
| import os | |
| import sys | |
| import re | |
| import csv | |
| import numpy as np | |
| from sklearn.feature_extraction.text import TfidfVectorizer |
This file contains hidden or 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
| # Uncomment this line to define a global platform for your project | |
| platform :ios, "7.0" | |
| pod 'socket.IO-objc', :podspec => 'https://gist.githubusercontent.com/Kechol/e1794eb2376f82a3825a/raw/07fedcfdcd1420e5d7d026537f309265ce135f42/socket.IO-objc.podspec' |
This file contains hidden or 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
| var assert = require("assert"); | |
| var fullBucketPath = '/full/bucket/path'; | |
| var replacePath = function(){ | |
| var path = ''; | |
| for(var i in Array.prototype.slice.call(arguments)) { | |
| var val = arguments[i]; | |
| if(typeof val==='string'){ | |
| if(val.slice(0,1)==='/' && path.slice(-1)==='/'){ |
This file contains hidden or 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
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| function fetch(url) { | |
| var response = UrlFetchApp.fetch(url); | |
| var contentText = response.getContentText(); | |
| return contentText; | |
| } | |
| function title(url) { | |
| if(typeof url === 'string' && url.length > 0) { |
This file contains hidden or 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
| var Server = require('deployd/lib/server') | |
| , options = { port: 7274, db: { host: 'localhost', port: 6042, name: '-deployd' } } | |
| , uuid = require('deployd/lib/util/uuid') | |
| , crypto = require('crypto') | |
| , deployd = new Server(options); | |
| function saveAll(name) { | |
| var store = deployd.createStore(name) | |
| , data = require('./seed/' + name); |
This file contains hidden or 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
| .vspace(50); | |
| .vspace(@n, @i: 5) when (@i =< @n) { | |
| .vspace-@{i} { | |
| margin-top: @i * 1px; | |
| margin-bottom: @i * 1px; | |
| } | |
| .vspace-tp-@{i} { | |
| margin-top: @i * 1px; | |
| } |
This file contains hidden or 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
| --- | |
| - hosts: b2g | |
| remote_user: ubuntu | |
| sudo: yes | |
| vars: | |
| - ccache_size: 3GB | |
| - git_user: b2g | |
| - git_email: b2g@example.com | |
| - b2g_repo: git://github.com/mozilla-b2g/B2G.git |