Skip to content

Instantly share code, notes, and snippets.

Waiting for the next full moon

Önder Ceylan onderceylan

Waiting for the next full moon
View GitHub Profile
onderceylan / gwd-handlers.js
Created September 16, 2015 15:37
View gwd-handlers.js
<script type="text/javascript" gwd-events="handlers">gwd.handleExpand_buttonAction=function(){'415px';gwd.actions.gwdGenericad.goToPage("gwd-ad","expanded-page")};gwd.handleClose_buttonAction=function(){'90px';gwd.actions.gwdGenericad.goToPage("gwd-ad","banner-page")};gwd.auto_Gwd_taparea_1Action=function(event){gwd.actions.gwdGenericad.exit("gwd-ad","",true)}</script>
onderceylan / convertToInternationalTurkishNumber.applescript
Created October 2, 2016 20:50
AppleScript code for adding Turkish international phone prefix to every phone item in Apple Contacts
View convertToInternationalTurkishNumber.applescript
tell application "Contacts"
repeat with i from 1 to (count every person)
set phoneProperties to properties of phones of person i
repeat with j from 1 to (count of phoneProperties)
if value of item j of phoneProperties does not contain "+" then
set oldPhone to value of item j of phoneProperties
set value of item j of phones of person i to "+9" & oldPhone
end if
end repeat
end repeat
onderceylan / ci_scripts_setup_01_install_system_dependencies
Last active February 9, 2018 13:45
CI scripts for hybrid mobile apps
View ci_scripts_setup_01_install_system_dependencies
# Install homebrew
if ! which -s brew > /dev/null; then
/usr/bin/ruby -e "$(curl -fsSL"
# Install yarn
if ! which -s yarn > /dev/null; then
curl -o- -L | bash
onderceylan / ci_scripts_deploy_01_hockey_app
Created March 16, 2018 08:41
CI scripts for hybrid mobile apps - Deploy your application to HockeyApp
View ci_scripts_deploy_01_hockey_app
echo "Deploying QA build to HockeyApp"
commit_message=$(git log --oneline -5)
commit_sha=`git rev-parse HEAD`
onderceylan / ci_scripts_setup_02_codesigning_preparation
Last active March 16, 2018 09:34
CI scripts for hybrid mobile apps - Code signing preparation
View ci_scripts_setup_02_codesigning_preparation
# Setup custom keychain
## Create a new keychain
security create-keychain -p "your-keychain-password-here" your-custom-keychain.keychain
security set-keychain-settings ~/Library/Keychains/your-custom-keychain.keychain-db
## Set default keychain
security default-keychain -s ~/Library/Keychains/your-custom-keychain.keychain-db
onderceylan / reducer.ts
Created September 19, 2018 20:25
Persistent storage of your store - reducer
View reducer.ts
import { Action, ActionReducer, ActionReducerMap, createFeatureSelector, MetaReducer } from '@ngrx/store';
import * as fromTimezone from './timezone.reducer';
import * as fromNotifications from './notification.reducer';
import { localStorageSync } from 'ngrx-store-localstorage';
export const FEATURE_NAME = 'settings';
const STORE_KEYS_TO_PERSIST = ['timezone', 'notifications'];
export interface SettingsState {
timezone: fromTimezone.TimezoneState;
onderceylan / events.selector.ts
Last active September 21, 2018 18:23
Composing selectors - selector
View events.selector.ts
import { createSelector } from '@ngrx/store';
import * as fromFeature from '../reducers';
import * as fromEvents from '../reducers/events.reducer';
import * as fromSettingsSelectors from '../../../settings/store/selectors';
import { eventEntityAdapter } from '../reducers/events.reducer';
import { filterEventEntitiesByUserSettings } from '../../utils/notification-utils';
import { filter, size } from 'lodash-es';
// This is a basic use case to slice feature state
export const getEventsState = createSelector(
onderceylan / manifest.json
Last active January 21, 2019 22:16
Build a production ready PWA with Angular and Firebase - manifest.json
View manifest.json
"name": "ITNEXT Summit 2018",
"short_name": "ITNEXT",
"description": "Be the best explorer in next-gen technologies. Experience use-cases, howtos and best-practices with latest frontend and backend technologies, network and security, engineering and low-code development with OutSystems.",
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"orientation": "portrait",
"scope": "/",
"start_url": "/?utm_source=itnext_pwa_a2hs",
onderceylan / firebase.json
Created January 26, 2019 10:06
Build a production ready PWA with Angular and Firebase - firebase.json
View firebase.json
"hosting": {
"public": "www",
"ignore": [
"rewrites": [
onderceylan / ngsw.json
Created January 28, 2019 23:29
Build a production ready PWA with Angular and Firebase - ngsw.json
View ngsw.json
"configVersion": 1,
"appData": {
"version": "1.1.0",
"changelog": "Added better resource caching"
"index": "/index.html",
"assetGroups": [
"name": "shell",