Skip to content

Instantly share code, notes, and snippets.

View samarthagarwal's full-sized avatar
🎯
Focusing

Samarth Agarwal samarthagarwal

🎯
Focusing
View GitHub Profile
[1] │ 205 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S01-Illustration' │
[1] │ 206 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S01-Illustration2' │
[1] │ 207 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S01-Quiz' │
[1] │ 208 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S02-Activity' │
[1] │ 209 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S02-Illustration' │
[1] │ 210 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S02-Illustration2' │
[1] │ 211 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S02-Quiz' │
[1] │ 212 │ 'NO-FrieVenner' │ 'Misjonshuset Moss' │ 'KBS-NO-H4-S03-Activity' │
[1] │ 213 │ 'NO-FrieVenner' │ 'Misjonshuset Moss'
@samarthagarwal
samarthagarwal / task.php
Last active September 6, 2019 23:13
A simple task for a secret operation ;)
<?php
$date = date('d-m-Y');
$currentMonth = explode("-", $date)[1];
$currentYear = explode("-", $date)[2];
$response = array();
for ($i = $currentMonth; $i <= 12; $i++) {
import 'package:flutter/material.dart';
import 'package:jesuskids/models/message.dart';
import 'package:jesuskids/utilities/utilities.dart';
class ChatMessageLeft extends StatelessWidget {
ChatMessageLeft({this.message, this.animationController});
final Message message;
final AnimationController animationController;
@override
Widget build(BuildContext context) {
import { Component } from '@angular/core'
import { Storage } from '@ionic/storage'
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
import { Component } from '@angular/core'
import { Storage } from '@ionic/storage'
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
\!h import { IonicStorageModule } from '@ionic/storage';
@NgModule({
declarations: [
// ...
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp),
],
\!h import { IonicStorageModule } from '@ionic/storage';
@NgModule({
declarations: [
// ...
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp),
\!h IonicStorageModule.forRoot()
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule, RouteReuseStrategy, Routes } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
@samarthagarwal
samarthagarwal / main.dart
Created September 13, 2018 12:09
Wrote for Facebook post in Let's FLutter
import "dart:core";
void main() {
String url = "http://www.xyz.com/images/cat_53x53xyz.jpg";
//You can replace xyz with any string and it will still work
String newURL = changeSizeInUrl(url);
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from '@ionic/angular';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { HomePage } from './home.page';
import { StudioPage } from '../studio/studio.page';
import { ClubPage } from '../club/club.page';
import { OfficePage } from '../office/office.page';