This file contains hidden or 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
| C:\> MbrFix /drive 0 fixmbr /yes |
This file contains hidden or 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
| /* Normal Style */ | |
| #elementName{ | |
| background:#FFFFFF url(img/foobar.png) no-repeat center top; | |
| } | |
| /* Email Template Style */ | |
| #elementName{ | |
| background-color:#FFFFFF; | |
| background-image:url(img/foobar.png); |
This file contains hidden or 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
| /** | |
| * Useful function for Melli code validation | |
| * @author Alireza Ahmadi info@alireza.es | |
| * @param code {String} Melli code | |
| * @return {Boolean} Melli code credential | |
| */ | |
| var MelliCode = function(code){ | |
| if(code.length != 10) { | |
| return false; | |
| } |
This file contains hidden or 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
| var http = require('http'); | |
| var server = http.createServer(function(req, res){ | |
| res.writeHead(301, {'Location' : 'http://www.example.com'}); | |
| res.end(); | |
| }); | |
| server.listen(process.env.PORT || 3000); |
This file contains hidden or 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
| angular | |
| .module 'DropzoneDirective', [] | |
| .directive 'dropzone', -> | |
| restrict: 'A' | |
| scope : | |
| onComplete : '&' | |
| link: (scope, element, attrs) -> | |
| element.bind 'dragover', (event) -> | |
| event.stopPropagation() | |
| event.preventDefault() |
This file contains hidden or 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
| angular.module('foobar', []) | |
| .directive('timeMask', function(){ | |
| function format(input){ | |
| var time; | |
| time = input.split(':'); | |
| if(time.length){ | |
| if(time[0] == ''){ | |
| time[0] = '00'; | |
| time[1] = '00'; | |
| } |
This file contains hidden or 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 sortByKey(arr, key) { | |
| function compare(n, m){ | |
| return (m.localeCompare(n, 'fa') >= 0) | |
| } | |
| return arr.sort(function(a, b) { | |
| var x, | |
| y; | |
| x = a[key]; | |
| y = b[key]; | |
| return ((check(x, y)) ? -1 : ((check(y, x)) ? 1 : 0)); |
This file contains hidden or 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
| var APIKEY = "OOOOOOOOOOOOOOOOOOOOOOOOOO"; | |
| module.exports = function(grunt){ | |
| grunt.loadNpmTasks('grunt-tinypng'); | |
| grunt.initConfig({ | |
| tinypng: { | |
| options: { | |
| apiKey: APIKEY, | |
| showProgress: true, | |
| stopOnImageError: false | |
| }, |
This file contains hidden or 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
| gulp = require 'gulp' | |
| sourcestream = require 'vinyl-source-stream' | |
| buffer = require 'vinyl-buffer' | |
| util = require 'gulp-util' | |
| sourcemaps = require 'gulp-sourcemaps' | |
| uglify = require 'gulp-uglify' | |
| browserify = require 'browserify' | |
| livereload = require 'gulp-livereload' | |
| minify = require 'gulp-minify-css' | |
| express = require 'express' |
This file contains hidden or 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
| public class Loop { | |
| public static void main(String[] args) | |
| { | |
| Integer total = 500000000; | |
| Integer chunk = 50000000; | |
| Integer i = 0; |
OlderNewer