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($) { | |
$(document).ready(function() { | |
$('#myform').ajaxify({ | |
afterSend: function() { | |
# show progress gif | |
}, | |
complete: function() { | |
# hide progress gif | |
# close or hide the form | |
} |
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
const POSITION = (function() { | |
var inner = {}; | |
Object.defineProperty(inner, 'left', { | |
writable: false, | |
value: 1 | |
}) | |
Object.defineProperty(inner, 'right', { | |
writable: false, | |
value: 2 |
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
class LoanProcess < ActiveRecord::Base | |
has_many :loan_process_item_types | |
has_many :item_type, through: :loan_process_item_types | |
end | |
class LoanProcessItemType < ActiveRecord::Base | |
belongs_to :assembly | |
belongs_to :part | |
end | |
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
string fictionalData ="{ \"inventory_report\": \"8,20150311104355,2,1|2|3|4|5,Hm1n7BpOepu8x0gRao0q0xwdAbg=\n9,20150311114532,2,6|7|8|9|10,eThf7SWEZJHhxl1mDJgvaVpBd68=\"}" | |
sw.WriteLine(fictionalData[r]); |
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
// Set.h: interface for the Set class. | |
// this code is'nt under any license so feel free to edit or copy/paste any peace of it | |
////////////////////////////////////////////////////////////////////// | |
#ifndef SET_H | |
#define SET_H | |
#if _MSC_VER > 1000 | |
#pragma once | |
#endif // _MSC_VER > 1000 |
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
using UnityEngine; | |
using System.Collections; | |
public class move2 : MonoBehaviour { | |
public float xx; | |
public float yy; | |
//public bool destroyy=false; | |
public GameObject shap; | |
float x,y; | |
// Use this for initialization | |
void Start () { |
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
/** | |
* @ngdoc function | |
* @name publishToFacebookGroups | |
* @description publishes a deal as photos to an array of fb groups | |
* @param {resource} deal The deal to share | |
* @param {array} groups An Array of groups to share on | |
* @returns {boolean} A promise to know later if the deal sharing process failed or succeeded | |
*/ | |
function publishToFacebookGroups(deal, groups) { | |
$rootScope.currentUser.balance -= groups.length; |
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
<link rel="import" href="../notification-elements/notification-alert.html"> | |
<link rel="import" href="../core-ajax/core-ajax.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<polymer-element name="my-element"> |
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
jQuery(document).ready(function ($) { | |
//MAPS | |
app.maps.tools = { | |
centerOnUser: function () { | |
return { | |
getgeoloc: { | |
callback: function (latLng) { | |
if (latLng) { | |
$(this).gmap3({ | |
map: { |
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
#!ruby | |
#encoding: utf-8 | |
require 'csv' | |
col_data = [] | |
CSV.foreach './posts-new.csv' do |row| | |
col_data << row[0] # getting the first one | |
end |
NewerOlder