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
| pip install xlwings |
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
| {% extends base_template %} | |
| {% load i18n %} | |
| {% load url from future %} | |
| {% load xadmin_tags %} | |
| {% block extrastyle %} | |
| <style type="text/css"> | |
| .btn-toolbar{margin-top: 0;} | |
| #content-block.full-content{margin-left: 0;} | |
| </style> |
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 UnityEditor; | |
| using System.Collections; | |
| public class UnityScriptKillerEditor | |
| { | |
| [MenuItem("Assets/Create/Javascript")] | |
| static void KillUnityScript () | |
| { | |
| Debug.LogError ("UnityScript is fuck!"); |
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; | |
| /// <summary> | |
| /// Lean tween sequence. | |
| /// </summary> | |
| public class LeanTweenSequence | |
| { | |
| /// <summary> | |
| /// Moves the local x. |
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 downloadDoubleQuateCsvFile() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
| var maxColumn = ss.getLastColumn(); | |
| var maxRow = ss.getLastRow(); | |
| var data = ss.getRange(1, 1, maxRow, maxColumn).getValues(); | |
| if (data.length > 1) { | |
| var csv = ""; | |
| for (var row = 0; row < data.length; row++) { | |
| for (var col = 0; col < data[row].length; col++) { | |
| if (data[row][col].toString().indexOf(",") != - 1) { |
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
| task("pre:compile", function (event, logger) { | |
| var wrench = require("wrench"), | |
| fs = require("fs"), | |
| jade = require("jade"), | |
| path = require("path"), | |
| coffee = require("coffee-script"), | |
| stylus = require("stylus"), | |
| style_root = event.dir.styles; | |
| event.alloyConfig.coffee = []; |
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 LoadingScript : MonoBehaviour | |
| { | |
| public string word = "NOW LOADING..."; | |
| public float height = 30.0f; | |
| public float speed = 160.0f; | |
| public float deltaX = 25.0f; | |
| public float deltaTime = 30.0f; |
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 Start () { | |
| //var moment:DateTime = new System.DateTime(1999, 1, 13, 3, 57, 32, 11); | |
| var moment:DateTime = new System.DateTime(2014, 1, 9, 22, 7, 32, 11); | |
| Debug.Log(DateTime.Today); | |
| var delta:TimeSpan = DateTime.Now - moment; | |
| Debug.Log(delta); | |
| Debug.Log(DateTime.Now); | |
| var day:int = delta.TotalDays; | |
| if(day > 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
| - (void)onSubmit | |
| { | |
| [SVProgressHUD showWithStatus:NSLocalizedString(@"TPRegistControllerSending", nil) maskType:SVProgressHUDMaskTypeBlack]; | |
| // フォーム取得 | |
| QEntryElement *email = (QEntryElement *)[self.root elementWithKey:@"email"]; | |
| QEntryElement *password = (QEntryElement *)[self.root elementWithKey:@"password"]; | |
| QEntryElement *password_confirm = (QEntryElement *)[self.root elementWithKey:@"password_confirm"]; | |
| QEntryElement *username = (QEntryElement *)[self.root elementWithKey:@"username"]; | |
| if(email.textValue == NULL || password.textValue == NULL || password_confirm.textValue == NULL || username.textValue == 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
| # -*- coding:utf-8 -*- | |
| from bottle import route, run | |
| import sys | |
| import hashlib | |
| from datetime import datetime | |
| from pymongo import Connection | |
| from pymongo.errors import ConnectionFailure | |
| secret_key = 'mySecretKey' |