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
const SPREADSHEET_ID = '{{SHEET_ID}}'; | |
const SHEET_ID = 123456789; | |
const RANGE = 'ApplicantsList!A2:L2'; | |
//---------------------- | |
chrome.runtime.onConnect.addListener(port => { | |
port.onMessage.addListener(request => { | |
if (request.action === 'copyValues') { | |
const info = request.data; | |
writeToGoogleSheets(SPREADSHEET_ID, RANGE, [info[0], 'To Call / Email - 1', '', 'Jobinja', info[4], '', info[1], '', '', info[3], '', info[2]]); | |
} |
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
curl -s https://api.github.com/repos/google/bundletool/releases/latest \ | |
| grep "browser_download_url.*jar" \ | |
| cut -d : -f 2,3 \ | |
| tr -d \" \ | |
| wget -qi - |
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
# encoding=utf8 | |
#---------- | |
# AUTHOR: Farbod Samsamipour <farbod.ps@gmail.com> | |
# GITHUB: https://github.com/firebase/firebase-admin-python | |
#---------- | |
import os | |
import importlib.util | |
import plistlib as plist | |
import firebase_admin | |
from firebase_admin import credentials, project_management |
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
#!/bin/bash | |
#---------- | |
# Set variables | |
sl='en' | |
tl='' | |
query='' | |
#---------- | |
# Get the options | |
while getopts ":s:t:q:" option; do | |
case $option in |
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
<div style="font-family: sans-serif;"> | |
<? var data = valid(); ?> | |
<form id="form" name="form"> | |
<? if(Object.prototype.toString.call(data) === '[object Array]') { ?> | |
<? for (var i = 0; i < data.length; i++) { ?> | |
<? for (var j = 0; j < data[i].length; j++) { ?> | |
<input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br> | |
<? } ?> | |
<? } ?> | |
<? } else { ?> |
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
# encoding=utf8 | |
import sys, os | |
import requests | |
import json | |
def t5(t, e, n, i): | |
return abs(float(n) * float(i) / float(t) - float(e)) | |
def number_check(t): | |
return t if t > 0 else 0 |
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 | |
# coding: utf-8 | |
# This file is part of Adblock Plus <http://adblockplus.org/>, | |
# Copyright (C) 2006-2014 Eyeo GmbH | |
# | |
# Adblock Plus is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License version 3 as | |
# published by the Free Software Foundation. | |
# |
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
# Bypass MacOS Gatekeeper | |
#------------------------ | |
#usage: xattr [-l] [-r] [-s] [-v] [-x] file [file ...] | |
# xattr -p [-l] [-r] [-s] [-v] [-x] attr_name file [file ...] | |
# xattr -w [-r] [-s] [-x] attr_name attr_value file [file ...] | |
# xattr -d [-r] [-s] attr_name file [file ...] | |
# xattr -c [-r] [-s] file [file ...] |
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
# First, you must get the previous commit sha, the one before the forced push: | |
## Hit through terminal | |
curl -u <username> https://api.github.com/repos/:owner/:repo/events | |
# Then you can create a branch from this sha: | |
## Hit through terminal | |
curl -u <github-username> -X POST -d '{"ref":"refs/heads/<new-branch-name>", "sha":"<sha-from-step-1>"}' https://api.github.com/repos/:owner/:repo/git/refs |
NewerOlder