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
source 'https://rubygems.org' | |
gem 'rails', 'XXXX' | |
gem 'sass-rails', '~> 5.0' | |
gem 'uglifier', '>= 1.3.0' | |
gem 'coffee-rails', '~> 4.1.0' | |
gem 'jquery-rails' | |
gem 'turbolinks' |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
/* | |
Theme Name: loops-inter | |
Theme URI: http://wordpress.org/themes/loops-inter | |
Author: Compass Inc | |
Author URI: http://wordpress.org/ | |
Description: Themes is being developed by Junaid Farooq | |
Version: 1.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready |
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
CREATE TABLE cameras | |
( | |
id integer NOT NULL DEFAULT nextval('sq_streams'::regclass), | |
created_at timestamp with time zone NOT NULL DEFAULT now(), | |
updated_at timestamp with time zone NOT NULL DEFAULT now(), | |
exid text NOT NULL, | |
owner_id integer NOT NULL, | |
is_public boolean NOT NULL, | |
config json NOT NULL, | |
name text NOT NULL, |
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
A little glance on what world is using right now | |
[WordPress JS Coding Styles](https://make.wordpress.org/core/handbook/best-practices/coding-standards/javascript/) | |
[JQuery Officials](https://contribute.jquery.org/style-guide/js/) | |
[Google Coding Style](https://google.github.io/styleguide/javascriptguide.xml) | |
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
$("#merge_datatables").on 'click', '.action-cam', -> | |
$('#loading-popup').show() | |
host = $(this).parents('tr').find('td:nth-child(1)').text() | |
port = $(this).parents('tr').find('td:nth-child(2)').text() | |
jpg = $(this).parents('tr').find('td:nth-child(3)').text() | |
d = {} | |
d.host = host | |
d.port = port | |
d.jpg = jpg | |
$.ajax |
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
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/01_cron.sh": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
#!/usr/bin/env bash | |
# Using similar syntax as the appdeploy pre hooks that is managed by AWS | |
set -xe |
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
<!DOCTYPE html> | |
<html > | |
<head> | |
<meta charset="UTF-8"> | |
<title>WEATHER API</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="css/reset.css"> | |
<link rel="stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans"> |
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
fnShowHide = (iCol, oTable) -> | |
bVis = oTable.fnSettings().aoColumns[iCol].bVisible | |
oTable.fnSetColumnVis iCol, if bVis then false else true |
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
defmodule Password do | |
@regex_for_mac ~r/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/ | |
def generate(mac_address) do | |
case check_mac(mac_address) do | |
{:invalid, message} -> | |
message | |
{:ok} -> | |
password = |
OlderNewer