This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set ( "Asia/Kathmandu" ); | |
$time = time(); | |
$actual_time = date('H:i:s',$time); | |
echo $actual_time; | |
if(isset($_POST['user'])){ | |
$openfile = fopen("store.txt","a+"); | |
fwrite($openfile,$rand.','); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set ( "Asia/Kathmandu" ); | |
$time = time(); | |
$actual_time = date('D d M Y @H:i:s',$time); | |
if(isset($_POST['logEntry'])){ | |
$tempMem = $_POST['logEntry']; | |
$createFile = fopen('dailyLog.txt','a+'); | |
$writeFile = fwrite($createFile, $actual_time.$tempMem); | |
echo 'Log has been successfully entered into your daily logbook'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ | |
/** | |
* 1. Set default font family to sans-serif. | |
* 2. Prevent iOS text size adjust after orientation change, without disabling | |
* user zoom. | |
*/ | |
html { | |
font-family: sans-serif; | |
/* 1 */ | |
-ms-text-size-adjust: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Resume</title> | |
<style> | |
html{ | |
background-color: #444; | |
padding: 0 1em; | |
} | |
body{ | |
background-color: #FFF; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
background-color: #444; | |
padding: 0 1em; | |
} | |
body { | |
background-color: #FFF; | |
font-family: monospace; | |
/*padding: 2em;*/ | |
margin: 1em auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo mount -o remount,size=10G,noatime /tmp | |
echo "Done. Please use 'df -h' to make sure folder size is increased." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HamroPatro might change it's api endopint | |
require 'rest-client' | |
require 'loofah' | |
require 'loofah/helpers' | |
eng_date = File.readlines('nepdate.txt') | |
mahina = {"बैशाख" => 1, "जेठ" => 2, "आषाढ" => 3, "श्रावण" => 4,"भाद्र" => 5, "आश्विन" => 6, "कार्तिक" => 7, "मंसिर" => 8, "पौष" => 9, "माघ" => 10, "फाल्गुण" => 11, "चैत्र" => 12} | |
mahinaharu = Regexp.new(mahina.keys.map {|x| Regexp.escape(x) }.join('|')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var deck = new Deck(); | |
print(deck); | |
deck.removeCard('Diamonds', 'Ace'); | |
print(deck); | |
} | |
class Card { | |
String rank; | |
String suit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arr =[ | |
{ | |
'merchant_id' => '3000', | |
'service_id' => '1234', | |
'dtls' => [ | |
{ | |
'dtl1' => [ | |
{ | |
'dtl_rowno' => '1', | |
'dtl_item_id' => '345', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'date' | |
require 'time' | |
require 'google/apis/calendar_v3' | |
require 'googleauth' | |
require 'ap' | |
class Reminder | |
attr_reader :date, :time, :message | |
def initialize(date, time, message) |
OlderNewer