Skip to content

Instantly share code, notes, and snippets.

View MhdSyrwan's full-sized avatar

Muhammad Seyrawan MhdSyrwan

  • Istanbul, Turkey
View GitHub Profile
@MhdSyrwan
MhdSyrwan / example.js
Last active July 18, 2018 14:16 — forked from mdellavo/jquery.ajaxify.js
A simple jQuery plugin to ajaxify a form
(function($) {
$(document).ready(function() {
$('#myform').ajaxify({
afterSend: function() {
# show progress gif
},
complete: function() {
# hide progress gif
# close or hide the form
}
const POSITION = (function() {
var inner = {};
Object.defineProperty(inner, 'left', {
writable: false,
value: 1
})
Object.defineProperty(inner, 'right', {
writable: false,
value: 2
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
 
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]);
// 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
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 () {
/**
* @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;
@MhdSyrwan
MhdSyrwan / designer.html
Last active August 29, 2015 14:08
designer
<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">
jQuery(document).ready(function ($) {
//MAPS
app.maps.tools = {
centerOnUser: function () {
return {
getgeoloc: {
callback: function (latLng) {
if (latLng) {
$(this).gmap3({
map: {
#!ruby
#encoding: utf-8
require 'csv'
col_data = []
CSV.foreach './posts-new.csv' do |row|
col_data << row[0] # getting the first one
end