Based on initial version by Tom Isaacson (@parsley72).
Learn more about tracking geo coordinates in your own projects here.
| /*! | |
| * ========================================================================== | |
| * 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: | |
| * | |
| * The above copyright notice and this permission notice shall be included in |
| describe('PostsEffects', () => { | |
| let runner, postsEffects, postsService; | |
| beforeEach(() => TestBed.configureTestingModule({ | |
| imports: [ | |
| EffectsTestingModule | |
| ], | |
| providers: [ | |
| PostsEffects, | |
| { |
Based on initial version by Tom Isaacson (@parsley72).
Learn more about tracking geo coordinates in your own projects here.
| // Note that this uses my Pub/Sub implementation, which is slightly different than | |
| // phiggins' in that jQuery custom events are used, and as such the first event handler | |
| // argument passed is the event object. | |
| // | |
| // jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery | |
| // https://gist.github.com/661855 | |
| // The "traditional" way. |
| /* eslint-disable no-console */ | |
| import client from 'part:@sanity/base/client' | |
| // Run this script with: `sanity exec --with-user-token migrations/migrateValues.js` | |
| // | |
| // This example shows how you may write a migration script that migrates a field value | |
| // on a specific document type. | |
| // This will migrate documents in batches of 100 and continue patching until no more documents are | |
| // returned from the query. | |
| // |
| /** @OnlyCurrentDoc */ | |
| const startDate = new Date("2021-06-16") | |
| // so the first one is D2:K2 | |
| function MarkEmptyCellsInYesterdayRowWithHyphen() { | |
| const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Group 2 - B"); | |
| // Activates the sheet | |
| SpreadsheetApp.setActiveSheet(sheet); | |
| const today = new Date() |
| # bash <(curl -s https://gist.github.com/drye/5387341/raw/ec72cddfe43ec3d39c91a3c118cb68ab14a049f8/enable_dnsmasq_on_osx.sh) | |
| # ---------------------- | |
| # installing dnsmasq and enable daemon | |
| # ---------------------- | |
| brew install dnsmasq | |
| sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
| # ---------------------- | |
| # adding resolver for vbox domain | |
| # ---------------------- |
| const compose = (...fns) => x => fns.reduceRight((v, f) => f(v), x); |
| <?php | |
| // we're loading the Database TestCase here | |
| require 'PHPUnit' . DIRECTORY_SEPARATOR . 'Extensions' . | |
| DIRECTORY_SEPARATOR . 'Database' . DIRECTORY_SEPARATOR . | |
| 'TestCase.php'; | |
| class FixtureTestCase extends PHPUnit_Extensions_Database_TestCase { | |
| public $fixtures = array( | |
| 'posts', |
| import { takeEvery } from 'redux-saga'; | |
| import { call, put } from 'redux-saga/effects'; | |
| // Watcher | |
| function* watchFetchData() { | |
| yield* takeEvery('FETCH_REQUESTED', fetchData); | |
| } | |
| // Worker | |
| function* fetchData(action) { |