Skip to content

Instantly share code, notes, and snippets.

View tahaipek's full-sized avatar
🎯
Focusing

Taha İPEK tahaipek

🎯
Focusing
  • Ankara, Turkey
View GitHub Profile
@tahaipek
tahaipek / 1: App.js
Created February 22, 2023 08:19 — forked from helenaford/1: App.js
useNotificationService
import { useNotificationService } from './hooks';
function App() {
useNotificationService();
...
}
@tahaipek
tahaipek / react-native-apple-m1.md
Created May 17, 2022 11:19 — forked from badsyntax/react-native-apple-m1.md
Some tips to working with react-native 0.64 on an Apple M1 Silicon chip

My env:

  • cocoapods 1.10.1
  • xcode 12.4
  • macos big sur 11.2.3
  • react-native 0.64

iOS

The iOS simulator build won't "just work". If you get errors like ld: library not found for... or swift compiler errors, then you need to disable arm64 for the simulator build.

@tahaipek
tahaipek / DataTableResultSet.cs
Created February 4, 2019 11:38 — forked from OllieJones/DataTableResultSet.cs
C# code for handling Ajax calls for the DataTables.net client table-rendering plugin.
/// <summary>
/// Resultset to be JSON stringified and set back to client.
/// </summary>
[Serializable]
[SuppressMessage("ReSharper", "InconsistentNaming")]
public class DataTableResultSet
{
/// <summary>Array of records. Each element of the array is itself an array of columns</summary>
public List<List<string>> data = new List<List<string>>();
@tahaipek
tahaipek / _mixins.scss
Created September 21, 2017 20:21 — forked from christophergregory/_mixins.scss
SASS: mixins
@mixin bgSprite($left: 0, $top: 0, $width: auto, $height: auto, $img: $sprite, $repeat: no-repeat) {
overflow: hidden;
width: $width;
height: $height;
background: transparent $img (0 - $left) (0 - $top) $repeat;
}
@mixin roundEachCorner($tl: 0, $tr: 0, $br: 0, $bl: 0) {
-webkit-border-top-left-radius: $tl;
-webkit-border-top-right-radius: $tr;
@tahaipek
tahaipek / gulpfile.js
Created September 21, 2017 18:25 — forked from biswa4u85/gulpfile.js
SASS
'use strict';
/////////////////////////////////////////////////////////////////////////////
// GULP PLUGINS
var gulp = require('gulp'),
watch = require('gulp-watch'),
autoprefix = require('gulp-autoprefixer'),
sass = require('gulp-sass'),
rename = require('gulp-rename'),
concat = require('gulp-concat'),
@tahaipek
tahaipek / gulpfile.js
Created June 1, 2017 13:35 — forked from heldr/gulpfile.js
Another way of splitting a gulpfile into multiple files
/*
Another way of splitting a gulpfile into multiple files based on:
http://macr.ae/article/splitting-gulpfile-multiple-files.html
https://github.com/gulpjs/gulp/blob/master/docs/recipes/split-tasks-across-multiple-files.md
*/
'use strict';
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')(),
@tahaipek
tahaipek / dotnetlayout.md
Created December 7, 2016 21:23 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/