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
SELECT name, profile_url, uid, friend_count, subscriber_count FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) order by subscriber_count desc |
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
# on | |
sudo networksetup -setsocksfirewallproxy "Wi-Fi" localhost 1080 | |
ssh -D 1080 -i ~/.ssh/proxy.pem [remote-user]@[remote-server] | |
# off | |
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off |
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
/*** | |
* Contains basic SlickGrid editors. | |
* @module Editors | |
* @namespace Slick | |
*/ | |
(function ($) { | |
// register namespace | |
$.extend(true, window, { | |
"Slick": { |
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
<head> | |
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> | |
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> | |
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %} | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" /> | |
{% if site.owner.twitter %}<!-- Twitter Cards --> | |
{% if page.image.feature %}<meta name="twitter:card" content="summary_large_image"> | |
<meta name="twitter:image" content="{{ site.url }}/images/posts/{{ page.image.feature }}"> |
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
function verifyNationalCode(source, arguments) { | |
var nationalCode = arguments.Value; | |
arguments.IsValid = false; | |
if (nationalCode.length != 10) | |
return; | |
if (nationalCode == "0000000000" || nationalCode == "1111111111" || nationalCode == "2222222222" || | |
nationalCode == "3333333333" || nationalCode == "4444444444" || nationalCode == "5555555555" || |
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
USE [KhabarioWordDB] | |
GO | |
/****** Object: StoredProcedure [dbo].[maysam] Script Date: 2/27/2016 4:52:46 PM ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER PROCEDURE [dbo].[maysam] | |
@matn NText, | |
@docID INT, |
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
وين روني به جمع مصدومان يونايتد اضافه شد | |
ریزش ۲ ساختمان در نیاوران/50 خانه تخلیه شد | |
حفظ بهداشت، ایمنی، سلامت و محیط زیست در پروژههای منطقه ۲۲ اجرایی میشود | |
حال و آینده را شامل گردد. سی و پنج درصد از طراحان در قرن پانزدهم | |
صدوربیانیه | |
جدیدترین پروژه موشکی نیروی دریایی ارتش بزودی عملیاتی میشود | |
به خطر انداختن منافع آیندگان نوع جدید بیسوادی است | |
نازابییلط | |
ساختمان روابط عمومی بانک پاسارگاد منتقل شد | |
بانک پاسارگاد، به عنوان سازمان حامی سلامت کشور شناخته شد |
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
set statistics time on | |
exec maysam N'به گزارش حوزه احزاب و تشکلهایگروه سیاسی پایگاه اطلاع رسانی خبریو، مرکز اسناد انقلاب اسلامی، با انتشار ویژهنامه «سیلی محکم»، به بازخوانی مدیریت رهبر معظم انقلاب در مهار فتنه ۸۸ پرداخته است. | |
در پایگاه پژوهشی مرکز اسناد انقلاب اسلامی آمده است: یکی از بحران های گسترده که هزینههای زیادی به نظام تحمیل کرد، حوادث مربوط به سال ۱۳۸۸ بود. ظاهر این رویداد تاریخی، اعتراض به نتیجه انتخابات ریاست جمهوری با ادعای واهی تقلب بدون هیچ گونه دلیل و مدرک محکمهپسند بود که با استفاده از روشهای غیرقانونی و کشاندن اعتراضات به سطح خیابانها به وقوع پیوست ولی عملا براندازی نظام و مقابله با جمهوری اسلامی در دستور کار مخالفین داخلی و معاندین خارجی قرار گرفت. | |
این حوادث با برخورداری از شرایط و ویژگیهای منحصر به فرد، یکی از پیچیدهترین شرایط سه دهه گذشته انقلاب اسلامی را به خود اختصاص داد و به واسطه آن بسیاری از ظرفیتها و واقعیتهای جمهوری اسلامی محک خورد و به آزمون گذاشته شد. | |
در چنین شرایطی٬ نقش رهبری یک نظام٬ از اهمیت بسزایی برخوردار است؛ اگر شخص اول یک کشور نتواند به درستی شرایط بحرانی را م |
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 kefir from 'kefir' | |
const parallaxMixin = { | |
init: function() { | |
let ratio = this.opts.parallaxRatio || 1 | |
this.on('mount', () => { | |
this.updateBGPosition(ratio) | |
let scrolls = kefir.fromEvents(window, 'scroll') |
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
def isSomewhatPalandrome?(word) | |
i = 0 | |
j = word.length-1 # 1 | |
while(i<j) do | |
while ((i < word.length) && !(word[i].match /^[a-zA-Z0-9]$/)) do | |
i+=1 # 1 | |
end | |
while ((j > 0) && !(word[j].match /^[a-zA-Z0-9]$/)) do | |
j-=1 # j -> 0 |
OlderNewer