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
// To use this script just go to the members page of the desired facebook group and run it in your web console. | |
// This script may cease to work in the future. If it does you'll probably just need to change the name of the class. | |
// I got a warning at about 200 requsts. There's a built in limit of 101 friend requests per run and a rate limiter. Don't know if it had any impact on how quickly I got warned. | |
// Use at your own risk. | |
var allButtons = document.getElementsByClassName("uiIconText addButton"); | |
var i = allButtons.length - 1; | |
function slowLoop() { |
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
console = { | |
log: function (text) { | |
var div = document.getElementById('console-log'); | |
var p = document.createElement("p"); | |
p.innerHTML = text; | |
div.appendChild(p); | |
} | |
}; |
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
#console-log { | |
position: fixed; | |
bottom: 10px; | |
left: 10px; | |
right: 10px; | |
padding: 10px; | |
background-color: #eee; | |
color: #777; | |
font-family: sans-serif; | |
} |
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
flywheelsTBH(50, 0.40) // start flywheel -- must use chart | |
basicDrive(127, 127); // start drive | |
wait1Msec(2000); // wait 2 seconds | |
basicDrive(0, 0); // stop drive | |
flywheelsTBH(0, 0.0) // stop flywheel | |
basicBothIntakes(127); // start intake | |
wait1Msec(4000); // wait 2 seconds |
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
// | |
// UIView+RevealFromLeading.swift | |
// VitocDev | |
// | |
// Created by Bogdan Vitoc on 5/12/16. | |
// Copyright © 2016 VitocDev. All rights reserved. | |
// | |
import UIKit |
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
// 1. Go to env vars page in project settings | |
// 2. Fill in info below | |
// 3. Paste contents into your browser's developer console | |
var envs = //your object with KEY:VALUE | |
var i = 0; | |
var keys = Object.keys(envs) | |
function recurse() { | |
var key = keys[i] |
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
// | |
// Storyboards.swift | |
// | |
// Created by Bogdan Vitoc on 7/5/16. | |
// Copyright © 2016 Bogdan Vitoc. All rights reserved. | |
// | |
// ⚠️ this is an example only | |
// ⚠️ modify the properties and strings to suit your project |
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
The MIT License (MIT) | |
Copyright (c) 2017 Bogdan Vitoc | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
import Foundation | |
extension Date { | |
/** | |
Returns the current time in a timezone. | |
- Note: | |
`Date` is [time zone agnostic.](https://developer.apple.com/reference/foundation/date#overview) | |
*/ | |
static func `for`(zone: TimeZone) -> Date { |
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
'use strict' | |
let mocha = require('mocha') | |
let Base = mocha.reporters.Base | |
exports = module.exports = BrowserSpec | |
// This class is a ported version of Mocha's default "spec" reporter to format color output for the browser. | |
// https://github.com/mochajs/mocha/blob/master/lib/reporters/spec.js | |
function BrowserSpec (runner) { | |
mocha.reporters.Base.call(this, runner) |
OlderNewer