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>>();
#Word || .doc
http://{ReportServerUrl}/ReportServer?/PublicReport/{ReportFileName}&rs:Command=Render&rs:Format=Word&{ReportFileParameter etc.}
MimeType / ContentType = application/msword
#Word || .docx
http://{ReportServerUrl}/ReportServer?/PublicReport/{ReportFileName}&rs:Command=Render&rs:Format=WORDOPENXML&{ReportFileParameter etc.}
MimeType / ContentType = application/vnd.openxmlformats-officedocument.wordprocessingml.document
#Excel || .xls (XLS specification => Maximum Row Count 65534 ) (https://docs.microsoft.com/en-us/sql/reporting-services/report-builder/exporting-to-microsoft-excel-report-builder-and-ssrs)
http://{ReportServerUrl}/ReportServer?/PublicReport/{ReportFileName}&rs:Command=Render&rs:Format=Excel&{ReportFileParameter etc.}
@tahaipek
tahaipek / SSRSEncodeHtmlString.txt
Created October 31, 2017 12:39
SSRS Encode HTML string
###ReportProperties
#Add reference to Report Properties => System.Net
###Set Custom code for this report.
Public Function URLEncode (ByVal data As String) As String
Dim outURL As String
outURL = System.Net.WebUtility.HtmlDecode(data).ToString
Return outURL
End Function
@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/
Angular 2
Ng CLI
Scaffold Usage
Component => ng g component my-new-component
Directive => ng g directive my-new-directive
Pipe => ng g pipe my-new-pipe
Service => ng g service my-new-service
Class => ng g class my-new-class
Interface => ng g interface my-new-interface
Enum => ng g enum my-new-enum