Skip to content

Instantly share code, notes, and snippets.

View frontconnect's full-sized avatar

Yaprak Ayazoğlu frontconnect

View GitHub Profile
@frontconnect
frontconnect / ci_cd_map.md
Last active April 30, 2019 14:02
Ways of CI/CD systems
Github Bitbucket Gitlab
Jenkins [x] [x] [x]
Travis [x]
Bitbucket CI [x]
Gitlab CI [x]
Bitbucket Pipelines [x]
@frontconnect
frontconnect / test.service.ts
Last active January 31, 2018 20:51
Test Service defined for testing REST calls with HTTPClient library
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
@Injectable()
export class TestService {
private testUrl = '/some/test/url';
constructor(private http: HttpClient) { }
@frontconnect
frontconnect / ViewController.m
Created December 19, 2013 13:26
Create and initialize the GMSMapView programmatically.
@interface ViewController ()
@property (nonatomic) GMSMapView *mapView;
@end
@implementation ViewController
#pragma mark - UIViewController
- (void)viewDidLoad {
@frontconnect
frontconnect / postWrapper.m
Last active December 31, 2015 05:29
AFNetworking post wrapper
-(void) get:(NSString *)rest withParams:(NSDictionary*)params
completion:(void (^)(id))completionBlock
{
NSString *curUrl = [self.constant.url stringByAppendingString:rest];
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
@frontconnect
frontconnect / pauseEvent
Created November 23, 2012 10:35
cordova location tracker at background
document.addEventListener("pause", App.pauseEvent, false);
pauseEvent: function(){
navigator.geolocation.watchPosition(
function(pos){
App.latlngs.push(new L.LatLng(pos.coords.latitude, pos.coords.longitude));
},
function(err){
alert('Error:' + err);
},
@frontconnect
frontconnect / 1question.txt
Created September 28, 2012 08:22
node.js - mongoose - while sending a data from client to server with ajax-post request
Hi,
I'm trying to send a mongodb schema from client to the server. I put the server (server.js) and client (client.js) codes above. When I press the button on the client side, I log the incoming data into the console.
In the console output what I have is:
{
field1: `container field`,
subSchema: []
}