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
export const posts = [ | |
{ | |
"id": 1, | |
"title": "نهمین جشنواره رسانههای دیجیتال", | |
"author": "ساسان", | |
"date": "۲۸ دی ۹۵", | |
"visits": 253, | |
"body": "نهمین جشنواره رسانههای دیجیتال در پنج بخش اصلی برگزار میشود. شما توسعهدهندگان گرامی میتوانید تا پایان دیماه برنامههای خود را در بخش «نرم افزارهای تلفن همراه و رسانه های هوشمند» این جشنواره ثبت کنید. برای کسب اطلاعات بیشتر میتوانید به این <a href='http://fair.saramad.ir/fa/home' target='_blank'>لینک </a> مراجعه کنید." | |
}, | |
{ |
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
import { getAnimatableEndEvent } from './getAnimatableEndEvent'; | |
// get the transitionend event name for cross browser compatibility | |
const transitionEndEvent = getAnimatableEndEvent('transition'); | |
// later in code: | |
// element.addEventListener(transitionEndEvent, () => {}, false); | |
// get the animationend event name for cross browser compatibility | |
const animationEndEvent = getAnimatableEndEvent('animation'); | |
// later in code: |
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
// ---- | |
// Sass (v3.3.1) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$mq_phone: "screen and (max-width: 500px)"; | |
@media #{$mq_phone} { | |
.no-phone { | |
display: none; |
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
// ---- | |
// Sass (v3.3.0.rc.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@function set-color($color) { | |
@if (lightness($color) > 40) { | |
@return #000; | |
} | |
@else { |
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
sudo apt-get --force-yes install build-essential openssl libreadline6 libreadline6-dev curl git-core \ | |
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \ | |
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison | |
&& | |
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled | |
&& | |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter Assets controller | |
* | |
* @author Hashem Qolami <[email protected]> | |
* @copyright 2013 Hashem Qolami | |
* @license http://opensource.org/licenses/MIT (MIT license) | |
*/ | |
class Assets extends CI_Controller |
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 | |
class Sample_controller extends CI_Controller { | |
/** | |
* Foo() | |
* @return void | |
*/ | |
public function foo() | |
{ | |
// External JavaScript files | |
$data['js'] = array( |
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 | |
function calc($str) | |
{ | |
$compute = create_function('', 'return (' . trim($str) . ');' ); | |
return $compute(); | |
} | |
# Demonstration | |
$string = " (5 - 1) * (6 / 2 + 1) "; |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<meta name="description" content="description here..." /> | |
<meta name="keywords" content="keywords,here,..." /> | |
<meta name="robots" content="index, follow" /> | |
<link rel="stylesheet" type="text/css" href="style.css" /> |