hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
b0518d75fb6c1539ec406a12c1c23f326937ba27
489
py
Python
Data Structures/Queue.py
Royals-Aeo-Gamer/MyPyMods
be3a521e9f823ce0b704f925b19f6f34dcb5405d
[ "MIT" ]
null
null
null
Data Structures/Queue.py
Royals-Aeo-Gamer/MyPyMods
be3a521e9f823ce0b704f925b19f6f34dcb5405d
[ "MIT" ]
null
null
null
Data Structures/Queue.py
Royals-Aeo-Gamer/MyPyMods
be3a521e9f823ce0b704f925b19f6f34dcb5405d
[ "MIT" ]
null
null
null
class queue: def __init__(self): self.main = [] self.max_c = 10 def deque(self): del self.main[-1] def enque(self,val): if len(self.main) == self.max_c: self.deque() self.main.insert(0,val) else: self.main.insert(0,val) def show(self): return self.main def __getitem__(self,index): return self.main[index] def __setitem__(self,*args): raise AssertionError("Queue doesn't supports its assertion") def __delitem__(self,index): del self.main[index]
18.111111
62
0.678937
25bdbc78ad2451a51a1ab5d92e88260c2452555e
428
rb
Ruby
spec/parser/input_set_spec.rb
ministryofjustice/smartdown
4e5ef4e0020cf083b081e1d667f0bd27d6e6567e
[ "MIT" ]
6
2015-01-08T15:35:25.000Z
2015-08-21T17:40:31.000Z
spec/parser/input_set_spec.rb
ministryofjustice/smartdown
4e5ef4e0020cf083b081e1d667f0bd27d6e6567e
[ "MIT" ]
12
2015-01-08T10:14:06.000Z
2015-09-22T10:16:01.000Z
spec/parser/input_set_spec.rb
ministryofjustice/smartdown
4e5ef4e0020cf083b081e1d667f0bd27d6e6567e
[ "MIT" ]
2
2019-08-29T11:36:15.000Z
2021-04-10T20:02:31.000Z
require 'smartdown/parser/input_set' require 'support/flow_input_interface' describe Smartdown::Parser::InputSet do it_should_behave_like "flow input interface" end describe Smartdown::Parser::InputData do let(:name) { 'a name' } let(:data) { 'some smartdown' } subject { Smartdown::Parser::InputData.new(name, data) } specify { expect(subject.name).to eql name } specify { expect(subject.read).to eql data } end
26.75
58
0.740654
c38365e1d91124b9d94b179afc2828d174b2bb81
3,175
cs
C#
XFOidcClient2Demo/XFOidcClient2Demo.iOS/OidcClient2Helper/BrowserImpl.cs
paoneJP/XFOidcClient2Demo
287830eaaad35aaa43034246eef15ea3f5863e6d
[ "MIT" ]
null
null
null
XFOidcClient2Demo/XFOidcClient2Demo.iOS/OidcClient2Helper/BrowserImpl.cs
paoneJP/XFOidcClient2Demo
287830eaaad35aaa43034246eef15ea3f5863e6d
[ "MIT" ]
null
null
null
XFOidcClient2Demo/XFOidcClient2Demo.iOS/OidcClient2Helper/BrowserImpl.cs
paoneJP/XFOidcClient2Demo
287830eaaad35aaa43034246eef15ea3f5863e6d
[ "MIT" ]
null
null
null
/* * IdendityModel.OidcClient2 Helper Library for Xamarin.Forms * Author: Takashi Yahata (@paoneJP) * Copyright: (c) 2018 Takashi Yahata * License: MIT License */ using Foundation; using IdentityModel.OidcClient.Browser; using paoneJP.OidcClient2Helper.iOS; using SafariServices; using System; using System.Threading.Tasks; using UIKit; using Xamarin.Forms; [assembly: Dependency(typeof(BrowserImpl))] namespace paoneJP.OidcClient2Helper.iOS { class BrowserImpl : IBrowserEx { public string CustomUrlScheme { private get; set; } public string RedirectUri { private get; set; } public event Action<string> BeforeAuthzRequestHooks; public event Func<string, Task> BeforeAuthzRequestAsyncHooks; public event Action<string, string> AfterAuthzResponseHooks; public event Func<string, string, Task> AfterAuthzResponseAsyncHooks; private SFAuthenticationSession session; public async Task<BrowserResult> InvokeAsync(BrowserOptions options) { var tcs = new TaskCompletionSource<BrowserResult>(); await InvokeBeforeAuthzRequestHooksAsync(options.StartUrl); async void completionHandler(NSUrl url, NSError error) { session = null; if (url == null) { await InvokeAfterAuthzResponseHooksAsync(null, "UserCancel"); tcs.SetResult(new BrowserResult { ResultType = BrowserResultType.UserCancel }); } else { var response = url.AbsoluteString; if (!response.StartsWith(RedirectUri + "#") && !response.StartsWith(RedirectUri + "?")) { await InvokeAfterAuthzResponseHooksAsync(null, response); tcs.SetResult(new BrowserResult { ResultType = BrowserResultType.UnknownError }); } await InvokeAfterAuthzResponseHooksAsync(response, null); tcs.SetResult(new BrowserResult { ResultType = BrowserResultType.Success, Response = response }); } } if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) { session = new SFAuthenticationSession(new NSUrl(options.StartUrl), CustomUrlScheme, completionHandler); session.Start(); } else { SafariViewDelegate.GetInstance().Start(new NSUrl(options.StartUrl), CustomUrlScheme, completionHandler); } return await tcs.Task; } private async Task InvokeBeforeAuthzRequestHooksAsync(string request) { BeforeAuthzRequestHooks?.Invoke(request); if (BeforeAuthzRequestAsyncHooks != null) { await BeforeAuthzRequestAsyncHooks?.Invoke(request); } } private async Task InvokeAfterAuthzResponseHooksAsync(string response, string error) { AfterAuthzResponseHooks?.Invoke(response, error); if (AfterAuthzResponseAsyncHooks != null) { await AfterAuthzResponseAsyncHooks?.Invoke(response, error); } } } }
41.233766
120
0.63685
db83cabd1ff91f80477347dd51f8aafe9f7d8f86
2,358
php
PHP
module/UserRegister/src/Controller/SearchController.php
tora0091/user_register_zf2
285296b8bf80967a5b4d9b272d4743e6086b38ad
[ "BSD-3-Clause" ]
null
null
null
module/UserRegister/src/Controller/SearchController.php
tora0091/user_register_zf2
285296b8bf80967a5b4d9b272d4743e6086b38ad
[ "BSD-3-Clause" ]
null
null
null
module/UserRegister/src/Controller/SearchController.php
tora0091/user_register_zf2
285296b8bf80967a5b4d9b272d4743e6086b38ad
[ "BSD-3-Clause" ]
null
null
null
<?php namespace UserRegister\Controller; use UserRegister\Common\Exception\FileNotFoundException; use Zend\View\Model\ViewModel; class SearchController extends AbstractController { const TAMPLATE_INDEX = 'user-register/search/index'; const TAMPLATE_USER = 'user-register/search/user'; public function indexAction() { $view = new ViewModel(); $session = $this->getSession(); // 検索条件 $searchData = []; $paramNames = ['number', 'section_id']; foreach ($paramNames as $name) { if ($this->params()->fromPost($name) !== null && $this->params()->fromPost($name) !== '') { $searchData[$name] = $this->params()->fromPost($name); } } // 検索処理 $page = $this->params()->fromRoute('page', 1); $limit = $this->getConfig()['search_page_limit']; $searchList = $this->getService('SearchService')->search($searchData, $page, $limit); $view->setVariable('inputs', $searchData); // ページャ作成 $pagenate = $this->getService('SearchService')->pagenate($searchData, $page, $limit); $view->setVariable('pagenate', $pagenate); $this->token()->setToken($view, $session); $view->setVariable('searchList', $searchList); $view->setVariable('sectionList', $this->getSectionList()); $view->setTemplate(self::TAMPLATE_INDEX); return $view; } public function userAction() { $view = new ViewModel(); $number = $this->params()->fromRoute('number', null); if ($number === null) { throw new FileNotFoundException(); } $inputs = $this->getService('UpdateService')->findByNumber($number); if (count($inputs) <= 0) { throw new FileNotFoundException(); } // 郵便番号分割 if (isset($inputs['post_code']) && strlen($inputs['post_code']) > 0) { $inputs += $this->splitPostCode($inputs['post_code']); } $inputs['prefectureText'] = $this->getCodeText($inputs['prefecture_id'], $this->getPrefectureList()); $inputs['sectionText'] = $this->getCodeText($inputs['section_id'], $this->getSectionList()); $view->setVariable('inputs', $inputs); $view->setTemplate(self::TAMPLATE_USER); return $view; } }
35.19403
109
0.579304
14e5a970cdc49d6c2da2c2df2cc4908e8bcb35ba
603
ts
TypeScript
src/pages/entities/trainingday/trainingday-dialog.module.ts
f-hermes/hello-world
60fb2d9c59390f6c47795a4e096f23a837ef3362
[ "Apache-2.0" ]
null
null
null
src/pages/entities/trainingday/trainingday-dialog.module.ts
f-hermes/hello-world
60fb2d9c59390f6c47795a4e096f23a837ef3362
[ "Apache-2.0" ]
null
null
null
src/pages/entities/trainingday/trainingday-dialog.module.ts
f-hermes/hello-world
60fb2d9c59390f6c47795a4e096f23a837ef3362
[ "Apache-2.0" ]
null
null
null
import { NgModule } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; import { IonicPageModule } from 'ionic-angular'; import { TrainingdayDialogPage } from './trainingday-dialog'; import { TrainingdayService } from './trainingday.provider'; @NgModule({ declarations: [ TrainingdayDialogPage ], imports: [ IonicPageModule.forChild(TrainingdayDialogPage), TranslateModule.forChild() ], exports: [ TrainingdayDialogPage ], providers: [ TrainingdayService ] }) export class TrainingdayDialogPageModule { }
25.125
61
0.679934
90f235d810ab68c213b0cd272aebfb5d881ff288
482
rs
Rust
libbit/src/cmd/bit_branch.rs
andyyu2004/bit
4041637b56445b3857a256c8f552a79cdac307d2
[ "MIT" ]
2
2021-04-29T01:34:09.000Z
2021-05-19T11:55:29.000Z
libbit/src/cmd/bit_branch.rs
andyyu2004/bit
4041637b56445b3857a256c8f552a79cdac307d2
[ "MIT" ]
1
2021-05-28T07:34:19.000Z
2021-05-28T07:34:19.000Z
libbit/src/cmd/bit_branch.rs
andyyu2004/bit
4041637b56445b3857a256c8f552a79cdac307d2
[ "MIT" ]
null
null
null
use crate::error::BitResult; use crate::refs::{self, SymbolicRef}; use crate::repo::BitRepo; use crate::rev::Revspec; impl<'rcx> BitRepo<'rcx> { pub fn bit_create_branch(self, name: &str, from: &Revspec) -> BitResult<SymbolicRef> { ensure!(refs::is_valid_name(name), "invalid branch name `{}`", name); let sym = SymbolicRef::new_branch(name); let reference = self.resolve_rev(from)?; self.create_branch(sym, reference)?; Ok(sym) } }
32.133333
90
0.645228
b7754f8a24f2eec03b0a4eb5550898756d22483f
2,368
cc
C++
Alignment/ReferenceTrajectories/src/DualBzeroReferenceTrajectory.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-08-09T08:42:11.000Z
2019-08-09T08:42:11.000Z
Alignment/ReferenceTrajectories/src/DualBzeroReferenceTrajectory.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Alignment/ReferenceTrajectories/src/DualBzeroReferenceTrajectory.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-04-03T19:23:27.000Z
2019-04-03T19:23:27.000Z
#include "Alignment/ReferenceTrajectories/interface/DualBzeroReferenceTrajectory.h" #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h" #include "DataFormats/CLHEP/interface/AlgebraicObjects.h" #include "DataFormats/TrajectoryState/interface/LocalTrajectoryParameters.h" #include "Alignment/ReferenceTrajectories/interface/BzeroReferenceTrajectory.h" DualBzeroReferenceTrajectory::DualBzeroReferenceTrajectory(const TrajectoryStateOnSurface& tsos, const ConstRecHitContainer& forwardRecHits, const ConstRecHitContainer& backwardRecHits, const MagneticField* magField, const reco::BeamSpot& beamSpot, const ReferenceTrajectoryBase::Config& config) : DualReferenceTrajectory(tsos.localParameters().mixedFormatVector().kSize - 1, numberOfUsedRecHits(forwardRecHits) + numberOfUsedRecHits(backwardRecHits) - 1, config), theMomentumEstimate(config.momentumEstimate) { theValidityFlag = construct(tsos, forwardRecHits, backwardRecHits, magField, beamSpot); } ReferenceTrajectory* DualBzeroReferenceTrajectory::construct(const TrajectoryStateOnSurface &referenceTsos, const ConstRecHitContainer &recHits, double mass, MaterialEffects materialEffects, const PropagationDirection propDir, const MagneticField *magField, bool useBeamSpot, const reco::BeamSpot &beamSpot) const { if (materialEffects >= breakPoints) throw cms::Exception("BadConfig") << "[DualBzeroReferenceTrajectory::construct] Wrong MaterialEffects: " << materialEffects; ReferenceTrajectoryBase::Config config(materialEffects, propDir, mass, theMomentumEstimate); config.useBeamSpot = useBeamSpot; config.hitsAreReverse = false; return new BzeroReferenceTrajectory(referenceTsos, recHits, magField, beamSpot, config); } AlgebraicVector DualBzeroReferenceTrajectory::extractParameters(const TrajectoryStateOnSurface &referenceTsos) const { AlgebraicVector param = asHepVector<5>( referenceTsos.localParameters().mixedFormatVector() ); return param.sub( 2, 5 ); }
43.851852
107
0.697213
725081f6d7dc1244d958441cdeb53cd0f823bafd
2,477
kt
Kotlin
src/main/java/de/hpi/tdgt/test/story/atom/assertion/ContentType.kt
hpides/Request-Generator
40d7d8b02a74ea7fde840ed3d50e0563514bc9fe
[ "Apache-2.0" ]
null
null
null
src/main/java/de/hpi/tdgt/test/story/atom/assertion/ContentType.kt
hpides/Request-Generator
40d7d8b02a74ea7fde840ed3d50e0563514bc9fe
[ "Apache-2.0" ]
null
null
null
src/main/java/de/hpi/tdgt/test/story/atom/assertion/ContentType.kt
hpides/Request-Generator
40d7d8b02a74ea7fde840ed3d50e0563514bc9fe
[ "Apache-2.0" ]
null
null
null
/* * WALT - A realistic load generator for web applications. * * Copyright 2020 Eric Ackermann <eric.ackermann@student.hpi.de>, Hendrik Bomhardt * <hendrik.bomhardt@student.hpi.de>, Benito Buchheim * <benito.buchheim@student.hpi.de>, Juergen Schlossbauer * <juergen.schlossbauer@student.hpi.de> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package de.hpi.tdgt.test.story.atom.assertion import de.hpi.tdgt.requesthandling.RestResult import de.hpi.tdgt.test.story.atom.Request import org.apache.logging.log4j.LogManager class ContentType : Assertion() { var contentType: String? = null override fun check(restResult: RestResult?, testid: Long, parent: Request) { if (restResult != null && contentType != restResult.contentType) { log.error("Failed content type assertion\"" + name + "\": expected \"" + contentType + "\" but is actually \"" + restResult.contentType + "\"!") AssertionStorage.instance.addFailure(name, restResult.contentType!!, testid) } } override fun equals(other: Any?): Boolean { if (other === this) return true if (other !is ContentType) return false if (!other.canEqual(this as Any)) return false if (!super.equals(other)) return false val `this$contentType`: Any? = contentType val `other$contentType`: Any? = other.contentType return if (if (`this$contentType` == null) `other$contentType` != null else `this$contentType` != `other$contentType`) false else true } override fun canEqual(other: Any?): Boolean { return other is ContentType } override fun hashCode(): Int { val PRIME = 59 var result = super.hashCode() val `$contentType`: Any? = contentType result = result * PRIME + (`$contentType`?.hashCode() ?: 43) return result } companion object { private val log = LogManager.getLogger(ContentType::class.java) } }
39.31746
156
0.677432
358dbac3c2fe67bb7e7c65e440481557390039dd
410
sql
SQL
src/login/db.sql
mikeludemann/php-helpful-source-code
90dc20d195007371947571a4fb8cd99f42b2d38b
[ "MIT" ]
null
null
null
src/login/db.sql
mikeludemann/php-helpful-source-code
90dc20d195007371947571a4fb8cd99f42b2d38b
[ "MIT" ]
null
null
null
src/login/db.sql
mikeludemann/php-helpful-source-code
90dc20d195007371947571a4fb8cd99f42b2d38b
[ "MIT" ]
null
null
null
CREATE TABLE `user` ( `id` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `username` VARCHAR( 100 ) NOT NULL , `email` VARCHAR( 255 ) NOT NULL , `password` VARCHAR( 32 ) NOT NULL , UNIQUE (`username`) ); INSERT INTO `user` ( `id` , `username` , `email` , `password` ) VALUES( NULL , 'John Doe', 'john.doe@me.org', 'c0a03a69ef1f5cc5d81b5d10ce011e12' ); /* Password: john_doe-1990 */
20.5
74
0.62439
7b56fe6b9e7bc30c1bb41a87f237c7c27360fc87
3,661
rb
Ruby
spec/lib/memorable_spec.rb
zvkemp/memorable
ca3630cc72fa5ea6c4d85649a3add0687eb2a9ef
[ "MIT" ]
null
null
null
spec/lib/memorable_spec.rb
zvkemp/memorable
ca3630cc72fa5ea6c4d85649a3add0687eb2a9ef
[ "MIT" ]
null
null
null
spec/lib/memorable_spec.rb
zvkemp/memorable
ca3630cc72fa5ea6c4d85649a3add0687eb2a9ef
[ "MIT" ]
null
null
null
require_relative '../spec_helper' require 'securerandom' describe Memorable do class DumDum include Memorable def uuid memoize { SecureRandom.uuid } end def uuid=(str) memoize!(:uuid) { str } end def guid memoize(:some_key) { SecureRandom.guid } end end specify { Memorable::VERSION.wont_be_nil } let(:instance) { DumDum.new } describe 'lazy readers' do it 'is instance-idempotent' do instance.uuid.must_equal instance.uuid end it 'is globally unique' do DumDum.new.uuid.wont_equal instance.uuid end end describe 'falsey values' do class DumDum def store_falsey memoize do increment_counter false end end def increment_counter @counter ||= 0 @counter += 1 end attr_reader :counter end specify 'falsey values are cached' do instance.store_falsey.must_equal false instance.counter.must_equal 1 instance.store_falsey.must_equal false instance.counter.must_equal 1 end end describe 'writers' do let(:uuid) { SecureRandom.uuid } it 'overwrites the existing memoized value' do original = instance.uuid instance.uuid = uuid instance.uuid.must_equal uuid original.wont_equal instance.uuid end describe 'methods with arguments' do class DumDum def prepend_uuid(str) memoize([:prepend_uuid, str]) { "#{str}-#{SecureRandom.uuid}" } end end specify { instance.prepend_uuid('hello').wont_equal instance.prepend_uuid('world') } specify { instance.prepend_uuid('hello').must_equal instance.prepend_uuid('hello') } end end describe 'class methods' do class ClassyDumDum include Memorable memoize(:uuid) { SecureRandom.uuid } end let(:instance) { ClassyDumDum.new } describe 'memoize with proc' do specify do instance.uuid.wont_be_nil instance.uuid.must_equal instance.uuid end end describe 'a proc with instance methods' do class ClassyDumDum memoize(:modified_uuid) { modify(SecureRandom.uuid) } def modify(obj) "modified-#{obj}" end end specify { instance.modified_uuid.must_include 'modified-' } specify { instance.modified_uuid.must_equal instance.modified_uuid } specify { instance.modified_uuid.wont_equal instance.uuid } end describe 'a proc with arguments' do class ClassyDumDum memoize(:prepend_with_proc) { |str| "#{str}-#{SecureRandom.uuid}" } end specify { instance.prepend_with_proc('proc').must_equal instance.prepend_with_proc('proc') } specify { instance.prepend_with_proc('proc').wont_equal instance.prepend_with_proc('lambda') } end describe 'memoize an existing method' do class ClassyDumDum def my_unique_method concat('unique', SecureRandom.uuid) end def concat(*strs) strs.join('-') end memoize :my_unique_method end specify { instance.my_unique_method.must_equal instance.my_unique_method } specify { instance.my_unique_method.must_include 'unique-'} end describe 'methods with arguments' do class ClassyDumDum def prepend_uuid(str) "#{str}-#{SecureRandom.uuid}" end memoize :prepend_uuid end specify { instance.prepend_uuid('hello').wont_equal instance.prepend_uuid('world') } specify { instance.prepend_uuid('hello').must_equal instance.prepend_uuid('hello') } end end end
24.245033
100
0.648184
1ab9dcd5dc715e8540317c8375031f6fd62b309f
3,713
py
Python
tests/wings_test.py
TuxEatPi/tuxdroid
99bad3362621d93f640082e594f90368edb53f58
[ "Apache-2.0" ]
1
2019-04-30T15:57:05.000Z
2019-04-30T15:57:05.000Z
tests/wings_test.py
TuxEatPi/tuxdroid
99bad3362621d93f640082e594f90368edb53f58
[ "Apache-2.0" ]
null
null
null
tests/wings_test.py
TuxEatPi/tuxdroid
99bad3362621d93f640082e594f90368edb53f58
[ "Apache-2.0" ]
null
null
null
import time import pytest from tuxdroid.wings import Wings from tuxdroid.gpio import GPIO from tuxdroid.errors import TuxDroidWingsError class TestWings(object): def test_wings_01(self): # Defining callbacks def left_callback(): self.left_pressed = True def right_callback(): self.right_pressed = True config = {"gpio": {"left_button": 5, "right_button": 6, "moving_sensor": 26, "motor_direction_1": 19, "motor_direction_2": 13, } } GPIO.set_config_({"wings": config}) wings = Wings(config) # Test wigs move assert wings.position == "DOWN" wings.up() assert wings.position == "UP" wings.down() assert wings.position == "DOWN" wings.move(3) assert wings.position == "UP" wings.up() assert wings.position == "UP" with pytest.raises(TuxDroidWingsError) as exp: wings.set_position("BAD_POSITION") # Test callbacks self.right_pressed = False self.left_pressed = False wings.add_callback('left', left_callback) assert left_callback in wings._left_callbacks wings.add_callback('right', right_callback) assert right_callback in wings._right_callbacks # Test readd callback wings.add_callback('left', left_callback) assert left_callback in wings._left_callbacks # Test left callbacks wings._button_detected(5) time.sleep(0.5) assert self.left_pressed == True wings._button_detected(6) time.sleep(0.5) assert self.right_pressed == True # Test delete callback wings.del_callback('left', left_callback) assert left_callback not in wings._left_callbacks wings.del_callback('right', right_callback) assert right_callback not in wings._right_callbacks # Bad callbacks with pytest.raises(TuxDroidWingsError) as exp: wings.add_callback('bad_side', None) with pytest.raises(TuxDroidWingsError) as exp: wings.add_callback('left', None) with pytest.raises(TuxDroidWingsError) as exp: wings.del_callback('bad_side', None) wings.del_callback('left', left_callback) # Bad button with pytest.raises(TuxDroidWingsError) as exp: wings._button_detected('bad_gpio_id') # Bad moves with pytest.raises(TuxDroidWingsError) as exp: wings._wings_rotation_callback('bad_gpio_id') old_position = wings.position wings._wings_rotation_callback(wings._moving_sensor) assert old_position == wings.position wings.is_calibrated = False wings.is_moving = True wings._wings_rotation_callback(wings._moving_sensor) assert old_position == wings.position wings.is_calibrated = True wings.position = "BAD_POSITION" with pytest.raises(TuxDroidWingsError) as exp: wings._wings_rotation_callback(wings._moving_sensor) wings.stop() def test_tux_badconfig_wings(self): config = {'missing_gpio': 5} with pytest.raises(TuxDroidWingsError) as exp: wings = Wings(config) config = {'gpio': {'missing': 4}} with pytest.raises(TuxDroidWingsError) as exp: wings = Wings(config) config = {'gpio': {'left_button': 'badid'}} with pytest.raises(TuxDroidWingsError) as exp: wings = Wings(config)
34.06422
64
0.607595
a4607b12221b07d39ccfc23c9641d3640db0bcf0
257
php
PHP
src/Models/Metadata/CommunityThemeLayoutType.php
cnsdose/salesforce-php
1ea252340ddc80a6eab6a82cbf52b1cb7b837729
[ "MIT" ]
null
null
null
src/Models/Metadata/CommunityThemeLayoutType.php
cnsdose/salesforce-php
1ea252340ddc80a6eab6a82cbf52b1cb7b837729
[ "MIT" ]
null
null
null
src/Models/Metadata/CommunityThemeLayoutType.php
cnsdose/salesforce-php
1ea252340ddc80a6eab6a82cbf52b1cb7b837729
[ "MIT" ]
null
null
null
<?php /** * Created automatically by salesforce-sdk. */ namespace CNSDose\Salesforce\Models\Metadata; use MyCLabs\Enum\Enum; class CommunityThemeLayoutType extends Enum { const LOGIN = 'Login'; const HOME = 'Home'; const INNER = 'Inner'; }
16.0625
45
0.696498
8d6ff562bacb4ab4e34df4ed36e7e2f7a07e1da1
503
es6
JavaScript
open/error.es6
DannyMcwaves/oo-fs
8029ad84d229e5e767cea3c5800419ea20f22845
[ "MIT" ]
5
2016-12-31T16:09:18.000Z
2021-07-07T07:33:51.000Z
open/error.es6
DannyMcwaves/fs-util
8029ad84d229e5e767cea3c5800419ea20f22845
[ "MIT" ]
null
null
null
open/error.es6
DannyMcwaves/fs-util
8029ad84d229e5e767cea3c5800419ea20f22845
[ "MIT" ]
null
null
null
// #! /usr/bin/env node // this is the base error class from which all other errors within the package are raised. // this error class inherits from the builtin error class. class FSError extends Error{ constructor(message) { super(message); this.name = "FSError"; } } /* try { throw new FSError("what the fuck"); } catch (e) { console.log(e.message); } finally { console.log("Finally my custom exception is working correctly"); } */ module.exports = FSError;
19.346154
91
0.658052
a3bed832493b71379755046d8828458d31538ab7
9,490
java
Java
apps/bfd-pipeline/bfd-pipeline-rda-grpc/src/main/java/gov/cms/bfd/pipeline/rda/grpc/RdaServerJob.java
mjburling/beneficiary-fhir-data
1ff4a55ab8cffbcc7a2e32eae1bf940cbc38a052
[ "CC0-1.0" ]
null
null
null
apps/bfd-pipeline/bfd-pipeline-rda-grpc/src/main/java/gov/cms/bfd/pipeline/rda/grpc/RdaServerJob.java
mjburling/beneficiary-fhir-data
1ff4a55ab8cffbcc7a2e32eae1bf940cbc38a052
[ "CC0-1.0" ]
null
null
null
apps/bfd-pipeline/bfd-pipeline-rda-grpc/src/main/java/gov/cms/bfd/pipeline/rda/grpc/RdaServerJob.java
mjburling/beneficiary-fhir-data
1ff4a55ab8cffbcc7a2e32eae1bf940cbc38a052
[ "CC0-1.0" ]
null
null
null
package gov.cms.bfd.pipeline.rda.grpc; import static gov.cms.bfd.pipeline.rda.grpc.server.RdaService.RDA_PROTO_VERSION; import static java.lang.String.format; import com.amazonaws.regions.Regions; import com.amazonaws.services.s3.AmazonS3; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.base.Strings; import gov.cms.bfd.pipeline.rda.grpc.server.MessageSource; import gov.cms.bfd.pipeline.rda.grpc.server.RandomFissClaimSource; import gov.cms.bfd.pipeline.rda.grpc.server.RandomMcsClaimSource; import gov.cms.bfd.pipeline.rda.grpc.server.RdaServer; import gov.cms.bfd.pipeline.rda.grpc.server.RdaService; import gov.cms.bfd.pipeline.rda.grpc.server.S3JsonMessageSources; import gov.cms.bfd.pipeline.sharedutils.NullPipelineJobArguments; import gov.cms.bfd.pipeline.sharedutils.PipelineJob; import gov.cms.bfd.pipeline.sharedutils.PipelineJobOutcome; import gov.cms.bfd.pipeline.sharedutils.PipelineJobSchedule; import gov.cms.bfd.pipeline.sharedutils.s3.SharedS3Utilities; import gov.cms.mpsm.rda.v1.FissClaimChange; import gov.cms.mpsm.rda.v1.McsClaimChange; import io.grpc.Server; import java.io.Serializable; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.Optional; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Getter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * PipelineJob implementation that runs a mock RDA API server using the gRPC in-process mode. Since * gRPC uses its own thread pool the job thread simply sleeps and waits for an interrupt to be * received. When the interrupt is received the server is stopped. */ public class RdaServerJob implements PipelineJob<NullPipelineJobArguments> { private static final Logger LOGGER = LoggerFactory.getLogger(RdaServerJob.class); private static final Duration SERVER_SHUTDOWN_TIMEOUT = Duration.ofMinutes(5); private final Config config; private final AtomicInteger running; public RdaServerJob(Config config) { this.config = config; running = new AtomicInteger(); } @Override public Optional<PipelineJobSchedule> getSchedule() { return Optional.of(new PipelineJobSchedule(config.runInterval.toMillis(), ChronoUnit.MILLIS)); } @Override public boolean isInterruptible() { return true; } /** * Starts the mock grpc server, waits for an InterruptedException, then stops the server. The job * can potentially run for the entire lifetime of the pipeline app. Any exception thrown by the * server causes the job to clean up and terminate and logs the exception but does not pass it * through so that the job can be restarted. */ @Override public PipelineJobOutcome call() throws Exception { try { LOGGER.info("starting server with name {} and mode {}", config.serverName, config.serverMode); final Server server = RdaServer.startInProcess( RdaServer.InProcessConfig.builder() .serverName(config.serverName) .version(config.createVersion()) .fissSourceFactory(config::createFissClaims) .mcsSourceFactory(config::createMcsClaims) .build()); try { running.incrementAndGet(); try { LOGGER.info("server started - sleeping..."); Thread.sleep(Long.MAX_VALUE); } catch (InterruptedException ex) { LOGGER.info("sleep interrupted"); } } finally { running.decrementAndGet(); LOGGER.info("telling server to shut down"); server.shutdown(); LOGGER.info("waiting up to {} for server to finish shutting down", SERVER_SHUTDOWN_TIMEOUT); server.awaitTermination(SERVER_SHUTDOWN_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS); } LOGGER.info("server shutdown complete"); } catch (Exception ex) { LOGGER.error("server terminated by an exception: message={}", ex.getMessage(), ex); } return PipelineJobOutcome.WORK_DONE; } /** * Method to indicate if the server is currently running. Intended for coordinating integration * tests. * * @return true if the server has been started, false otherwise */ @VisibleForTesting public boolean isServerRunning() { return running.get() > 0; } @Getter @EqualsAndHashCode public static class Config implements Serializable { private static final long serialVersionUID = 9653997632697744L; /** Default name used by the in-process gRPC server. */ public static final String DEFAULT_SERVER_NAME = "mock-rda-server"; /** Default run interval for the job that manages the in-process gRPC server. */ public static final Duration DEFAULT_RUN_INTERVAL = Duration.ofMinutes(5); /** Default PRNG seed used to generate random claims when running in Random mode. */ public static final long DEFAULT_SEED = 1; /** Default number of random claims to return to clients when running in Random mode. */ public static final int DEFAULT_MAX_CLAIMS = 1_000; /** * runInterval specifies how often the job should be scheduled. It is used to create a return * value for the PipelineJob.getSchedule() method. */ private final Duration runInterval; /** * Server can either return data from an S3 bucket or generate random data. This field * determines which mode the server will use. */ private final ServerMode serverMode; /** * Name given to the in-process gRPC server. Clients use this name to open a ManagedChannel to * the server. */ private final String serverName; /** The starting PRNG seed when operating in {@code Random} mode. */ private final long randomSeed; /** The maximum number of claims to be returned when operating in {@code Random} mode. */ private final int randomMaxClaims; /** The S3 connection details when operating in {@code S3} mode. */ @EqualsAndHashCode.Exclude private final S3JsonMessageSources s3Sources; public enum ServerMode { Random, S3 } public Config() { this(ServerMode.Random, DEFAULT_SERVER_NAME, null, null, null, null, null, null); } @Builder private Config( ServerMode serverMode, String serverName, Duration runInterval, Long randomSeed, Integer randomMaxClaims, Regions s3Region, String s3Bucket, String s3Directory) { Preconditions.checkNotNull(serverMode, "serverMode is required"); if (serverMode == ServerMode.S3) { Preconditions.checkArgument( !Strings.isNullOrEmpty(serverName), "serverName is required in S3 mode"); Preconditions.checkArgument( !Strings.isNullOrEmpty(s3Bucket), "S3 bucket is required in S3 mode"); } this.serverMode = serverMode; this.serverName = serverName; this.runInterval = runInterval == null ? DEFAULT_RUN_INTERVAL : runInterval; this.randomSeed = randomSeed == null ? DEFAULT_SEED : randomSeed; this.randomMaxClaims = randomMaxClaims == null ? DEFAULT_MAX_CLAIMS : randomMaxClaims; if (Strings.isNullOrEmpty(s3Bucket)) { s3Sources = null; } else { final Regions region = s3Region == null ? SharedS3Utilities.REGION_DEFAULT : s3Region; final AmazonS3 s3Client = SharedS3Utilities.createS3Client(region); final String directory = s3Directory == null ? "" : s3Directory; s3Sources = new S3JsonMessageSources(s3Client, s3Bucket, directory); } } private RdaService.Version createVersion() { RdaService.Version.VersionBuilder versionBuilder = RdaService.Version.builder(); if (serverMode == ServerMode.S3) { versionBuilder.version(format("S3:%d:%s", System.currentTimeMillis(), RDA_PROTO_VERSION)); } else { versionBuilder.version(format("Random:%d:%s", randomSeed, RDA_PROTO_VERSION)); } return versionBuilder.build(); } private MessageSource<FissClaimChange> createFissClaims(long sequenceNumber) throws Exception { if (serverMode == ServerMode.S3) { LOGGER.info( "serving FissClaims using JsonClaimSource with data from S3 bucket {}", s3Sources.getBucketName()); return s3Sources.fissClaimChangeFactory().apply(sequenceNumber); } else { LOGGER.info( "serving no more than {} FissClaims using RandomFissClaimSource with seed {}", randomMaxClaims, randomSeed); return new RandomFissClaimSource(randomSeed, randomMaxClaims) .toClaimChanges() .skip(sequenceNumber); } } private MessageSource<McsClaimChange> createMcsClaims(long sequenceNumber) throws Exception { if (serverMode == ServerMode.S3) { LOGGER.info( "serving McsClaims using JsonClaimSource with data from S3 bucket {}", s3Sources.getBucketName()); return s3Sources.mcsClaimChangeFactory().apply(sequenceNumber); } else { LOGGER.info( "serving no more than {} McsClaims using RandomMcsClaimSource with seed {}", randomMaxClaims, randomSeed); return new RandomMcsClaimSource(randomSeed, randomMaxClaims) .toClaimChanges() .skip(sequenceNumber); } } } }
39.053498
100
0.70137
784843e9222d3ea4f30ca29e8791539af8189fe4
41
swift
Swift
Project Templates/Custom/Good Project.xctemplate/Extensions/Foundation/String+Extensions.swift
GoodRequest/Temple
117abb4adc4a372ffc220c28effa2bca6d24d689
[ "MIT" ]
null
null
null
Project Templates/Custom/Good Project.xctemplate/Extensions/Foundation/String+Extensions.swift
GoodRequest/Temple
117abb4adc4a372ffc220c28effa2bca6d24d689
[ "MIT" ]
1
2021-06-09T07:04:13.000Z
2021-08-10T09:29:09.000Z
Project Templates/Custom/Good Project.xctemplate/Extensions/Foundation/String+Extensions.swift
GoodRequest/Temple
117abb4adc4a372ffc220c28effa2bca6d24d689
[ "MIT" ]
null
null
null
// ___FILEHEADER___ extension String {}
10.25
19
0.756098
d63aac9fd3278b9b482d6447bf5e060b525e694a
568
cs
C#
Fancy/Fancy.Web/App_Start/NinjectModules/CommonNinjectModule.cs
Telerik-Fancy/Project
4c6581a413fd598f235bb733efee4758bd476d91
[ "MIT" ]
null
null
null
Fancy/Fancy.Web/App_Start/NinjectModules/CommonNinjectModule.cs
Telerik-Fancy/Project
4c6581a413fd598f235bb733efee4758bd476d91
[ "MIT" ]
null
null
null
Fancy/Fancy.Web/App_Start/NinjectModules/CommonNinjectModule.cs
Telerik-Fancy/Project
4c6581a413fd598f235bb733efee4758bd476d91
[ "MIT" ]
null
null
null
using Ninject.Modules; using Ninject.Extensions.Conventions; using Ninject.Extensions.Conventions.Syntax; namespace Fancy.Web.App_Start.NinjectModules { public class CommonNinjectModule : NinjectModule { public override void Load() { this.Bind(this.BindAllClassesByConvention); } private void BindAllClassesByConvention(IFromSyntax bind) { bind .FromAssembliesMatching("*.Common.*") .SelectAllClasses() .BindDefaultInterface(); } } }
25.818182
65
0.623239
3a2a0c29beb94c176bb0c2f72c61ff2d46afe59a
727
asm
Assembly
oeis/146/A146086.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/146/A146086.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/146/A146086.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A146086: Number of n-digit numbers with each digit odd where the digits 1 and 3 occur an even number of times. ; 3,11,45,197,903,4271,20625,100937,498123,2470931,12295605,61300877,305972943,1528270391,7636568985,38168496017,190799433363,953868026651,4768952712765,23843601302357,119214519727383,596062138283711,2980279310358945,14901302408615897,74506229613543003,372530300779105571,1862648962029699525,9313237184551012637,46566163045962608223,232830746599435676231,1164153527106046286505,5820767017856835148577,29103833236263986891043,145519160622259367899691,727595786434115139831885,3637978882139030600159717 add $0,1 mov $1,5 pow $1,$0 mov $2,3 pow $2,$0 mul $2,2 add $1,$2 div $1,8 sub $1,1 mul $1,2 add $1,3 mov $0,$1
45.4375
500
0.839065
9398ceb80a3be5a69ce12348c6c6df67f321c3bd
2,487
cs
C#
Web/WebTool.cs
Euynac/Koubot.Tool
4955ad4422d240b5bd08c817f22fed436aec0b18
[ "MIT" ]
5
2021-02-09T03:20:39.000Z
2022-01-04T01:49:56.000Z
Web/WebTool.cs
Euynac/Koubot.Tool
4955ad4422d240b5bd08c817f22fed436aec0b18
[ "MIT" ]
null
null
null
Web/WebTool.cs
Euynac/Koubot.Tool
4955ad4422d240b5bd08c817f22fed436aec0b18
[ "MIT" ]
1
2021-02-09T03:20:47.000Z
2021-02-09T03:20:47.000Z
using System; using System.Security.Cryptography; using System.Text; namespace Koubot.Tool.Web { /// <summary> /// 网络/安全方向工具 /// </summary> public class WebTool { /// <summary> /// Base64加密,出错将返回原文,默认按UTF8加密 /// </summary> /// <param name="source">原文</param> /// <param name="codeType">编码类型</param> /// <returns></returns> public static string EncodeBase64(string source, Encoding codeType = null) { if (string.IsNullOrEmpty(source)) return ""; if (codeType == null) { codeType = Encoding.UTF8; } string encode; try { byte[] bytes = codeType.GetBytes(source); encode = Convert.ToBase64String(bytes); } catch { encode = source; } return encode; } /// <summary> /// Base64解密,出错将返回原文,默认按UTF8解密 /// </summary> /// <param name="source">原文</param> /// <param name="codeType">编码类型,为空默认是UTF8</param> /// <returns></returns> public static string DecodeBase64(string source, Encoding codeType = null) { if (string.IsNullOrEmpty(source)) return ""; if (codeType == null) { codeType = Encoding.UTF8; } string decode; try { byte[] bytes = Convert.FromBase64String(source); decode = codeType.GetString(bytes); } catch { decode = source; } return decode; } /// <summary> /// 计算MD5值 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string EncryptStringMD5(string str) { if (string.IsNullOrEmpty(str)) return ""; MD5 md5 = MD5.Create(); // 将字符串转换成字节数组 byte[] byteOld = Encoding.UTF8.GetBytes(str); // 调用加密方法 byte[] byteNew = md5.ComputeHash(byteOld); // 将加密结果转换为字符串 StringBuilder sb = new StringBuilder(); foreach (byte b in byteNew) { // 将字节转换成16进制表示的字符串, sb.Append(b.ToString("x2")); } // 返回加密的字符串 return sb.ToString(); } } }
27.633333
82
0.461198
61d05b88e25b2d3e1657930379b5bc9b32c604e3
2,583
lua
Lua
lua/bsu/defines.lua
ANormalTwig/BSU
192871db7747a6eddc595033c864f0bffa244a55
[ "MIT" ]
null
null
null
lua/bsu/defines.lua
ANormalTwig/BSU
192871db7747a6eddc595033c864f0bffa244a55
[ "MIT" ]
null
null
null
lua/bsu/defines.lua
ANormalTwig/BSU
192871db7747a6eddc595033c864f0bffa244a55
[ "MIT" ]
null
null
null
-- bsu/defines.lua -- defines some values on both the server and client BSU = BSU or {} -- some info BSU.TITLE = "Beans Server Utilities" BSU.VERSION = "0.0.1-dev" -- directory paths BSU.DIR = "bsu/" BSU.DIR_BASE = BSU.DIR .. "base/" BSU.DIR_LIB = BSU.DIR .. "lib/" BSU.DIR_MODULES = BSU.DIR .. "modules/" -- privilege values BSU.PRIV_MODEL = 0 BSU.PRIV_NPC = 1 BSU.PRIV_SENT = 2 BSU.PRIV_SWEP = 3 BSU.PRIV_TOOL = 4 BSU.PRIV_CMD = 5 -- prop protection values BSU.PP_PHYSGUN = 0 BSU.PP_GRAVGUN = 1 BSU.PP_TOOLGUN = 2 BSU.PP_USE = 3 BSU.PP_DAMAGE = 4 --BSU.PP_NOCOLLIDE = 5 -- color values (mainly used for command messages) BSU.CLR_ERROR = Color(255, 127, 0) -- error messages (orange) BSU.CLR_TEXT = Color(151, 211, 255) -- normal text (light blue) BSU.CLR_PARAM = Color(0, 255, 0) -- when a parameter isn't an entity (green) BSU.CLR_SELF = Color(75, 0, 130) -- when target is client (dark purple) BSU.CLR_EVERYONE = Color(0, 130, 130) -- when targeting all plys on the server (cyan) BSU.CLR_CONSOLE = Color(0, 0, 0) -- server console name (black) BSU.CLR_MISC = Color(255, 255, 255) -- other (just used for non-player ents) (white) BSU.CMD_PREFIX = "!" if SERVER then -- server SQL database table names BSU.SQL_TEAMS = "bsu_teams" BSU.SQL_GROUPS = "bsu_groups" BSU.SQL_PLAYERS = "bsu_players" BSU.SQL_PDATA = "bsu_pdata" BSU.SQL_BANS = "bsu_bans" BSU.SQL_GROUP_PRIVS = "bsu_grp_privs" BSU.SQL_PLAYER_PRIVS = "bsu_ply_privs" BSU.SQL_GROUP_LIMITS = "bsu_grp_limits" BSU.SQL_PLAYER_LIMITS = "bsu_ply_limits" -- command access values BSU.CMD_NOONE = 0 -- access only via the server console (useful if you want a command to only be player accessible using privileges) BSU.CMD_ADMIN = 1 -- access only for admins, superadmins and via the server console BSU.CMD_SUPERADMIN = 2 -- access only for superadmins and via the server console BSU.CMD_ANYONE = 3 -- access to any person -- id of the group that players are automatically set to (like when they join for the first time) BSU.DEFAULT_GROUP = "user" -- id of the team that bots should be assigned to BSU.BOT_TEAM = 4 BSU.BAN_MSG = [[============ You've Been Banned! =========== Ban Reason: %reason% Time Length: %duration% Time Remaining: %remaining% Ban Date: %time% =====================================]] else -- client SQL database table names BSU.SQL_PP = "bsu_pp" end
30.388235
139
0.638405
8e9e4acdb43aa22504ccbddfc5170e41bd4d2482
790
js
JavaScript
src/components/SummaryItem/index.js
EduardoAlphonse/lolquiz
7b2cbffda4d243e3c928491700cf78ec95e269cc
[ "MIT" ]
null
null
null
src/components/SummaryItem/index.js
EduardoAlphonse/lolquiz
7b2cbffda4d243e3c928491700cf78ec95e269cc
[ "MIT" ]
2
2021-02-15T15:02:20.000Z
2021-02-17T13:28:12.000Z
src/components/SummaryItem/index.js
EduardoAlphonse/lolquiz
7b2cbffda4d243e3c928491700cf78ec95e269cc
[ "MIT" ]
null
null
null
import styled, { css } from 'styled-components'; const StyledSummaryItem = styled.div` padding: 5px 10px; margin-bottom: 20px; border: 0px; border-left-width: 4px; border-style: solid; background-color: #FFFFFF; p { margin: 0; font-size: 1rem; } p:first-child { margin-bottom: 3px; } .summary-question { font-size: 0.8rem; } .summary-answer { font-size: 1.5rem; font-weight: 600; /* ${({ theme, correct }) => ( correct ? css`color: ${theme.colors.green.color};` : css`color: ${theme.colors.red.color};` )}; */ } ${({ theme, correct }) => ( correct ? css`border-color: ${theme.colors.green.color};` : css`border-color: ${theme.colors.red.color};` )}; `; export default StyledSummaryItem;
18.809524
55
0.588608
da71225aabfc78eb9de6ef558a97ec2f2eefa3ab
5,390
php
PHP
database/seeds/MenuItemsTableSeederCustom.php
Assimzer/comerce2
616d18f2b7e6190ec07337c9891c00c413cdc735
[ "MIT" ]
80
2020-07-20T13:03:46.000Z
2021-07-11T14:27:03.000Z
database/seeds/MenuItemsTableSeederCustom.php
Assimzer/comerce2
616d18f2b7e6190ec07337c9891c00c413cdc735
[ "MIT" ]
4
2021-08-12T03:21:31.000Z
2022-03-24T12:49:52.000Z
database/seeds/MenuItemsTableSeederCustom.php
Assimzer/comerce2
616d18f2b7e6190ec07337c9891c00c413cdc735
[ "MIT" ]
23
2020-07-20T13:03:56.000Z
2021-07-10T08:40:13.000Z
<?php use Illuminate\Database\Seeder; use TCG\Voyager\Models\Menu; use TCG\Voyager\Models\MenuItem; class MenuItemsTableSeederCustom extends Seeder { /** * Auto generated seed file. * * @return void */ public function run() { $menu = Menu::where('name', 'main')->firstOrFail(); $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Shop', 'url' => '', 'route' => 'shop.index', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => null, 'color' => null, 'parent_id' => null, 'order' => 1, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'About', 'url' => '#', 'route' => null, ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => null, 'color' => null, 'parent_id' => null, 'order' => 2, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Blog', 'url' => '#', 'route' => null, ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => null, 'color' => null, 'parent_id' => null, 'order' => 3, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Cart', 'url' => null, 'route' => 'cart.index', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => null, 'color' => null, 'parent_id' => null, 'order' => 4, ])->save(); } // ADMIN MENU EXTENSION $menu = Menu::where('name', 'admin')->firstOrFail(); $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Products', 'url' => '', 'route' => 'voyager.products.index', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => 'voyager-bag', 'color' => null, 'parent_id' => null, 'order' => 15, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Categories', 'url' => '', 'route' => 'voyager.category.index', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => 'voyager-categories', 'color' => null, 'parent_id' => null, 'order' => 16, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Coupons', 'url' => '', 'route' => 'voyager.coupons.index', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => 'voyager-wand', 'color' => null, 'parent_id' => null, 'order' => 17, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Tags', 'url' => '', 'route' => 'voyager.tags.index', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => 'voyager-tag', 'color' => null, 'parent_id' => null, 'order' => 18, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Orders', 'url' => '', 'route' => 'voyager.orders.index', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => 'voyager-documentation', 'color' => null, 'parent_id' => null, 'order' => 19, ])->save(); } $menuItem = MenuItem::firstOrNew([ 'menu_id' => $menu->id, 'title' => 'Country Visits', 'url' => '', 'route' => 'voyager.visits', ]); if (!$menuItem->exists) { $menuItem->fill([ 'target' => '_self', 'icon_class' => 'voyager-pie-chart', 'color' => null, 'parent_id' => null, 'order' => 20, ])->save(); } } }
29.135135
60
0.350835
4cd93e10694ba9b9a5521bb1f56cc97f709b6c3e
1,900
py
Python
sindy/lorenz-pysindy/src/1_generate_data.py
bstollnitz/sindy
213d6836795fdf6535437acde57d68f1c6a3c272
[ "MIT" ]
null
null
null
sindy/lorenz-pysindy/src/1_generate_data.py
bstollnitz/sindy
213d6836795fdf6535437acde57d68f1c6a3c272
[ "MIT" ]
null
null
null
sindy/lorenz-pysindy/src/1_generate_data.py
bstollnitz/sindy
213d6836795fdf6535437acde57d68f1c6a3c272
[ "MIT" ]
null
null
null
"""Data generation step.""" import argparse import logging from pathlib import Path from typing import Tuple import h5py import numpy as np from scipy.integrate import solve_ivp from common import BETA, DATA_DIR, RHO, SIGMA def lorenz(_: float, u: np.ndarray, sigma: float, rho: float, beta: float) -> np.ndarray: """Returns a list containing the three functions of the Lorenz equation. The Lorenz equations have constant coefficients (that don't depend on t), but we still receive t as the first parameter because that's how the integrator works. """ x = u[0] y = u[1] z = u[2] dx_dt = sigma * (y - x) dy_dt = x * (rho - z) - y dz_dt = x * y - beta * z return np.hstack((dx_dt, dy_dt, dz_dt)) def generate_data() -> Tuple[np.ndarray, np.ndarray]: """Simulates observed data u with the help of an integrator for the Lorenz equations. """ t0 = 0.001 dt = 0.001 tmax = 100 n = int(tmax / dt) # Step 1: Generate data u. u0 = np.array([-8, 8, 27]) t = np.linspace(start=t0, stop=tmax, num=n) result = solve_ivp(fun=lorenz, t_span=(t0, tmax), y0=u0, t_eval=t, args=(SIGMA, RHO, BETA)) u = result.y.T return (u, t) def main() -> None: logging.info("Generating data.") parser = argparse.ArgumentParser() parser.add_argument("--data_dir", dest="data_dir", default=DATA_DIR) args = parser.parse_args() data_dir = args.data_dir (u, t) = generate_data() Path(data_dir).mkdir(exist_ok=True) data_file_path = Path(data_dir, "data.hdf5") with h5py.File(data_file_path, "w") as file: file.create_dataset(name="u", data=u) file.create_dataset(name="t", data=t) if __name__ == "__main__": logging.basicConfig(level=logging.INFO) main()
25.333333
78
0.61
60f461f46905761865904a346abe8528eb072dd3
109
kt
Kotlin
app/src/main/java/ds/litvinov/DriveOk/model/BtDevice.kt
DSLitvinov/okcheck
f157890e64bc1fc3728fc07cda2b4993f22620a0
[ "Unlicense" ]
null
null
null
app/src/main/java/ds/litvinov/DriveOk/model/BtDevice.kt
DSLitvinov/okcheck
f157890e64bc1fc3728fc07cda2b4993f22620a0
[ "Unlicense" ]
null
null
null
app/src/main/java/ds/litvinov/DriveOk/model/BtDevice.kt
DSLitvinov/okcheck
f157890e64bc1fc3728fc07cda2b4993f22620a0
[ "Unlicense" ]
null
null
null
package ds.litvinov.DriveOk.model class BtDevice( var bt_name:String = "", val bt_mac:String = "" )
18.166667
33
0.669725
394643f8524d1b4b2d5959a7eae928017e0059c5
4,628
py
Python
TAPI_RI/flask_server/tapi_server/models/validation_mechanism.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
TAPI_RI/flask_server/tapi_server/models/validation_mechanism.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
TAPI_RI/flask_server/tapi_server/models/validation_mechanism.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from tapi_server.models.base_model_ import Model from tapi_server import util class ValidationMechanism(Model): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self, validation_mechanism: str=None, layer_protocol_adjacency_validated: str=None, validation_robustness: str=None): # noqa: E501 """ValidationMechanism - a model defined in Swagger :param validation_mechanism: The validation_mechanism of this ValidationMechanism. # noqa: E501 :type validation_mechanism: str :param layer_protocol_adjacency_validated: The layer_protocol_adjacency_validated of this ValidationMechanism. # noqa: E501 :type layer_protocol_adjacency_validated: str :param validation_robustness: The validation_robustness of this ValidationMechanism. # noqa: E501 :type validation_robustness: str """ self.swagger_types = { 'validation_mechanism': str, 'layer_protocol_adjacency_validated': str, 'validation_robustness': str } self.attribute_map = { 'validation_mechanism': 'validation-mechanism', 'layer_protocol_adjacency_validated': 'layer-protocol-adjacency-validated', 'validation_robustness': 'validation-robustness' } self._validation_mechanism = validation_mechanism self._layer_protocol_adjacency_validated = layer_protocol_adjacency_validated self._validation_robustness = validation_robustness @classmethod def from_dict(cls, dikt) -> 'ValidationMechanism': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The validation-mechanism of this ValidationMechanism. # noqa: E501 :rtype: ValidationMechanism """ return util.deserialize_model(dikt, cls) @property def validation_mechanism(self) -> str: """Gets the validation_mechanism of this ValidationMechanism. Name of mechanism used to validate adjacency # noqa: E501 :return: The validation_mechanism of this ValidationMechanism. :rtype: str """ return self._validation_mechanism @validation_mechanism.setter def validation_mechanism(self, validation_mechanism: str): """Sets the validation_mechanism of this ValidationMechanism. Name of mechanism used to validate adjacency # noqa: E501 :param validation_mechanism: The validation_mechanism of this ValidationMechanism. :type validation_mechanism: str """ self._validation_mechanism = validation_mechanism @property def layer_protocol_adjacency_validated(self) -> str: """Gets the layer_protocol_adjacency_validated of this ValidationMechanism. State of validatiion # noqa: E501 :return: The layer_protocol_adjacency_validated of this ValidationMechanism. :rtype: str """ return self._layer_protocol_adjacency_validated @layer_protocol_adjacency_validated.setter def layer_protocol_adjacency_validated(self, layer_protocol_adjacency_validated: str): """Sets the layer_protocol_adjacency_validated of this ValidationMechanism. State of validatiion # noqa: E501 :param layer_protocol_adjacency_validated: The layer_protocol_adjacency_validated of this ValidationMechanism. :type layer_protocol_adjacency_validated: str """ self._layer_protocol_adjacency_validated = layer_protocol_adjacency_validated @property def validation_robustness(self) -> str: """Gets the validation_robustness of this ValidationMechanism. Quality of validation (i.e. how likely is the stated validation to be invalid) # noqa: E501 :return: The validation_robustness of this ValidationMechanism. :rtype: str """ return self._validation_robustness @validation_robustness.setter def validation_robustness(self, validation_robustness: str): """Sets the validation_robustness of this ValidationMechanism. Quality of validation (i.e. how likely is the stated validation to be invalid) # noqa: E501 :param validation_robustness: The validation_robustness of this ValidationMechanism. :type validation_robustness: str """ self._validation_robustness = validation_robustness
37.626016
148
0.71586
4a306bbf21aabac99b9a212cd1469bf8ab39f93c
30,469
sql
SQL
db_sejarahbkl.sql
bernatdsitumeang/Sistem-Informasi-Sejarah-Bengkulu
6ddd8230b1b760bc0d73275650678aa285567c7e
[ "MIT" ]
null
null
null
db_sejarahbkl.sql
bernatdsitumeang/Sistem-Informasi-Sejarah-Bengkulu
6ddd8230b1b760bc0d73275650678aa285567c7e
[ "MIT" ]
null
null
null
db_sejarahbkl.sql
bernatdsitumeang/Sistem-Informasi-Sejarah-Bengkulu
6ddd8230b1b760bc0d73275650678aa285567c7e
[ "MIT" ]
1
2022-01-16T02:00:23.000Z
2022-01-16T02:00:23.000Z
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 09, 2021 at 07:07 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_sejarahbkl` -- -- -------------------------------------------------------- -- -- Table structure for table `tbl_about` -- CREATE TABLE `tbl_about` ( `about_id` int(11) NOT NULL, `about_image` varchar(100) DEFAULT NULL, `about_description` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_about` -- INSERT INTO `tbl_about` (`about_id`, `about_image`, `about_description`) VALUES (1, 'tugu-thomas-parr.jpg', 'SEJARAH BENGKULU adalah web yang menampilkan konten-konten sejarah seputar kota Bengkulu.<br><br><br>\r\n'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_category` -- CREATE TABLE `tbl_category` ( `category_id` int(11) NOT NULL, `category_name` varchar(200) DEFAULT NULL, `category_slug` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_category` -- INSERT INTO `tbl_category` (`category_id`, `category_name`, `category_slug`) VALUES (4, 'Kategori 1', 'kategori-1'), (5, 'Kategori 2', 'kategori-2'), (6, 'Kategori 3', 'kategori-3'), (7, 'Kategori 4', 'kategori-4'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_comment` -- CREATE TABLE `tbl_comment` ( `comment_id` int(11) NOT NULL, `comment_date` timestamp NULL DEFAULT current_timestamp(), `comment_name` varchar(60) DEFAULT NULL, `comment_email` varchar(90) DEFAULT NULL, `comment_message` text DEFAULT NULL, `comment_status` int(11) DEFAULT 0, `comment_parent` int(11) DEFAULT 0, `comment_post_id` int(11) DEFAULT NULL, `comment_image` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_comment` -- INSERT INTO `tbl_comment` (`comment_id`, `comment_date`, `comment_name`, `comment_email`, `comment_message`, `comment_status`, `comment_parent`, `comment_post_id`, `comment_image`) VALUES (5, '2021-11-01 18:20:04', 'Andrei', 'andrei@gmail.com', 'Sangat bermanfaat.', 1, 0, 6, 'user_blank.png'), (6, '2021-11-09 15:28:16', 'Elvika Ghea Valencia', 'elvikaghea@gmail.com', 'Terimakasih.', 1, 5, 6, '85ea077fade7059781fbd5e975c2cf36.jpeg'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_home` -- CREATE TABLE `tbl_home` ( `home_id` int(11) NOT NULL, `home_caption_1` varchar(200) DEFAULT NULL, `home_caption_2` varchar(200) DEFAULT NULL, `home_bg_heading` varchar(50) DEFAULT NULL, `home_bg_testimonial` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_home` -- INSERT INTO `tbl_home` (`home_id`, `home_caption_1`, `home_caption_2`, `home_bg_heading`, `home_bg_testimonial`) VALUES (1, 'SEJARAH BENGKULU', 'KISAH LAMPAU KOTA BENGKULU', 'Benteng-Marlborough.jpg', 'image_8.png'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_inbox` -- CREATE TABLE `tbl_inbox` ( `inbox_id` int(11) NOT NULL, `inbox_name` varchar(50) DEFAULT NULL, `inbox_email` varchar(80) DEFAULT NULL, `inbox_subject` varchar(200) DEFAULT NULL, `inbox_message` text DEFAULT NULL, `inbox_created_at` timestamp NULL DEFAULT current_timestamp(), `inbox_status` varchar(2) DEFAULT '0' COMMENT '0=Unread, 1=Read' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_inbox` -- INSERT INTO `tbl_inbox` (`inbox_id`, `inbox_name`, `inbox_email`, `inbox_subject`, `inbox_message`, `inbox_created_at`, `inbox_status`) VALUES (2, 'Andrei', 'andrei@gmail.com', 'Request Artikel', 'Apa bisa anda membuat artikel sejarah mengenai Benteng Marlborough ?', '2021-11-08 11:49:26', '1'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_navbar` -- CREATE TABLE `tbl_navbar` ( `navbar_id` int(11) NOT NULL, `navbar_name` varchar(50) DEFAULT NULL, `navbar_slug` varchar(200) DEFAULT NULL, `navbar_parent_id` int(11) DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_navbar` -- INSERT INTO `tbl_navbar` (`navbar_id`, `navbar_name`, `navbar_slug`, `navbar_parent_id`) VALUES (1, 'Home', NULL, 0), (2, 'About', 'about', 0), (3, 'Blog', 'blog', 0), (4, 'Contact', 'contact', 0), (5, 'Kategori 1', 'category/kategori-1', 3), (10, 'Kategori 2', 'category/kategori-2', 3), (12, 'Kategori 3', 'category/kategori-3', 3), (13, 'Kategori 4', 'category/kategori-4', 3); -- -------------------------------------------------------- -- -- Table structure for table `tbl_post` -- CREATE TABLE `tbl_post` ( `post_id` int(11) NOT NULL, `post_title` varchar(250) DEFAULT NULL, `post_description` text DEFAULT NULL, `post_contents` longtext DEFAULT NULL, `post_image` varchar(40) DEFAULT NULL, `post_date` timestamp NULL DEFAULT current_timestamp(), `post_last_update` datetime DEFAULT NULL, `post_category_id` int(11) DEFAULT NULL, `post_tags` varchar(225) DEFAULT NULL, `post_slug` varchar(250) DEFAULT NULL, `post_status` int(11) DEFAULT NULL COMMENT '1=Publish, 0=Unpublish', `post_views` int(11) DEFAULT 0, `post_user_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_post` -- INSERT INTO `tbl_post` (`post_id`, `post_title`, `post_description`, `post_contents`, `post_image`, `post_date`, `post_last_update`, `post_category_id`, `post_tags`, `post_slug`, `post_status`, `post_views`, `post_user_id`) VALUES (1, 'Menelusuri Jejak Penjajahan Di Kota Bengkulu', '', '<p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><h3>Ini adalah Sub Heading&nbsp;</h3><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.<br></p>', '770dc25df845ceaaf5ceee40c1bc25b7.png', '2021-11-08 07:45:42', '2021-11-10 01:05:44', 4, 'Tag 2', 'jejak-penjajahan', 1, 7, 2), (2, 'Mengenal Lebih Dalam Kampung Cina Kota Bengkulu', '', '<p style=\"outline: 0px !important;\">Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><h3 style=\"font-family: \" open=\"\" sans\",=\"\" sans-serif;=\"\" color:=\"\" rgb(78,=\"\" 94,=\"\" 106);\"=\"\">Ini adalah Sub Heading&nbsp;</h3><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p>', 'de7d622a27fe9d30d36752b8eb64f96e.jpg', '2021-11-05 07:52:06', '2021-11-09 23:37:03', 5, 'Tag 2,Tag 3', 'mengenal-lebih-dalam-kampung-cina-kota-bengkulu', 1, 5, 2), (4, 'Perkembangan Pantai Panjang Kota Bengkulu', '', '<p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p style=\"outline: 0px !important;\">Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><h3 style=\"font-family: \" open=\"\" sans\",=\"\" sans-serif;=\"\" color:=\"\" rgb(78,=\"\" 94,=\"\" 106);\"=\"\">Ini adalah Sub Heading&nbsp;</h3><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p style=\"outline: 0px !important;\">Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p>', '3895c4a0bce9778ed96b6d5e3b284eca.jpg', '2021-11-07 12:26:55', '2021-11-09 23:37:11', 6, 'Tag 4', 'perkembangan-pantai-panjang-kota-bengkulu', 1, 11, 1), (6, '&quot;Fort Marlborough&quot; Benteng Pendirian Tentara Inggris', '', '<p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p style=\"outline: 0px !important;\">Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><h3 style=\"font-family: \" open=\"\" sans\",=\"\" sans-serif;=\"\" color:=\"\" rgb(78,=\"\" 94,=\"\" 106);\"=\"\">Ini adalah Sub Heading&nbsp;</h3><p style=\"outline: 0px !important;\">Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p style=\"outline: 0px !important;\">Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p><p>Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten Ini adalah artikel konten.</p>', '9603b00b4269bc51f2f5097edfb4851c.jpg', '2021-11-03 13:05:56', '2021-11-10 00:52:14', 7, 'Tag 1,Tag 4', 'fort-marlborough-benteng-pendirian-tentara-inggris', 1, 17, 5); -- -------------------------------------------------------- -- -- Table structure for table `tbl_post_views` -- CREATE TABLE `tbl_post_views` ( `view_id` int(11) NOT NULL, `view_date` timestamp NULL DEFAULT current_timestamp(), `view_ip` varchar(50) DEFAULT NULL, `view_post_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_post_views` -- INSERT INTO `tbl_post_views` (`view_id`, `view_date`, `view_ip`, `view_post_id`) VALUES (1, '2019-04-06 13:33:39', '::1', 6), (2, '2019-04-06 23:04:18', '::1', 6), (3, '2019-04-07 03:32:54', '::1', 5), (4, '2019-04-07 03:33:14', '::1', 4), (5, '2019-04-07 04:03:50', '::1', 3), (6, '2019-04-09 12:19:36', '::1', 6), (7, '2019-04-09 13:28:30', '::1', 4), (8, '2019-04-10 01:33:10', '::1', 5), (9, '2019-04-10 10:00:27', '::1', 2), (10, '2019-04-10 10:58:17', '::1', 1), (11, '2019-04-10 13:20:32', '::1', 3), (12, '2019-04-10 13:20:46', '::1', 6), (13, '2019-04-11 03:32:18', '::1', 6), (14, '2019-04-11 04:24:22', '::1', 4), (15, '2019-04-11 07:58:35', '::1', 2), (16, '2019-04-12 04:23:04', '::1', 6), (17, '2019-04-12 10:09:30', '::1', 5), (18, '2019-04-13 01:42:27', '::1', 6), (19, '2019-04-13 02:01:01', '::1', 5), (20, '2019-04-13 02:01:18', '::1', 3), (21, '2019-04-13 03:23:34', '::1', 4), (22, '2019-04-14 01:39:17', '::1', 1), (23, '2019-04-14 03:24:24', '::1', 3), (24, '2019-04-14 04:08:24', '::1', 2), (25, '2019-04-15 03:44:42', '::1', 6), (26, '2019-12-19 02:28:13', '::1', 6), (27, '2019-12-19 02:29:33', '::1', 7), (28, '2019-12-28 03:44:29', '::1', 7), (29, '2019-12-28 07:44:18', '::1', 3), (30, '2019-12-28 07:44:24', '::1', 2), (31, '2019-12-28 08:06:56', '::1', 6), (32, '2019-12-30 03:36:11', '::1', 4), (33, '2019-12-30 04:21:54', '::1', 7), (34, '2019-12-31 02:54:27', '::1', 4), (35, '2019-12-31 02:58:04', '::1', 7), (36, '2019-12-31 02:59:37', '::1', 1), (37, '2019-12-31 03:58:35', '::1', 6), (38, '2020-01-01 02:54:01', '::1', 7), (39, '2020-01-01 03:19:14', '::1', 6), (40, '2020-01-02 02:05:56', '::1', 4), (41, '2020-01-02 03:16:32', '::1', 7), (42, '2020-01-02 03:24:37', '::1', 1), (43, '2020-01-03 03:20:23', '::1', 3), (44, '2020-01-03 03:21:18', '::1', 6), (45, '2020-01-03 04:03:10', '::1', 7), (46, '2020-01-04 03:59:33', '::1', 5), (47, '2020-01-04 04:04:33', '::1', 11), (48, '2020-01-04 04:06:22', '::1', 10), (49, '2020-01-04 04:23:16', '::1', 16), (50, '2020-01-04 05:51:45', '::1', 15), (51, '2020-01-07 03:12:53', '::1', 15), (52, '2020-01-12 04:42:18', '::1', 9), (53, '2021-10-27 18:07:39', '::1', 8), (54, '2021-11-01 18:13:05', '::1', 6), (55, '2021-11-06 19:08:34', '::1', 4), (56, '2021-11-08 11:45:12', '::1', 7), (57, '2021-11-08 11:46:33', '::1', 6), (58, '2021-11-08 11:47:02', '::1', 4), (59, '2021-11-08 11:56:22', '::1', 1), (60, '2021-11-09 11:44:41', '::1', 1), (61, '2021-11-09 12:20:05', '::1', 6), (62, '2021-11-09 15:27:52', '::1', 4), (63, '2021-11-09 15:27:52', '::1', 2), (64, '2021-11-09 17:51:26', '::1', 4), (65, '2021-11-09 17:51:48', '::1', 6), (66, '2021-11-09 18:01:59', '::1', 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_site` -- CREATE TABLE `tbl_site` ( `site_id` int(11) NOT NULL, `site_name` varchar(100) DEFAULT NULL, `site_title` varchar(200) DEFAULT NULL, `site_description` text DEFAULT NULL, `site_favicon` varchar(50) DEFAULT NULL, `site_logo_header` varchar(50) DEFAULT NULL, `site_logo_footer` varchar(50) DEFAULT NULL, `site_logo_big` varchar(50) DEFAULT NULL, `site_facebook` varchar(150) DEFAULT NULL, `site_twitter` varchar(150) DEFAULT NULL, `site_instagram` varchar(150) DEFAULT NULL, `site_pinterest` varchar(150) DEFAULT NULL, `site_linkedin` varchar(150) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_site` -- INSERT INTO `tbl_site` (`site_id`, `site_name`, `site_title`, `site_description`, `site_favicon`, `site_logo_header`, `site_logo_footer`, `site_logo_big`, `site_facebook`, `site_twitter`, `site_instagram`, `site_pinterest`, `site_linkedin`) VALUES (1, 'SEJARAH BENGKULU', 'SEJARAH BENGKULU - KISAH LAMPAU KOTA BENGKULU', 'Menampilkan artikel-artikel sejarah mengenai kota Bengkulu', 'favicon.png', 'logo-header.png', 'favicon.png', 'logo-big.png', '#', '#', '#', '#', '#'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_subscribe` -- CREATE TABLE `tbl_subscribe` ( `subscribe_id` int(11) NOT NULL, `subscribe_email` varchar(100) DEFAULT NULL, `subscribe_created_at` timestamp NULL DEFAULT current_timestamp(), `subscribe_status` int(11) DEFAULT 0, `subscribe_rating` int(11) DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_subscribe` -- INSERT INTO `tbl_subscribe` (`subscribe_id`, `subscribe_email`, `subscribe_created_at`, `subscribe_status`, `subscribe_rating`) VALUES (6, 'abdulhamid@gmail.com', '2021-11-09 15:17:08', 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_tags` -- CREATE TABLE `tbl_tags` ( `tag_id` int(11) NOT NULL, `tag_name` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_tags` -- INSERT INTO `tbl_tags` (`tag_id`, `tag_name`) VALUES (1, 'Tag 1'), (2, 'Tag 2'), (3, 'Tag 3'), (4, 'Tag 4'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_testimonial` -- CREATE TABLE `tbl_testimonial` ( `testimonial_id` int(11) NOT NULL, `testimonial_name` varchar(50) DEFAULT NULL, `testimonial_content` text DEFAULT NULL, `testimonial_image` varchar(50) DEFAULT NULL, `testimonial_created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_testimonial` -- INSERT INTO `tbl_testimonial` (`testimonial_id`, `testimonial_name`, `testimonial_content`, `testimonial_image`, `testimonial_created_at`) VALUES (1, 'M Fikri, Founder of mfikri.com', 'Ini adalah source code yang luar biasa. simple, elegan, full responsif, cepat, dan mudah di customize oleh web developer pemula.', 'b4d8e2b191213f72dc41ce768b03b2d9.png', '2020-01-03 03:31:51'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_user` -- CREATE TABLE `tbl_user` ( `user_id` int(11) NOT NULL, `user_name` varchar(100) DEFAULT NULL, `user_email` varchar(60) DEFAULT NULL, `user_password` varchar(40) DEFAULT NULL, `user_level` varchar(10) DEFAULT NULL, `user_status` varchar(10) DEFAULT '1', `user_photo` varchar(40) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_user` -- INSERT INTO `tbl_user` (`user_id`, `user_name`, `user_email`, `user_password`, `user_level`, `user_status`, `user_photo`) VALUES (1, 'Idris Gatra Putra', 'idrisgatra@gmail.com', '5a5cd9b96202247c5cf1de4dbc4a680e', '1', '1', '6e8d04ed26bb946c66cab84e4d531610.jpeg'), (2, 'Elvika Ghea Valencia', 'elvikaghea@gmail.com', '213072b79bc77373f3637fce0c03c539', '2', '1', '85ea077fade7059781fbd5e975c2cf36.jpeg'), (5, 'Michael Exaudi Siregar', 'michaelex@gmail.com', '56cf01f6edfe9598b5e23407fe290990', '2', '1', '8b2095598d5735256378e498417876ef.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_visitors` -- CREATE TABLE `tbl_visitors` ( `visit_id` int(11) NOT NULL, `visit_date` timestamp NULL DEFAULT current_timestamp(), `visit_ip` varchar(50) DEFAULT NULL, `visit_platform` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_visitors` -- INSERT INTO `tbl_visitors` (`visit_id`, `visit_date`, `visit_ip`, `visit_platform`) VALUES (541327, '2019-03-18 14:07:36', '::1', 'Firefox'), (541328, '2019-03-19 03:33:51', '::1', 'Chrome'), (541329, '2019-03-20 01:00:19', '::1', 'Chrome'), (541330, '2019-04-05 01:53:28', '::1', 'Firefox'), (541331, '2019-04-06 01:37:35', '::1', 'Chrome'), (541332, '2019-04-06 23:04:12', '::1', 'Chrome'), (541333, '2019-04-09 12:19:32', '::1', 'Chrome'), (541334, '2019-04-10 01:33:03', '::1', 'Chrome'), (541335, '2019-04-11 03:30:38', '::1', 'Chrome'), (541336, '2019-04-11 03:30:38', '::1', 'Chrome'), (541337, '2019-04-12 03:51:42', '::1', 'Chrome'), (541338, '2019-04-12 21:55:51', '::1', 'Chrome'), (541339, '2019-04-14 01:30:40', '::1', 'Chrome'), (541340, '2019-04-15 01:42:53', '::1', 'Chrome'), (541341, '2019-05-08 02:07:09', '::1', 'Chrome'), (541342, '2019-05-21 05:55:14', '::1', 'Firefox'), (541343, '2019-08-28 07:08:22', '::1', 'Firefox'), (541344, '2019-12-17 06:04:57', '::1', 'Firefox'), (541345, '2019-12-18 01:34:25', '::1', 'Firefox'), (541346, '2019-12-19 02:21:23', '::1', 'Firefox'), (541347, '2019-12-20 07:47:00', '::1', 'Firefox'), (541348, '2019-12-28 02:58:34', '::1', 'Firefox'), (541349, '2019-12-29 08:48:39', '::1', 'Firefox'), (541350, '2019-12-30 03:24:04', '::1', 'Firefox'), (541351, '2019-12-31 02:47:15', '::1', 'Firefox'), (541352, '2020-01-01 02:24:55', '::1', 'Firefox'), (541353, '2020-01-02 01:58:25', '::1', 'Firefox'), (541354, '2020-01-03 03:15:30', '::1', 'Firefox'), (541355, '2020-01-04 03:31:49', '::1', 'Firefox'), (541356, '2020-01-05 06:58:35', '127.0.0.1', 'Firefox'), (541357, '2020-01-06 06:03:25', '::1', 'Firefox'), (541358, '2020-01-07 00:57:59', '::1', 'Firefox'), (541359, '2020-01-08 05:53:44', '::1', 'Firefox'), (541360, '2020-01-12 04:18:15', '::1', 'Firefox'), (541361, '2021-10-27 18:00:31', '::1', 'Chrome'), (541362, '2021-11-01 17:56:35', '::1', 'Chrome'), (541363, '2021-11-02 18:05:42', '::1', 'Chrome'), (541364, '2021-11-06 18:50:16', '::1', 'Chrome'), (541365, '2021-11-08 11:30:23', '::1', 'Chrome'), (541366, '2021-11-09 11:27:07', '::1', 'Chrome'), (541367, '2021-11-09 17:06:32', '::1', 'Chrome'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tbl_about` -- ALTER TABLE `tbl_about` ADD PRIMARY KEY (`about_id`); -- -- Indexes for table `tbl_category` -- ALTER TABLE `tbl_category` ADD PRIMARY KEY (`category_id`); -- -- Indexes for table `tbl_comment` -- ALTER TABLE `tbl_comment` ADD PRIMARY KEY (`comment_id`); -- -- Indexes for table `tbl_home` -- ALTER TABLE `tbl_home` ADD PRIMARY KEY (`home_id`); -- -- Indexes for table `tbl_inbox` -- ALTER TABLE `tbl_inbox` ADD PRIMARY KEY (`inbox_id`); -- -- Indexes for table `tbl_navbar` -- ALTER TABLE `tbl_navbar` ADD PRIMARY KEY (`navbar_id`); -- -- Indexes for table `tbl_post` -- ALTER TABLE `tbl_post` ADD PRIMARY KEY (`post_id`); -- -- Indexes for table `tbl_post_views` -- ALTER TABLE `tbl_post_views` ADD PRIMARY KEY (`view_id`); -- -- Indexes for table `tbl_site` -- ALTER TABLE `tbl_site` ADD PRIMARY KEY (`site_id`); -- -- Indexes for table `tbl_subscribe` -- ALTER TABLE `tbl_subscribe` ADD PRIMARY KEY (`subscribe_id`); -- -- Indexes for table `tbl_tags` -- ALTER TABLE `tbl_tags` ADD PRIMARY KEY (`tag_id`); -- -- Indexes for table `tbl_testimonial` -- ALTER TABLE `tbl_testimonial` ADD PRIMARY KEY (`testimonial_id`); -- -- Indexes for table `tbl_user` -- ALTER TABLE `tbl_user` ADD PRIMARY KEY (`user_id`); -- -- Indexes for table `tbl_visitors` -- ALTER TABLE `tbl_visitors` ADD PRIMARY KEY (`visit_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tbl_about` -- ALTER TABLE `tbl_about` MODIFY `about_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tbl_category` -- ALTER TABLE `tbl_category` MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `tbl_comment` -- ALTER TABLE `tbl_comment` MODIFY `comment_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `tbl_home` -- ALTER TABLE `tbl_home` MODIFY `home_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tbl_inbox` -- ALTER TABLE `tbl_inbox` MODIFY `inbox_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_navbar` -- ALTER TABLE `tbl_navbar` MODIFY `navbar_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `tbl_post` -- ALTER TABLE `tbl_post` MODIFY `post_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `tbl_post_views` -- ALTER TABLE `tbl_post_views` MODIFY `view_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67; -- -- AUTO_INCREMENT for table `tbl_site` -- ALTER TABLE `tbl_site` MODIFY `site_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tbl_subscribe` -- ALTER TABLE `tbl_subscribe` MODIFY `subscribe_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `tbl_tags` -- ALTER TABLE `tbl_tags` MODIFY `tag_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tbl_testimonial` -- ALTER TABLE `tbl_testimonial` MODIFY `testimonial_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_user` -- ALTER TABLE `tbl_user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tbl_visitors` -- ALTER TABLE `tbl_visitors` MODIFY `visit_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=541368; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
47.907233
2,831
0.69592
f658eb874ea759e96055caee9956cd764bbd35c7
3,889
cpp
C++
Libraries/xcassets/Sources/Asset/CubeTextureSet.cpp
djgalloway/xcbuild
936df10e59e5f5d531efca8bd48e445d88e78e0c
[ "BSD-2-Clause-NetBSD" ]
9
2018-04-30T23:18:27.000Z
2021-06-20T15:13:38.000Z
Libraries/xcassets/Sources/Asset/CubeTextureSet.cpp
djgalloway/xcbuild
936df10e59e5f5d531efca8bd48e445d88e78e0c
[ "BSD-2-Clause-NetBSD" ]
null
null
null
Libraries/xcassets/Sources/Asset/CubeTextureSet.cpp
djgalloway/xcbuild
936df10e59e5f5d531efca8bd48e445d88e78e0c
[ "BSD-2-Clause-NetBSD" ]
4
2018-10-10T19:44:17.000Z
2020-01-12T11:56:31.000Z
/** Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. */ #include <xcassets/Asset/CubeTextureSet.h> #include <plist/Array.h> #include <plist/Dictionary.h> #include <plist/String.h> #include <plist/Keys/Unpack.h> using xcassets::Asset::CubeTextureSet; bool CubeTextureSet::Texture:: parse(plist::Dictionary const *dict) { std::unordered_set<std::string> seen; auto unpack = plist::Keys::Unpack("CubeTextureSetTexture", dict, &seen); auto CS = unpack.cast <plist::String> ("color-space"); auto CF = unpack.cast <plist::String> ("cube-face"); auto F = unpack.cast <plist::String> ("filename"); auto GFS = unpack.cast <plist::String> ("graphics-feature-set"); auto I = unpack.cast <plist::String> ("idiom"); auto M = unpack.cast <plist::String> ("memory"); auto PF = unpack.cast <plist::String> ("pixel-format"); auto S = unpack.cast <plist::String> ("scale"); if (!unpack.complete(true)) { fprintf(stderr, "%s", unpack.errorText().c_str()); } if (CS != nullptr) { _colorSpace = Slot::ColorSpaces::Parse(CS->value()); } if (CF != nullptr) { _cubeFace = CubeFaces::Parse(CF->value()); } if (F != nullptr) { _fileName = F->value(); } if (GFS != nullptr) { _graphicsFeatureSet = Slot::GraphicsFeatureSets::Parse(GFS->value()); } if (I != nullptr) { _idiom = Slot::Idioms::Parse(I->value()); } if (M != nullptr) { _memory = Slot::MemoryRequirements::Parse(M->value()); } if (PF != nullptr) { _pixelFormat = TexturePixelFormats::Parse(PF->value()); } if (S != nullptr) { _scale = Slot::Scale::Parse(S->value()); } return true; } bool CubeTextureSet:: parse(plist::Dictionary const *dict, std::unordered_set<std::string> *seen, bool check) { if (!Asset::parse(dict, seen, false)) { return false; } auto unpack = plist::Keys::Unpack("CubeTextureSet", dict, seen); auto P = unpack.cast <plist::Dictionary> ("properties"); auto Ts = unpack.cast <plist::Array> ("textures"); if (!unpack.complete(check)) { fprintf(stderr, "%s", unpack.errorText().c_str()); } if (P != nullptr) { std::unordered_set<std::string> seen; auto unpack = plist::Keys::Unpack("Properties", P, &seen); auto I = unpack.cast <plist::String> ("interpretation"); auto O = unpack.cast <plist::String> ("origin"); auto ODRT = unpack.cast <plist::Array> ("on-demand-resource-tags"); if (!unpack.complete(true)) { fprintf(stderr, "%s", unpack.errorText().c_str()); } if (I != nullptr) { _interpretation = TextureInterpretations::Parse(I->value()); } if (O != nullptr) { _origin = TextureOrigins::Parse(O->value()); } if (ODRT != nullptr) { _onDemandResourceTags = std::vector<std::string>(); _onDemandResourceTags->reserve(ODRT->count()); for (size_t n = 0; n < ODRT->count(); n++) { if (auto string = ODRT->value<plist::String>(n)) { _onDemandResourceTags->push_back(string->value()); } } } } if (Ts != nullptr) { _textures = std::vector<Texture>(); for (size_t n = 0; n < Ts->count(); ++n) { if (auto dict = Ts->value<plist::Dictionary>(n)) { Texture texture; if (texture.parse(dict)) { _textures->push_back(texture); } } } } return true; }
28.807407
87
0.568527
0de343b829c37ed2a16c73fee9bd3ae940f68822
4,488
cs
C#
src/services/ESTHost.Core/Colleaction/CollectionServerFactory.cs
easteng/MonitorPlatform
4c476d78f4f94ff07ac726007883d92b09694d37
[ "MIT" ]
null
null
null
src/services/ESTHost.Core/Colleaction/CollectionServerFactory.cs
easteng/MonitorPlatform
4c476d78f4f94ff07ac726007883d92b09694d37
[ "MIT" ]
null
null
null
src/services/ESTHost.Core/Colleaction/CollectionServerFactory.cs
easteng/MonitorPlatform
4c476d78f4f94ff07ac726007883d92b09694d37
[ "MIT" ]
1
2021-09-18T00:42:49.000Z
2021-09-18T00:42:49.000Z
/********************************************************************** *******命名空间: ESTHost.Core.Colleaction *******类 名 称: CollectionServerFactory *******类 说 明: 采集服务工厂,用来创建采集服务 *******作 者: Easten *******机器名称: EASTEN *******CLR 版本: 4.0.30319.42000 *******创建时间: 7/27/2021 10:48:35 AM *******联系方式: 1301485237@qq.com *********************************************************************** ******* ★ Copyright @Easten 2020-2021. All rights reserved ★ ********* *********************************************************************** */ using ESTCore.Common; using MonitorPlatform.Share.CacheItem; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ESTHost.Core.Colleaction { /// <summary> /// 采集服务工厂,用来创建采集服务,一个站点对应一个线程 一个线拥有各自的采集逻辑 并可复用 /// 通过工厂快速创建采集服务 /// </summary> public class CollectionServerFactory { private static Dictionary<Guid, ModbusBase> servicesDictionary; static CollectionServerFactory() { servicesDictionary = new Dictionary<Guid, ModbusBase>(); } /// <summary> /// 根据协议所对应的设备数量创建数据采集服务服务 /// </summary> /// <param name="devices">关联当前协议的服务</param> /// <param name="name">一般为协议名称,用来决定数据的接收者</param> public static void CreateService(List<CacheItemDevice> devices, string name) { try { devices?.ForEach(device => { if (!servicesDictionary.TryGetValue(device.DeviceId, out var server)) { // 不存在服务,则重新创建 if (device.Type == MonitorPlatform.Share.DeviceCollectionType.TcpServer) server = ModbusTcpNet.CreateModbus(device, name); else if(device.Type == MonitorPlatform.Share.DeviceCollectionType.ModbusTcp) server = ModbusTcpServer.CreateModbus(device); servicesDictionary.TryAdd(device.DeviceId, server); } }); } catch (Exception ex) { // 采集服务创建异常 Console.WriteLine("服务创建失败"); } } /// <summary> /// 开始写入操作 /// </summary> /// <param name="deviceId"></param> /// <param name="terminalId"></param> public static void StartWrite(Guid deviceId, Guid terminalId) { var server = servicesDictionary.GetValueOrDefault(deviceId); if (server != null) { server.BeginWrite(terminalId); } } /// <summary> /// 停止写入操作 /// </summary> /// <param name="deviceId"></param> /// <param name="termianlId"></param> public static void EndWrite(Guid deviceId, Guid termianlId) { var server = servicesDictionary.GetValueOrDefault(deviceId); if (server != null) { server.EndWrite(termianlId); } } /// <summary> /// 写入传感器信息 /// </summary> /// <param name="deviceId">设备id</param> /// <param name="termianlId">终端采集器id</param> /// <param name="data">写入传感器完整的报文数据</param> /// <returns></returns> public static OperateResult<byte[]> WriteSensor(Guid deviceId, byte[] data) { var server = servicesDictionary.GetValueOrDefault(deviceId); if (server != null) { return server.WriteSensors(data); } return OperateResult.CreateFailedResult<byte[]>(null); } public static OperateResult<byte[]> SetSensorCount(Guid deviceId, byte[] data) { var server = servicesDictionary.GetValueOrDefault(deviceId); if (server != null) { return server.SetSensorCount(data); } return OperateResult.CreateFailedResult<byte[]>(new OperateResult()); } /// <summary> /// 刷新服务缓存数据 /// </summary> /// <param name="deviceId"></param> public static void Refresh(Guid deviceId) { var server = servicesDictionary.GetValueOrDefault(deviceId); if (server != null) { server.RefreshChache(); } } } }
33.244444
100
0.505125
ef17fb72fffb882829556e0c89bba22ed2e6c3a3
4,176
h
C
Benchmarks/GPU_code/CoMD-CUDA/src-mpi/neighborList.h
HPCCS/XAPR
0dbd0c064ca1b858be065aef00a5260d46a60d06
[ "MIT" ]
33
2018-09-06T04:52:44.000Z
2022-02-18T20:47:45.000Z
Benchmarks/GPU_code/CoMD-CUDA/src-mpi/neighborList.h
HPCCS/XAPR
0dbd0c064ca1b858be065aef00a5260d46a60d06
[ "MIT" ]
2
2019-11-13T18:38:33.000Z
2022-03-05T06:31:36.000Z
Benchmarks/GPU_code/CoMD-CUDA/src-mpi/neighborList.h
HPCCS/XAPR
0dbd0c064ca1b858be065aef00a5260d46a60d06
[ "MIT" ]
10
2018-10-09T02:43:22.000Z
2022-01-04T02:06:38.000Z
/************************************************************************* * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of NVIDIA CORPORATION nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ************************************************************************/ /// \file /// Functions to maintain neighbor list of each atom. #ifndef __NEIGHBOR_LIST_H_ #define __NEIGHBOR_LIST_H_ #include "mytype.h" struct LinkCellSt; struct SimFlatSt; struct AtomsSt; /// Neighbor List data typedef struct NeighborListSt { int maxNeighbors; //!< Maximum number of neighbors each atom can store within the neighbor list. (This value may increase with time) int nMaxLocal; //!< maximum number of particles that fit on this processor real_t skinDistance; //!< skinDistance in Angstrom. Particle i is in the neighborlist of particle j if r_ij <= (cutoff + skinDistance). real_t skinDistance2; //!< skinDistance**2 in Angstrom. Particle i is in the neighborlist of particle j if r_ij <= (cutoff + skinDistance). real_t skinDistanceHalf2; //!< (skinDistance/2)**2 in Angstrom. int* nNeighbors; //!< Number of neighbors within the neighbor list of each atom int* list; //!< neighborlist of size maxNeighbors * nNeighborlists. int nStepsSinceLastBuild; //!< #MD steps since last build int updateNeighborListRequired; //!< Flag that indicates if this step requires a neighborList build (-1:not set, 0:not required, 1:required) int updateLinkCellsRequired; //!< Flag that indicates if we need to rebuild the linkCells. This is required to assure the same order of the particles within halo and boundary cells vec_t lastR; //!< positions at last buildNeighborlist() call. Used to identify dirty cells (i.e. cells which require a new neighborlist). int forceRebuildFlag; //!< flag indicates if a neighborlist rebuild is forced to happen (this is different from updateNeighborListRequired) } NeighborList; /// Initialized the NeighborList data stucture NeighborList* initNeighborList(const int nLocalBoxes, const real_t skinDistance); /// frees all data associated with *neighborList void destroyNeighborList(NeighborList** neighborList); /// Build the neighbor list for all boxes which are marked as dirty. void buildNeighborList(struct SimFlatSt* s, int boundaryFlag); /// Sets all neighbor counts to zero void emptyNeighborList(NeighborList* neighborList); /// returns 1 iff this step will require a rebuild of the neighborlist int neighborListUpdateRequired(struct SimFlatSt* sim); /// Forces a rebuild of the neighborlist (but does not rebuild the neighborlist yet, this requires a separate call). void neighborListForceRebuild(NeighborList* neighborList); #endif
53.538462
183
0.735632
740d470d0214080feae8f427406f64677e606927
124
c
C
drivers/ptphnd.c
jguillaumes/muxx
2b9e20dcef9d42e6abfe0024fef16ad98b78facf
[ "BSD-2-Clause" ]
3
2018-07-18T19:41:50.000Z
2021-03-08T23:00:04.000Z
drivers/ptphnd.c
jguillaumes/muxx
2b9e20dcef9d42e6abfe0024fef16ad98b78facf
[ "BSD-2-Clause" ]
null
null
null
drivers/ptphnd.c
jguillaumes/muxx
2b9e20dcef9d42e6abfe0024fef16ad98b78facf
[ "BSD-2-Clause" ]
null
null
null
#include "muxxlib.h" #include "muxxdef.h" /* ** Paper tape handler task */ void ptphnd() { for(;;) { yield(); } }
9.538462
26
0.548387
46aedf0206ea4fdce878bda0a8acb7e3159788b8
304
sql
SQL
openGaussBase/testcase/SQL/FULL_TEXT_SEARCH/text_search_configuration/Opengauss_Function_Text_Search_Configuration_Case0003.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/FULL_TEXT_SEARCH/text_search_configuration/Opengauss_Function_Text_Search_Configuration_Case0003.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/FULL_TEXT_SEARCH/text_search_configuration/Opengauss_Function_Text_Search_Configuration_Case0003.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
-- @testpoint:创建文本搜索配置语法,PARSER参数测试(无效性测试) --指定解析器为ngrams,合理报错 DROP TEXT SEARCH CONFIGURATION if exists ngram2; CREATE TEXT SEARCH CONFIGURATION ngram2 (parser=ngrams); --指定解析器为defaults,合理报错 DROP TEXT SEARCH CONFIGURATION if exists default2; CREATE TEXT SEARCH CONFIGURATION default2 (parser=defaults);
38
60
0.822368
7958facc86462e70eebf4b02ccdfeba364a9bea8
6,611
php
PHP
application/views/v_HasilSearchGeneral.php
MaxelITSolution/hb_wakasa
27eb5a290990d006a175e9b2ddbb27b99a0a075d
[ "MIT" ]
null
null
null
application/views/v_HasilSearchGeneral.php
MaxelITSolution/hb_wakasa
27eb5a290990d006a175e9b2ddbb27b99a0a075d
[ "MIT" ]
null
null
null
application/views/v_HasilSearchGeneral.php
MaxelITSolution/hb_wakasa
27eb5a290990d006a175e9b2ddbb27b99a0a075d
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="stylesheet" type="text/css" href="<?php echo base_url("asset/bootstrap/css/bootstrap.css")?>"> <link rel="stylesheet" type="text/css" href="<?php echo base_url("asset/css/font.css")?>"> <link rel="stylesheet" type="text/css" href="<?php echo base_url("asset/css/Headers.css")?>"> <script src="<?php echo base_url("asset/bootstrap/js/jquery.min.js")?>"></script> <script src="<?php echo base_url("asset/bootstrap/js/bootstrap.js")?>"></script> <script> $(document).ready(function(){ $("img[name|='gambar1']").hover(function(){ $(this).css('background-color','yellow'); $(this).attr('src','<?php echo base_url("asset/image/HasilSearchProduk/gearHover.png")?>'); $("img[name|='gambar2']").css('background-color','#1a75ff'); $("img[name|='gambar3']").css('background-color','#1a75ff'); $("img[name|='gambar4']").css('background-color','#1a75ff'); $("img[name|='gambar2']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/boxIdle.png")?>'); $("img[name|='gambar3']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/callIdle.png")?>'); $("img[name|='gambar4']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/searchIdle.png")?>'); }) $("img[name|='gambar2']").hover(function(){ $(this).css('background-color','yellow'); $(this).attr('src','<?php echo base_url("asset/image/HasilSearchProduk/boxHover.png")?>'); $("img[name|='gambar1']").css('background-color','#1a75ff'); $("img[name|='gambar3']").css('background-color','#1a75ff'); $("img[name|='gambar4']").css('background-color','#1a75ff'); $("img[name|='gambar1']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/gearIdle.png")?>'); $("img[name|='gambar3']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/callIdle.png")?>'); $("img[name|='gambar4']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/searchIdle.png")?>'); }) $("img[name|='gambar3']").hover(function(){ $(this).css('background-color','yellow'); $(this).attr('src','<?php echo base_url("asset/image/HasilSearchProduk/callHover.png")?>'); $("img[name|='gambar2']").css('background-color','#1a75ff'); $("img[name|='gambar1']").css('background-color','#1a75ff'); $("img[name|='gambar4']").css('background-color','#1a75ff'); $("img[name|='gambar2']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/boxIdle.png")?>'); $("img[name|='gambar1']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/gearIdle.png")?>'); $("img[name|='gambar4']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/searchIdle.png")?>'); }) $("img[name|='gambar4']").hover(function(){ $(this).css('background-color','yellow'); $(this).attr('src','<?php echo base_url("asset/image/HasilSearchProduk/searchHover.png")?>'); $("img[name|='gambar2']").css('background-color','#1a75ff'); $("img[name|='gambar3']").css('background-color','#1a75ff'); $("img[name|='gambar1']").css('background-color','#1a75ff'); $("img[name|='gambar2']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/boxIdle.png")?>'); $("img[name|='gambar3']").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/callIdle.png")?>'); $("img[name|='gambar1]").attr('src','<?php echo base_url("asset/image/HasilSearchProduk/gearIdle.png")?>'); }) }) </script> </head> <body> <div class="headerBG"> <img class="logo" src="<?php echo base_url("asset/image/HasilSearchProduk/wakasalogo.png")?>"></img> <div class="col1"> <div class="col1_1"> <br> <div class="margl5 f_size1" id="kanan1"><Strong style="color:yellow;font-family:Ubuntu"><i>ENG</i>|<i>ID</i></strong></div> <button id="kanan2" style="border-radius:10px;border:2px solid yellow;background-color:#005ce6;font-family:Ubuntu;color:yellow">Login| Register</button> </div> </div> </div> <div> <img src="<?php echo base_url("asset/image/business.jpg")?>" class="GambarBanner"/> </div> <div class="menuBanner" id="menuBanner"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp <div class="dropdown"> <img src="<?php echo base_url("asset/image/HasilSearchProduk/gearIdle.png")?>" class="logoDropDown" id="logoDropDown2" name="gambar1" > <div class="dropdown-content" id="dropdown-content1"> <a href="#" class="f_size2" style="text-align: center; width:50px;"><span style="margin-top:50px;height:50px;width:50px;margin-left:5px;line-height:25px;">Tentang Kami</span></a> </div> </div> <div class="dropdown"> <img src="<?php echo base_url("asset/image/HasilSearchProduk/boxIdle.png")?>" class="logoDropDown" id="logoDropDown2" name="gambar2" > <div class="dropdown-content" id="dropdown-content1"> <a href="#" class="f_size2" style="text-align: center; width:50px;"><span style="word-wrap:break-word;margin-top:50px;height:50px;width:50px;margin-left:5px;line-height:20px;">Temukan wakasa</span></a> </div> </div> <div class="dropdown"> <img src="<?php echo base_url("asset/image/HasilSearchProduk/callIdle.png")?>" class="logoDropDown" id="logoDropDown2" name="gambar3" > <div class="dropdown-content" id="dropdown-content1"> <a href="#" class="f_size2" style="text-align:center; width:50px"><span id="btnIMG" style="word-wrap:break-word;margin-top:50px;height:50px;width:50px;margin-left:5px;line-height:20px;">Kontak Kami</span></a> </div> </div> <div class="dropdown"> <img src="<?php echo base_url("asset/image/HasilSearchProduk/searchIdle.png")?>" class="logoDropDown" id="logoDropDown2" name="gambar4" > <div class="dropdown-content" id="dropdown-content1"> <a href="#" class="f_size2" style="text-align: center; width:50px;height:50px;"><span style="margin-top:20px;height:50px;width:50px;margin-left:5px;line-height:50px;">cari</span></a> <a href="#" class="f_size2" style="text-align: center;width:50px;"><span style="font-family:ubuntu;margin-top:50%;height:50px;width:50px;margin-left:5px;line-height:100%;">cari produk</span></a> </div> </div> </div> <div class="formBanner" id="formBanner"> <h2 class="margl1" id="judulForm" style="color:blue;font-family:Ubuntu">CARI TENTANG WAKASA</h2><br> <div class="tmptForm"> <input placeholder="Masukkan Kata Kunci" type="text" class="margl05 inputFRM1" ></input><button id="buttonFRM" class="margl05 buttonFRM" style="font-family:Ubuntu">Search<img id="btnIMG" src="<?php echo base_url("asset/image/HasilSearchProduk/searchHover.png")?>" style="width:20px;height:auto;"></img></button> </div> </div> </body> </html>
60.1
313
0.674028
92d2da2869b4fefb76cb624e50a2323cfa072e3e
256
h
C
MQTTDemo/MQTT1ViewController.h
Nandaballabh/MQTT-Client-Sample-with-two-libraries
f70779dc0eb2ef26463ba16f79f32bfbd60da24e
[ "MIT" ]
null
null
null
MQTTDemo/MQTT1ViewController.h
Nandaballabh/MQTT-Client-Sample-with-two-libraries
f70779dc0eb2ef26463ba16f79f32bfbd60da24e
[ "MIT" ]
null
null
null
MQTTDemo/MQTT1ViewController.h
Nandaballabh/MQTT-Client-Sample-with-two-libraries
f70779dc0eb2ef26463ba16f79f32bfbd60da24e
[ "MIT" ]
null
null
null
// // MQTT1ViewController.h // MQTTDemo // // Created by Nanda Ballabh on 4/15/15. // Copyright (c) 2015 Nanda Ballabh. All rights reserved. // #import <UIKit/UIKit.h> #import "AppDelegate.h" @interface MQTT1ViewController : UIViewController @end
15.058824
58
0.707031
9c4819252afbe6854fb7b4ea55bc62d24c799e48
3,910
rs
Rust
src/history.rs
bartenbach/taskwarrior-tui
3cb54b1700ec812ac4eb6e3c2d5484116c282644
[ "MIT" ]
716
2020-07-28T11:50:31.000Z
2022-03-30T19:56:50.000Z
src/history.rs
bartenbach/taskwarrior-tui
3cb54b1700ec812ac4eb6e3c2d5484116c282644
[ "MIT" ]
358
2020-07-31T07:17:50.000Z
2022-03-29T20:00:19.000Z
src/history.rs
bartenbach/taskwarrior-tui
3cb54b1700ec812ac4eb6e3c2d5484116c282644
[ "MIT" ]
52
2020-08-05T05:33:37.000Z
2022-03-30T19:56:53.000Z
use anyhow::{anyhow, Result}; use rustyline::error::ReadlineError; use rustyline::history::History; use rustyline::history::SearchDirection; use std::fs::File; use std::path::{Path, PathBuf}; pub struct HistoryContext { history: History, history_index: Option<usize>, config_path: PathBuf, } impl HistoryContext { pub fn new(filename: &str) -> Self { let history = History::new(); let config_path = if let Ok(s) = std::env::var("TASKWARRIOR_TUI_CONFIG") { PathBuf::from(s) } else { dirs::config_dir() .map(|d| d.join("taskwarrior-tui")) .expect("Unable to create configuration directory for taskwarrior-tui") }; std::fs::create_dir_all(&config_path) .unwrap_or_else(|_| panic!("Unable to create configuration directory in {:?}", &config_path)); let config_path = config_path.join(filename); Self { history, history_index: None, config_path, } } pub fn load(&mut self) -> Result<()> { if self.config_path.exists() { self.history.load(&self.config_path)?; } else { self.history.save(&self.config_path)?; } self.history_index = None; log::debug!("Loading history of length {}", self.history.len()); Ok(()) } pub fn write(&mut self) -> Result<()> { self.history.save(&self.config_path)?; Ok(()) } pub fn history(&self) -> &History { &self.history } pub fn history_index(&self) -> Option<usize> { self.history_index } pub fn history_search(&mut self, buf: &str, dir: SearchDirection) -> Option<String> { log::debug!( "Searching history for {:?} in direction {:?} with history index = {:?} and history len = {:?}", buf, dir, self.history_index(), self.history.len(), ); if self.history.is_empty() { log::debug!("History is empty"); return None; } let history_index = if self.history_index().is_none() { log::debug!("History index is none"); match dir { SearchDirection::Forward => return None, SearchDirection::Reverse => self.history_index = Some(self.history_len().saturating_sub(1)), } self.history_index.unwrap() } else { let hi = self.history_index().unwrap(); if hi == self.history.len().saturating_sub(1) && dir == SearchDirection::Forward || hi == 0 && dir == SearchDirection::Reverse { return None; } match dir { SearchDirection::Reverse => hi.saturating_sub(1), SearchDirection::Forward => hi.saturating_add(1).min(self.history_len().saturating_sub(1)), } }; log::debug!("Using history index = {} for searching", history_index); return if let Some(history_index) = self.history.starts_with(buf, history_index, dir) { log::debug!("Found index {:?}", history_index); log::debug!("Previous index {:?}", self.history_index); self.history_index = Some(history_index.idx); Some(history_index.entry.to_string()) } else if buf.is_empty() { self.history_index = Some(history_index); self.history.get(history_index).cloned() } else { log::debug!("History index = {}. Found no match.", history_index); None }; } pub fn add(&mut self, buf: &str) { if self.history.add(buf) { self.reset(); } } pub fn reset(&mut self) { self.history_index = None } pub fn history_len(&self) -> usize { self.history.len() } }
30.787402
108
0.544246
ff2ae55b00e19ef0939fe7c2b7534111ada81b34
713
py
Python
tests/test_integrational/test_global_context_update.py
best-doctor/Mario
a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f
[ "MIT" ]
12
2020-01-30T02:19:16.000Z
2022-01-20T04:00:43.000Z
tests/test_integrational/test_global_context_update.py
best-doctor/Mario
a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f
[ "MIT" ]
32
2019-12-07T14:06:05.000Z
2020-06-26T07:12:03.000Z
tests/test_integrational/test_global_context_update.py
best-doctor/Mario
a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f
[ "MIT" ]
3
2020-08-21T07:54:53.000Z
2021-01-11T12:05:48.000Z
import pytest from super_mario.base_pipeline import BasePipeline from super_mario.decorators import process_pipe from super_mario.exceptions import GlobalContextUpdateException @pytest.fixture def simple_pipeline(): class SimplePipeline(BasePipeline): pipeline = [ 'sum_numbers', 'multiply_numbers', ] @process_pipe def sum_numbers(a, b): return {'d': a + b} @process_pipe def multiply_numbers(c, d): return {'d': c * d} return SimplePipeline() def test_context_update_raises_exception(simple_pipeline): with pytest.raises(GlobalContextUpdateException): simple_pipeline.run(a=1, b=2, c=3)
23.766667
63
0.670407
05bd89bc2faa856a1dcdea63f443e42ea9700c22
3,270
py
Python
venv/Foundation/While.py
AnatoleZho/Python3
3d3d32b5ad0affef76287b89bc87267fc551127d
[ "MIT" ]
null
null
null
venv/Foundation/While.py
AnatoleZho/Python3
3d3d32b5ad0affef76287b89bc87267fc551127d
[ "MIT" ]
null
null
null
venv/Foundation/While.py
AnatoleZho/Python3
3d3d32b5ad0affef76287b89bc87267fc551127d
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # 用户输入和 while 循环 # 1. 函数 input() 的工作原理 # 下面的程序让用户输入一些文本,再将这些文本呈现给用户: ''' message = raw_input("Tell me something, and I will repeat it back to you:") print str(message) ''' # 1.1. 编写清晰的程序 ''' name = raw_input('Please enter your name:') print 'Hello, ' + name.title() + '!' ''' # 1.2 使用 int() 来获取数值输入 ''' height = raw_input('How tail are you, in inches?') height = int(height) if height >= 36: print "\nYou'are tall enough to ride!" else: print "\nYou'll be able to ride when you're a little older." ''' # 1.3 求模运算符 ''' number = raw_input("Enter a number, and I'll tell you if it's even or odd:") number = int(number) if number % 2 == 0: print '\nThe number ' + str(number) + ' is even.' else: print '\nThe number ' + str(number) + ' is odd.' ''' # 2. while 循环 # while 循环不断运行,直到指定的条件不满足为止 # 2.1 使用 while 循环 ''' current_number = 1 while current_number <= 5: print current_number current_number += 1 # 2.2 让用户选择何时退出 prompt = '\nTell me something, and I will repeat it back to you:' prompt += "\nEnter 'quit' to end the program." message = '' while message != 'quit': message = raw_input(prompt) print message ''' # 2.3. 使用标志 ''' 在要求很多条件都满足才继续运行的程序中,可以定义一个变量,用于判断整个程序是否处于活跃状态,这个变量被称为标志 充当了程序的信号灯。可让程序在标志为 True 时继运行,并在任何事件导致标志的值为 False 时让程序停止运行。 在 while 语句中,只需要检查一个条件---标志的当前值是否为 True, 并将所有测试(是否发生了应将标志设置为 False 事件) 都放在其他地方,从而让程序变得更简洁。 ''' ''' prompt = '\nTell me something, and I will repeat it back to you:' prompt += "\nEnter 'quit' to end the program." active = True while active: message = raw_input(prompt) if message == 'quit': active = False else: print message ''' # 2.4 使用 break 退出循环 ''' prompt = '\nTell me something, and I will repeat it back to you:' prompt += "\nEnter 'quit' to end the program." while True: city = raw_input(prompt) if city == 'qiut': break else: print "I'd love to go to " + city.title() + '!' ''' # 2.5 在循环中使用 continue # 2.6 避免无线循环 # 3. 使用 while 循环来处理列表和字典 # 3.1 在列表中移动元素 # 创建一个待验证的用户列表 和 一个用于存储已验证用户的空列表 unconfirmed_users = ['alice', 'brain', 'candace'] confirmed_users = [] # 验证每个用户,直到没有未验证用户为止 # 将每个经过验证的用户都移动到已验证用户列表中 while unconfirmed_users: current_user = unconfirmed_users.pop() print 'Verifying user: ' + current_user.title() confirmed_users.append(current_user) # 显示所有已验证的用户 print '\nThe following users have been confirmed:' for confirmed_user in confirmed_users: print confirmed_user.title() # 3.2 删除包含特定值的所有列表元素 pets = ['dog', 'cat', 'dog', 'goldfish', 'cat', 'rabbit', 'cat'] print pets while 'cat' in pets: pets.remove('cat') print pets # 3.3 使用用户输入来填充字典 responses = {} # 设置一个标志,指出调查是否继续 polling_active = True while polling_active: # 提示输入被调查者的名字和回答 name = raw_input('\nWhat is your name?') response = raw_input("which mountain would you like to climb someday?") # 将答卷存储在字典中 responses[name] = response # 看看是否还有人要参与调查 repeat = raw_input('Would you like to let another person responsed?(yes/ no)') if repeat == 'no': polling_active = False # 调查结束,显示结果 print '\n--- Poll Results---' for name, response in responses.items(): print name.title() + ' would like to climb ' + response.title() + '.'
20.185185
82
0.660245
eb20d4f82963c7138aa4c83d7b2f1509aaddbf44
130
css
CSS
css/doggystyle.css
JocyNava/Hackatoncito-DoggyJeans
0639fe3afd751213742ff8f238b474228cedccdc
[ "Apache-2.0" ]
null
null
null
css/doggystyle.css
JocyNava/Hackatoncito-DoggyJeans
0639fe3afd751213742ff8f238b474228cedccdc
[ "Apache-2.0" ]
null
null
null
css/doggystyle.css
JocyNava/Hackatoncito-DoggyJeans
0639fe3afd751213742ff8f238b474228cedccdc
[ "Apache-2.0" ]
null
null
null
.header-fondoperro{ background-image: url(../img/fondoperro.jpg); background-repeat: no-repeat; background-size: cover; }
26
46
0.715385
af274f080dd0552424ca2f83d7fbf530ac3ac3b3
4,623
py
Python
final_homework/prim/prim.py
ufpa-organization-repositories/computer-theory-2
c61e2c887d2820aeb09f581bbfa2bb89d1f541e6
[ "MIT" ]
null
null
null
final_homework/prim/prim.py
ufpa-organization-repositories/computer-theory-2
c61e2c887d2820aeb09f581bbfa2bb89d1f541e6
[ "MIT" ]
null
null
null
final_homework/prim/prim.py
ufpa-organization-repositories/computer-theory-2
c61e2c887d2820aeb09f581bbfa2bb89d1f541e6
[ "MIT" ]
null
null
null
import random def choose_pivot(nos): i = random.randrange(0, len(nos)) pivo = nos[i] return pivo def get_min_weight_in_not_processed_adjacent_arrows(adjacencias): menor_peso = None for aresta, peso in adjacencias.items(): if menor_peso == None: menor_peso = peso elif peso < menor_peso: menor_peso = peso return menor_peso def get_pivo_adjacent_arrows(pivo, arestas): arestas_adjacentes_pivo = {} for aresta in arestas: no1, no2 = aresta[0][0], aresta[0][1] if pivo == no1 or pivo == no2: arestas_adjacentes_pivo[aresta[0]] = aresta[1] return arestas_adjacentes_pivo def get_node_adjacent_arrows(nos, arestas, adjacencia_corrente, arestas_processadas): # adiciona todas as arestas adjacentes que encontrar, pois a lista de arestas processadas esta vazia for no in nos: if arestas_processadas != {}: for aresta in arestas: if not aresta[0] in arestas_processadas.keys(): no1, no2 = aresta[0][0], aresta[0][1] if (no == no1 or no == no2): adjacencia_corrente[aresta[0]] = aresta[1] # adiciona as arestas adjacentes nao processadas else: for aresta in arestas: if not aresta[0] in arestas_processadas.keys(): no1, no2 = aresta[0][0], aresta[0][1] if (no == no1 or no == no2) and not aresta[0] in arestas_processadas.keys(): adjacencia_corrente[aresta[0]] = aresta[1] adjacencia_corrente_temp = adjacencia_corrente.copy() for adjacencia in adjacencia_corrente_temp.keys(): # if adjacencia in arestas_processadas.keys(): if adjacencia[0] in nos_processados and adjacencia[1] in nos_processados: del adjacencia_corrente[adjacencia] return adjacencia_corrente def get_not_pocessed_arrows_with_min_weigth_between_not_processed_adjacent_arrows(peso, adjacencia): arestas_menor_peso = [] for aresta, peso in adjacencia.items(): if peso == menor_peso: arestas_menor_peso.append(aresta) aresta_menor_peso = random.choice(arestas_menor_peso) return aresta_menor_peso def add_nodes_to_processed(menor_aresta, nos_processados): no1, no2 = menor_aresta[0], menor_aresta[1] if not no1 in nos_processados: nos_processados.append(no1) if not no2 in nos_processados: nos_processados.append(no2) return nos_processados def add_arrow_to_processed(aresta, peso, arestas_processadas): arestas_processadas[aresta] = peso return arestas_processadas def check_if_all_nodes_are_processed(nos, nos_processados): end = False if len(nos_processados) == len(nos): print('TODOS OS NÓS FORAM PROCESSADOS') end = True else: print('RESTAM {} NÓS'.format(len(nos) - len(nos_processados))) end = False return end nos = 'ABCDEFG' arestas_adjacentes_nao_processadas = {} arestas_processadas = {} print('NÓS: ', nos) arestas = [['AB', 7], ['AD', 5], ['BC', 8], ['BD', 9], ['BE', 7], ['CE', 5], ['DE', 15], ['DF', 6], ['EF', 8], ['EG', 9], ['FG', 11]] print('GRAFO: ', arestas) pivo = choose_pivot(nos) # pivo = 'D' print('PIVO: ', pivo) nos_processados = [pivo] end = check_if_all_nodes_are_processed(nos, nos_processados) iteracao = 1 while not end: print('\nITERACAO: ', iteracao) arestas_adjacentes_nao_processadas = get_node_adjacent_arrows(nos_processados, arestas, arestas_adjacentes_nao_processadas, arestas_processadas) print('ARESTAS ADJACENTES: {}'.format(arestas_adjacentes_nao_processadas)) menor_peso = get_min_weight_in_not_processed_adjacent_arrows(arestas_adjacentes_nao_processadas) aresta_menor_peso = get_not_pocessed_arrows_with_min_weigth_between_not_processed_adjacent_arrows(menor_peso, arestas_adjacentes_nao_processadas) print('menor peso: {}\naresta_menor_peso: {}'.format(menor_peso, aresta_menor_peso)) nos_processados = add_nodes_to_processed(aresta_menor_peso, nos_processados) arestas_processadas = add_arrow_to_processed(aresta_menor_peso, menor_peso, arestas_processadas) print('ARESTAS PROCESSADAS: ', arestas_processadas) print('NOS PROCESSADOS: ', nos_processados) end = check_if_all_nodes_are_processed(nos, nos_processados) print('end: ', end) iteracao += 1 print(arestas_processadas)
33.992647
149
0.663206
663ad936aa0baebb1bd38740ecf90fe2f34a0d56
2,636
py
Python
server/scanners/scan_php.py
tnvo/strelka
a66fd4e6efd745086a1694840e08f64b12be3987
[ "Apache-2.0" ]
2
2019-09-23T18:46:26.000Z
2020-01-13T18:39:39.000Z
server/scanners/scan_php.py
tnvo/strelka
a66fd4e6efd745086a1694840e08f64b12be3987
[ "Apache-2.0" ]
null
null
null
server/scanners/scan_php.py
tnvo/strelka
a66fd4e6efd745086a1694840e08f64b12be3987
[ "Apache-2.0" ]
2
2020-01-06T13:27:13.000Z
2020-02-28T06:42:00.000Z
import pygments from pygments import formatters from pygments import lexers from server import objects class ScanPhp(objects.StrelkaScanner): """Collects metadata from PHP files. Pygments is used as a lexer and the tokenized data is appended as metadata. Attributes: lexer: Pygments lexer ("php") used to parse the file. """ def init(self): self.lexer = lexers.get_lexer_by_name("php") def scan(self, file_object, options): highlight = pygments.highlight(file_object.data, self.lexer, formatters.RawTokenFormatter()) highlight_list = highlight.split(b"\n") ordered_highlights = [] for hl in highlight_list: split_highlight = hl.split(b"\t") if len(split_highlight) == 2: token = split_highlight[0].decode() value = split_highlight[1].decode().strip("'\"").strip() highlight_entry = {"token": token, "value": value} if highlight_entry["value"]: ordered_highlights.append(highlight_entry) self.metadata.setdefault("tokens", []) self.metadata.setdefault("builtins", []) self.metadata.setdefault("operators", []) self.metadata.setdefault("strings", []) self.metadata.setdefault("variables", []) position = 0 while position < len(ordered_highlights): ohlp = ordered_highlights[position] if ohlp["token"] not in self.metadata["tokens"]: self.metadata["tokens"].append(ohlp["token"]) if ohlp["token"] == "Token.Name.Builtin": if ohlp["value"] not in self.metadata["builtins"]: self.metadata["builtins"].append(ohlp["value"]) elif ohlp["token"] == "Token.Operator": if ohlp["value"] not in self.metadata["operators"]: self.metadata["operators"].append(ohlp["value"]) elif ohlp["token"] in ["Token.Literal.String.Single", "Token.Literal.String.Double", "Token.Literal.String.Backtick", "Token.Literal.String.Doc"]: if ohlp["value"] not in self.metadata["strings"]: self.metadata["strings"].append(ohlp["value"]) elif ohlp["token"] == "Token.Name.Variable": if ohlp["value"] not in self.metadata["variables"]: self.metadata["variables"].append(ohlp["value"]) position += 1
41.84127
79
0.555008
1ca0b97aae984dd7e0ae5ca16ae20610d057f8f6
79
lua
Lua
manual_start.lua
neuhalje/nodemcu-bootstrap
60ef221b268f0cc945b363cb1f275588c8d228c3
[ "WTFPL", "Unlicense" ]
2
2016-11-26T15:03:42.000Z
2017-02-01T18:32:47.000Z
manual_start.lua
neuhalje/nodemcu-bootstrap
60ef221b268f0cc945b363cb1f275588c8d228c3
[ "WTFPL", "Unlicense" ]
null
null
null
manual_start.lua
neuhalje/nodemcu-bootstrap
60ef221b268f0cc945b363cb1f275588c8d228c3
[ "WTFPL", "Unlicense" ]
null
null
null
-- manual start ´. mimics init.lua startup = require("startup") startup.go()
19.75
34
0.683544
e033ef9cd091dc8fa84a46cc59a9383bf9be4044
3,633
asm
Assembly
dd/rd/fdrv.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dd/rd/fdrv.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dd/rd/fdrv.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; RAM disk driver FORMAT V2.02  1989 Tony Tebby QJUMP section rd xdef rd_fdrv ; format drive xref rd_remv ; remove ram disk xref rd_emul ; check device emulation xref rd_alfs ; allocate first sector xref gu_achpp include 'dev8_keys_sys' include 'dev8_keys_iod' include 'dev8_keys_err' include 'dev8_keys_qdos_sms' include 'dev8_keys_qlv' include 'dev8_dd_rd_data' ;+++ ; Format RAM disk - first it removes old RAM disk ; ; d0 r status ; d1 r drive number / good sectors ; d2 r total sectors = d1 ; d6 c s msw drive number ; a1 c s medium name ; a3 c p linkage block ; d3-d7/a0/a2/a4/a5 scratch ; ; status return standard ;--- rd_fdrv bsr.l rd_remv ; remove old RAM disk rdf_name moveq #0,d2 ; ... no sectors moveq #0,d1 move.w (a1)+,d1 ; get length of name subq.w #5,d1 ; less RAMn_ ble.s rdf_ok addq.l #5,a1 jsr rd_emul ; check for emulation move.l d0,a4 ; save emulation address bgt.s rdf_alloc ; ... it is rdf_num move.l a1,a0 ; set start of number move.l a0,d7 add.l d1,d7 ; set end of number move.l sp,a1 ; put length on stack subq.l #2,sp move.l a6,-(sp) ; and sysvar sub.l a6,a6 move.w cv.deciw,a2 ; convert integer jsr (a2) move.l (sp)+,a6 move.w (sp)+,d2 cmp.l a0,d7 ; all of name converted? bne.s rdf_inam tst.l d0 ; conversion correct? bne.s rdf_inam rdf_alloc move.l d2,rdd_emul-rdd_driv(a5) ; set size move.w d2,d0 beq.s rdf_ok cmp.w #3,d0 ; at least 3? blt.s rdf_inam mulu #rdb.len,d0 ; room for linkage+sectors addq.l #rdb.slen,d0 ; plus room for fixed header jsr gu_achpp bne.s rdf_exit lea rdb_fsec-rdb_free(a0),a1 ; set static header move.w d2,(a1) ; free sectors subq.w #2,(a1)+ ; ... not first map / dir sectors move.w d2,(a1)+ ; total sectors move.l a1,(a5) ; set ram address st rdb_stat(a1) ; say preallocated move.l a1,rdb_data(a1) ; point to map itself move.l a4,d0 ; emulation? bgt.s rdf_emul ; ... yes move.w d2,d0 ; number of sectors subq.w #2,d0 add.w #rdb.len,a1 ; start of directory move.l a1,rdb_data+4-rdb.len(a1) ; set pointer to first sector rdf_psloop add.w #rdb.len,a1 ; next sector move.l a1,(a0) ; preset link move.l a1,a0 rdf_pslend subq.w #1,d0 bgt.s rdf_psloop rdf_ok move.w d2,d1 ; set sector count moveq #0,d0 rdf_exit rts rdf_inam moveq #err.inam,d0 rts rdf_emul moveq #0,d1 move.w rdd_emul-rdd_driv(a5),d1 ; drive number jmp (a4) ; do emulation setup end
32.72973
74
0.458574
f487b26313f2ed51ee9665940621908c561d210b
613
ts
TypeScript
src/ui/components/FemaleInfoPanelState.ts
hozuki/kk-save-edit
3442093fc1cf15ca303a2cc43c36f5ab8003e6e6
[ "WTFPL" ]
1
2020-03-03T10:26:53.000Z
2020-03-03T10:26:53.000Z
src/ui/components/FemaleInfoPanelState.ts
hozuki/kk-save-edit
3442093fc1cf15ca303a2cc43c36f5ab8003e6e6
[ "WTFPL" ]
null
null
null
src/ui/components/FemaleInfoPanelState.ts
hozuki/kk-save-edit
3442093fc1cf15ca303a2cc43c36f5ab8003e6e6
[ "WTFPL" ]
null
null
null
import FreeDict from "../../common/FreeDict"; export default interface FemaleInfoPanelState { values: FieldValues; errors: FieldErrors; } interface Fields<T> extends FreeDict<T | undefined> { firstName?: T; lastName?: T; nickname?: T; personality?: T; weakPoint?: T; answers?: T; sexPrefs: T; traits: T; feeling?: T; isLover?: T; hDegree?: T; hCount?: T; intimacy?: T; isAngry?: T; isClubMember?: T; hasDate?: T; developments: T; } interface FieldValues extends Fields<any> { } interface FieldErrors extends Fields<string> { }
15.717949
53
0.619902
fd65b9233763aefac5ca17121c406534d7999927
1,916
css
CSS
src/assets/fonts/fonts.css
mvpyb/cms
fa55ebd0c14347db6201bf55cd470cf6f54ea7a2
[ "MIT" ]
1
2021-07-07T01:58:03.000Z
2021-07-07T01:58:03.000Z
src/assets/fonts/fonts.css
mvpyb/cms
fa55ebd0c14347db6201bf55cd470cf6f54ea7a2
[ "MIT" ]
null
null
null
src/assets/fonts/fonts.css
mvpyb/cms
fa55ebd0c14347db6201bf55cd470cf6f54ea7a2
[ "MIT" ]
null
null
null
@font-face{ font-family: 'syHeavy'; src: url('SourceHanSansCN-Heavy.otf'); } @font-face{ font-family: 'syNormal'; src: url('SourceHanSansCN-Normal.otf'); } @font-face{ font-family: 'syRegular'; src: url('SourceHanSansCN-Regular.otf'); } @font-face{ font-family: 'syLight'; src: url('SourceHanSansCN-Light.otf'); } @font-face{ font-family: 'syExLight'; src: url('SourceHanSansCN-ExtraLight.otf'); } @font-face{ font-family: 'syMedium'; src: url('SourceHanSansCN-Medium.otf'); } @font-face{ font-family: 'syBold'; src: url('SourceHanSansCN-Bold.otf'); } body { font-family: 'syRegular', 'syNormal', 'syLight', 'syExLight', 'syMedium', 'syBold', 'syHeavy', 'Segoe UI', 'Lucida Grande', Helvetica, Arial, FreeSans, Arimo, 'Droid Sans', 'wenquanyi micro hei', 'Hiragino Sans GB', 'Hiragino Sans GB W3', 'FontAwesome', sans-serif; } .syBold { font-family: "syBold" !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .syExLight { font-family: "syExLight" !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .syHeavy { font-family: "syHeavy" !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .syLight { font-family: "syLight" !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .syMedium { font-family: "syMedium" !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .syNormal { font-family: "syNormal" !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .syRegular { font-family: "syRegular" !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
24.564103
125
0.69572
eb04261ad95f59d660c0fbe5b6778c269b4d5308
1,004
css
CSS
public/css/1024.css
aivarasvain/atraskvr-2
dd453f75a44ae8bc2a49ae830ff30c724fb825db
[ "Apache-2.0" ]
null
null
null
public/css/1024.css
aivarasvain/atraskvr-2
dd453f75a44ae8bc2a49ae830ff30c724fb825db
[ "Apache-2.0" ]
null
null
null
public/css/1024.css
aivarasvain/atraskvr-2
dd453f75a44ae8bc2a49ae830ff30c724fb825db
[ "Apache-2.0" ]
null
null
null
@media (max-width: 1024px) { #part-1 { height: 1048px; } #mainTitleDescription { margin-top: 60%; width: 50%; font-size: 14px; } #mainTitle { transform: scale(1.7, 1.7); } #apie p { font-size: 14px; } #apie { width: 70%; text-align: center; } #apie video { width: 100%; } #map { width: 100%; } #ticketsSquare { width: 80%; } #ticketsSquare h5 { font-size: 15px; } #ticketsSquare p { font-size: 25px; } #akropolis { height: 103px; width: 80%; } #litexpo { height: 103px; width: 80%; } #telesoftas { height: 103px; width: 80%; } #inida { height: 79px; width: 80% } #delfi { height: 92px; width: 20%; } #elektroMarktSponsors { height: 100px; width: 80%; } }
12.395062
35
0.417331
f8edeae255fff14b9f0966d36e1073dda2588938
1,347
cpp
C++
option.cpp
tttamaki/featureMatching
cb58b3432cf05c786cf2fd206e119a0d5567cc61
[ "MIT" ]
1
2018-04-14T07:34:30.000Z
2018-04-14T07:34:30.000Z
option.cpp
tttamaki/featureMatching
cb58b3432cf05c786cf2fd206e119a0d5567cc61
[ "MIT" ]
null
null
null
option.cpp
tttamaki/featureMatching
cb58b3432cf05c786cf2fd206e119a0d5567cc61
[ "MIT" ]
null
null
null
#include "option.hxx" using namespace std; options parseOptions( int argc, char **argv ) { namespace po = boost::program_options; po::options_description desc("Options"); desc.add_options() ("help", "This help message.") ("input", po::value<string>(), "Input filename.") ("startframe", po::value<int>(), "start frame number.") ("cameraID", po::value<int>(), "camera ID (default: -1, no camera is used)") ; po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); po::notify(vm); options Opt; if (vm.count("help")) { cout << desc << endl; exit(0); } Opt.cameraID = -1; if(vm.count("cameraID")) { Opt.cameraID = vm["cameraID"].as<int>(); cout << "cameraID: " << Opt.cameraID << endl; } Opt.startframe = 1; if(vm.count("startframe")) { Opt.startframe = vm["startframe"].as<int>(); cout << "start frame number: " << Opt.startframe << endl; } if (vm.count("input")) { Opt.filename = vm["input"].as<string>(); cout << " input filename: " << Opt.filename << endl; } else if (Opt.cameraID == -1) { cout << "no input is specified." << endl << desc << endl; exit(1); } return Opt; }
23.631579
80
0.52487
a3cfeb33752f281fd14e3066d4d2fd47cc192310
12,654
java
Java
src/main/java/org/earthtime/Tripoli/rawDataFiles/handlers/Thermo/MemUnivNewfoundlandElementIIFileHandler.java
bowring/ET_Redux
ca80dcd76b6529b2cab82027f80a179be39f720c
[ "Apache-2.0" ]
15
2015-03-25T14:16:24.000Z
2022-03-05T02:17:00.000Z
src/main/java/org/earthtime/Tripoli/rawDataFiles/handlers/Thermo/MemUnivNewfoundlandElementIIFileHandler.java
bowring/ET_Redux
ca80dcd76b6529b2cab82027f80a179be39f720c
[ "Apache-2.0" ]
104
2015-01-22T23:41:19.000Z
2022-02-20T12:46:03.000Z
src/main/java/org/earthtime/Tripoli/rawDataFiles/handlers/Thermo/MemUnivNewfoundlandElementIIFileHandler.java
CIRDLES/ET_Redux
1f045fd39cf3dd76d5172b63355753bb8bacebc3
[ "Apache-2.0" ]
24
2015-01-23T15:30:35.000Z
2020-11-23T16:14:27.000Z
/* * MemUnivNewfoundlandElementIIFileHandler * * Copyright 2006-2018 James F. Bowring, CIRDLES.org, and Earth-Time.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.earthtime.Tripoli.rawDataFiles.handlers.Thermo; import java.io.File; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.SortedSet; import java.util.TreeSet; import javax.swing.JOptionPane; import javax.swing.SwingWorker; import org.earthtime.Tripoli.dataModels.DataModelInterface; import org.earthtime.Tripoli.fractions.TripoliFraction; import org.earthtime.Tripoli.massSpecSetups.singleCollector.ThermoFinnigan.MemUnivNewfoundlandElementIISetupUPb; import org.earthtime.Tripoli.rawDataFiles.handlers.AbstractRawDataFileHandler; import org.earthtime.archivingTools.URIHelper; import org.earthtime.utilities.FileHelper; /** * * @author James F. Bowring */ public class MemUnivNewfoundlandElementIIFileHandler extends AbstractRawDataFileHandler { // Class variables private static final long serialVersionUID = -3261971989596229444L; private static MemUnivNewfoundlandElementIIFileHandler instance = new MemUnivNewfoundlandElementIIFileHandler(); private File[] analysisFiles; /** * * @param massSpec * @param rawDataFileTemplate */ private MemUnivNewfoundlandElementIIFileHandler() { super(); NAME = "Mem Univ Newfoundland Element II Folder"; aboutInfo = "Details: This is the Hanchar protocol for an ElementII."; } /** * * @return */ public static MemUnivNewfoundlandElementIIFileHandler getInstance() { return instance; } /** * * @param tripoliRawDataFolder * @return */ @Override public File validateAndGetHeaderDataFromRawIntensityFile(File tripoliRawDataFolder) { String dialogTitle = "Select a Mem Univ Newfoundland Element II Raw Data Folder:"; rawDataFile = FileHelper.AllPlatformGetFolder(dialogTitle, tripoliRawDataFolder); return rawDataFile; } /** * * @param loadDataTask the value of loadRawDataTaskListener * @param usingFullPropagation the value of usingFullPropagation * @param leftShadeCount the value of leftShadeCount * @param ignoreFirstFractions the value of ignoreFirstFract * @param inLiveMode the value of inLiveMode */ @Override public void getAndLoadRawIntensityDataFile(SwingWorker loadDataTask, boolean usingFullPropagation, int leftShadeCount, int ignoreFirstFractions, boolean inLiveMode) { // ElementII has folder of .FIN2 files plus INF DAT and TXT files for each acquisition // also there is a FIN file containing naming and ordering of samples analysisFiles = rawDataFile.listFiles((File dir, String name) -> { return name.toLowerCase().endsWith(".fin2"); }); if (analysisFiles.length > 0) { Arrays.sort(analysisFiles, new FractionFileModifiedComparator()); String onPeakFileContents = URIHelper.getTextFromURI(analysisFiles[0].getAbsolutePath()); if (isValidRawDataFileType(analysisFiles[0]) // && // areKeyWordsPresent(onPeakFileContents)) { // create fractions from raw data and perform corrections and calculate ratios tripoliFractions = loadRawDataFile(loadDataTask, usingFullPropagation, leftShadeCount, 0, inLiveMode); } } else { JOptionPane.showMessageDialog( null, new String[]{"Selected raw data folder does not contain valid files."}, "ET Redux Warning", JOptionPane.WARNING_MESSAGE); rawDataFile = null; } // return rawDataFile; } /** * * @return */ @Override protected boolean areKeyWordsPresent(String fileContents) { boolean retVal = true; retVal = retVal && fileContents.contains(getRawDataFileTemplate().getStartOfFirstLine().trim()); return retVal; } /** * * @param fractionID * @return */ @Override public boolean isStandardFractionID(String fractionID) { boolean retVal = false; for (String standardID : getRawDataFileTemplate().getStandardIDs()) { retVal = retVal || fractionID.toUpperCase().contains(standardID.toUpperCase()); } return retVal; } /** * * * @param loadDataTask the value of loadDataTask * @param usingFullPropagation the value of usingFullPropagation * @param leftShadeCount the value of leftShadeCount * @param ignoreFirstFractions the value of ignoreFirstFractions * @param inLiveMode the value of inLiveMode * @return the * java.util.SortedSet<org.earthtime.Tripoli.fractions.TripoliFraction> */ @Override protected SortedSet<TripoliFraction> loadRawDataFile(// SwingWorker loadDataTask, boolean usingFullPropagation, int leftShadeCount, int ignoreFirstFractions, boolean inLiveMode) { SortedSet myTripoliFractions = new TreeSet<>(); // assume we are golden for (int f = 0; f < analysisFiles.length; f++) { if (loadDataTask.isCancelled()) { break; } loadDataTask.firePropertyChange("progress", 0, ((100 * f) / analysisFiles.length)); String fractionID = analysisFiles[f].getName().toUpperCase().replace(".FIN2", ""); // hard-wired april 2015 boolean isStandard = false; if (f < 1) { isStandard = true; } // else if ((analysisFiles.length - f) < 4) { // isStandard = true; // } // get file contents String fractionFileContents = URIHelper.getTextFromURI(analysisFiles[f].getAbsolutePath()); String[] fractionFileRows = fractionFileContents.split("\n"); // first get time stamp for file in row 2 // form = Friday, February 06,2015 16:57:54 String timeStampFromRow2[] = fractionFileRows[1].split(","); String fractionDate = // timeStampFromRow2[1].trim() + " " // month day, + timeStampFromRow2[2].trim() // year HH:mm:ss ; // Get the default MEDIUM/SHORT DateFormat SimpleDateFormat fractionTimeFormat = new SimpleDateFormat(); fractionTimeFormat.applyPattern("MMMMM dd yyyy HH:mm:ss"); // Parse the fractionDateValue Date fractionDateValue; try { fractionDateValue = fractionTimeFormat.parse(fractionDate); // each acquisition file contains background followed by peak follwed by background // initial soultion is to hard wire the first background and peak // later we will give user interactive tools to pick them out ArrayList<double[]> backgroundAcquisitions = new ArrayList<>(); ArrayList<double[]> peakAcquisitions = new ArrayList<>(); int hardwiredEndOfBackground = 210; //*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ int assumedBackgrounRowCount = hardwiredEndOfBackground - rawDataFileTemplate.getBlockStartOffset(); long fractionBackgroundTimeStamp = fractionDateValue.getTime(); long fractionPeakTimeStamp = fractionDateValue.getTime() + assumedBackgrounRowCount * massSpec.getCOLLECTOR_DATA_FREQUENCY_MILLISECS(); for (int i = rawDataFileTemplate.getBlockStartOffset(); i < rawDataFileTemplate.getBlockSize(); i++) { String[] fractionCollectorsColumns = fractionFileRows[i].split(","); // Time [Sec]Pb204 Pb206 Pb207 Pb208 Th232 U238 // hard coded for now 2015 if (i <= hardwiredEndOfBackground) { double[] backgroundIntensities = new double[6]; backgroundAcquisitions.add(backgroundIntensities); backgroundIntensities[0] = Double.parseDouble(fractionCollectorsColumns[1]); backgroundIntensities[1] = Double.parseDouble(fractionCollectorsColumns[2]); backgroundIntensities[2] = Double.parseDouble(fractionCollectorsColumns[3]); backgroundIntensities[3] = Double.parseDouble(fractionCollectorsColumns[4]); backgroundIntensities[4] = Double.parseDouble(fractionCollectorsColumns[5]); backgroundIntensities[5] = Double.parseDouble(fractionCollectorsColumns[6]); } else if (i > (hardwiredEndOfBackground + 125)) { double[] peakIntensities = new double[6]; peakAcquisitions.add(peakIntensities); peakIntensities[0] = Double.parseDouble(fractionCollectorsColumns[1]); peakIntensities[1] = Double.parseDouble(fractionCollectorsColumns[2]); peakIntensities[2] = Double.parseDouble(fractionCollectorsColumns[3]); peakIntensities[3] = Double.parseDouble(fractionCollectorsColumns[4]); peakIntensities[4] = Double.parseDouble(fractionCollectorsColumns[5]); peakIntensities[5] = Double.parseDouble(fractionCollectorsColumns[6]); } } // i loop TripoliFraction tripoliFraction = // new TripoliFraction( // // fractionID, // massSpec.getCommonLeadCorrectionHighestLevel(), // isStandard, false, fractionBackgroundTimeStamp, // fractionPeakTimeStamp, peakAcquisitions.size()); SortedSet<DataModelInterface> rawRatios = ((MemUnivNewfoundlandElementIISetupUPb) massSpec).rawRatiosFactoryRevised(); tripoliFraction.setRawRatios(rawRatios); massSpec.setCountOfAcquisitions(peakAcquisitions.size()); // establish map of virtual collectors to field indexes Map<DataModelInterface, Integer> virtualCollectorModelMapToFieldIndexes = new HashMap<>(); virtualCollectorModelMapToFieldIndexes.put(massSpec.getPb204(), 0); virtualCollectorModelMapToFieldIndexes.put(massSpec.getPb206(), 1); virtualCollectorModelMapToFieldIndexes.put(massSpec.getPb207(), 2); virtualCollectorModelMapToFieldIndexes.put(massSpec.getPb208(), 3); virtualCollectorModelMapToFieldIndexes.put(massSpec.getTh232(), 4); virtualCollectorModelMapToFieldIndexes.put(massSpec.getU238(), 5); massSpec.processFractionRawRatiosII(// backgroundAcquisitions, peakAcquisitions, usingFullPropagation, tripoliFraction, virtualCollectorModelMapToFieldIndexes); tripoliFraction.shadeDataActiveMapLeft(leftShadeCount); System.out.println("\n**** Element II FractionID " + fractionID + " " + fractionDateValue.toString()); myTripoliFractions.add(tripoliFraction); } catch (ParseException parseException) { // TODO: drop out here } } if (myTripoliFractions.isEmpty()) { myTripoliFractions = null; } return myTripoliFractions; } /** * * @return the boolean */ @Override public boolean getAndLoadRawIntensityDataForReview() { return false; } }
42.039867
170
0.628655
ba01a3d6ee52e8f70fc51f3eda87fc9eace798ac
217
dart
Dart
ch03/ex21_cascade_method_invocation/bin/ex21_cascade_method_invocation.dart
rustkas/Mastering-Dart-Sergey-Akopkokhyants-R-D
6eeebd75309aeeb2621eff8454362e27aecc465e
[ "MIT" ]
null
null
null
ch03/ex21_cascade_method_invocation/bin/ex21_cascade_method_invocation.dart
rustkas/Mastering-Dart-Sergey-Akopkokhyants-R-D
6eeebd75309aeeb2621eff8454362e27aecc465e
[ "MIT" ]
null
null
null
ch03/ex21_cascade_method_invocation/bin/ex21_cascade_method_invocation.dart
rustkas/Mastering-Dart-Sergey-Akopkokhyants-R-D
6eeebd75309aeeb2621eff8454362e27aecc465e
[ "MIT" ]
1
2020-09-16T08:21:54.000Z
2020-09-16T08:21:54.000Z
void main() { SomeClass some; some = SomeClass() ..name = 'John' ..id = 1; print(some); } class SomeClass { String name; int id; @override String toString() { return '$id $name'; } }
12.055556
23
0.539171
ef48801f15fd4dd1298021e8145eea16db03b118
1,204
js
JavaScript
node_modules/webpacker/tests/plugins/stats.test.js
denisepen/InsideVagrant_Rails_App
85296c07b1d4cd15256b34c346df16b073d2123a
[ "MIT" ]
20
2018-02-16T09:18:16.000Z
2022-02-04T23:42:03.000Z
node_modules/webpacker/tests/plugins/stats.test.js
denisepen/InsideVagrant_Rails_App
85296c07b1d4cd15256b34c346df16b073d2123a
[ "MIT" ]
70
2018-02-12T14:30:22.000Z
2021-06-07T10:39:38.000Z
node_modules/webpacker/tests/plugins/stats.test.js
denisepen/InsideVagrant_Rails_App
85296c07b1d4cd15256b34c346df16b073d2123a
[ "MIT" ]
1
2019-05-22T12:12:10.000Z
2019-05-22T12:12:10.000Z
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer'); const {stats} = require('../../plugins'); describe('STATS plugin', () => { it('should return the defaults if no options are provided', () => { expect(stats({})).toBe(null); }); describe('receives an options object to customize the config', () => { it('allows to active analyzeBundle', () => { const expected = expect.objectContaining({ logger: { activeLevels: new Set( 'info', 'warn', 'error', 'silent' ) }, opts: { analyzerHost: '127.0.0.1', analyzerMode: 'static', analyzerPort: 8888, defaultSizes: 'gzip', excludeAssets: null, generateStatsFile: false, logLevel: 'info', openAnalyzer: true, reportFilename: 'report.html', startAnalyzer: true, statsFilename: 'stats.json', statsOptions: null }, server: null }); expect(stats({analyzeBundle: true})).toMatchObject(expected); expect(stats({analyzeBundle: true})).toBeInstanceOf(BundleAnalyzerPlugin); }); }); });
29.365854
80
0.547342
b8f5d8a2e8a8fbd56d0b8cd8196e59a823d6ff5d
5,930
h
C
esp32/pycom_config.h
DvdGiessen/pycom-micropython-sigfox
69dd8b5d6be5561742aed088ab8f5677668ad3a0
[ "MIT" ]
1
2020-05-13T08:20:28.000Z
2020-05-13T08:20:28.000Z
esp32/pycom_config.h
DvdGiessen/pycom-micropython-sigfox
69dd8b5d6be5561742aed088ab8f5677668ad3a0
[ "MIT" ]
null
null
null
esp32/pycom_config.h
DvdGiessen/pycom-micropython-sigfox
69dd8b5d6be5561742aed088ab8f5677668ad3a0
[ "MIT" ]
null
null
null
/* * Copyright (c) 2019, Pycom Limited. * * This software is licensed under the GNU GPL version 3 or any * later version, with permitted additional terms. For more information * see the Pycom Licence v1.0 document supplied with this file, or * available at https://www.pycom.io/opensource/licensing */ #ifndef PYCOM_CONFIG_H_ #define PYCOM_CONFIG_H_ #include "py/mpconfig.h" /****************************************************************************** DEFINE CONSTANTS ******************************************************************************/ /****************************************************************************** DEFINE TYPES ******************************************************************************/ typedef struct { uint8_t lpwan_mac[8]; uint8_t sigfox_id[4]; uint8_t sigfox_pac[8]; uint8_t sigfox_private_key[16]; uint8_t sigfox_public_key[16]; uint8_t lora_region; } pycom_lpwan_config_t; typedef struct { uint8_t wifi_on_boot :1; uint8_t wifi_mode :2; uint8_t wifi_smart_config:1; uint8_t wifi_auth :3; uint8_t wifi_antenna :1; } pycom_wifi_config_t; typedef struct { uint8_t wifi_ssid[33]; uint8_t wifi_pwd[65]; } pycom_wifi_sta_config_t; typedef struct { uint8_t wifi_ssid[33]; uint8_t wifi_pwd[65]; } pycom_wifi_ap_config_t; typedef struct { uint8_t heartbeat_on_boot :1; uint8_t rgb_error_color[3]; uint8_t rgb_safeboot_color[3]; uint8_t rgb_heartbeat_color[3]; } pycom_rgbled_config_t; typedef struct { uint8_t device_token[40]; uint8_t mqttServiceAddress[40]; uint8_t userId[100]; uint8_t network_preferences[55]; uint8_t extra_preferences[100]; uint8_t force_update; uint8_t reserved[12]; } pycom_pybytes_config_t; typedef struct { uint8_t sw_version[12]; uint8_t boot_fs_type; uint8_t boot_partition; uint8_t hw_type; } pycom_config_t; typedef struct { uint8_t wdt_on_boot; uint32_t wdt_on_boot_timeout; } pycom_wdt_config_t; typedef struct { uint8_t lte_modem_en_on_boot; } pycom_lte_config_t; typedef struct { uint8_t carrier[129]; uint8_t apn[129]; uint8_t type[17]; uint8_t cid; uint8_t band; uint8_t reset; } pycom_pybytes_lte_config_t; typedef struct { pycom_lpwan_config_t lpwan_config; pycom_wifi_config_t wifi_config; pycom_wifi_sta_config_t wifi_sta_config; pycom_rgbled_config_t rgbled_config; pycom_pybytes_config_t pybytes_config; pycom_wdt_config_t wdt_config; pycom_lte_config_t lte_config; pycom_config_t pycom_config; pycom_wifi_ap_config_t wifi_ap_config; pycom_pybytes_lte_config_t pycom_pybytes_lte_config; uint8_t pycom_reserved[112]; } pycom_config_block_t; typedef enum { PYCOM_WIFI_CONF_MODE_STA = 0, PYCOM_WIFI_CONF_MODE_AP, PYCOM_WIFI_CONF_MODE_APSTA, PYCOM_WIFI_CONF_MODE_NONE }pycom_config_wifi_mode_t; /****************************************************************************** DECLARE PUBLIC FUNCTIONS ******************************************************************************/ void config_init0(void); bool config_set_lpwan_mac(const uint8_t *mac); void config_get_lpwan_mac(uint8_t *mac); bool config_set_sigfox_id(uint8_t *id); void config_get_sigfox_id(uint8_t *id); bool config_set_sigfox_pac(uint8_t *pac); void config_get_sigfox_pac(uint8_t *pac); bool config_set_sigfox_public_key(uint8_t *public_key); void config_get_sigfox_public_key(uint8_t *public_key); bool config_set_sigfox_private_key(uint8_t *private_key); void config_get_sigfox_private_key(uint8_t *private_key); bool config_set_wifi_on_boot(uint8_t wifi_on_boot); bool config_get_wifi_on_boot(void); bool config_set_wifi_mode(uint8_t wifi_mode, bool update_flash); uint8_t config_get_wifi_mode(void); bool config_set_wifi_auth(uint8_t wifi_auth, bool update_flash); uint8_t config_get_wifi_auth(void); bool config_get_wifi_antenna(void); bool config_set_wdt_on_boot (uint8_t wdt_on_boot); bool config_set_wifi_smart_config (uint8_t smartConfig, bool update_flash); bool config_get_wifi_smart_config(void); bool config_get_wdt_on_boot (void); bool config_set_wdt_on_boot_timeout (uint32_t wdt_on_boot_timeout); uint32_t config_get_wdt_on_boot_timeout (void); bool config_set_heartbeat_on_boot(uint8_t wifi_on_boot); bool config_get_heartbeat_on_boot(void); bool config_set_sta_wifi_ssid(const uint8_t *wifi_ssid, bool update_flash); bool config_get_wifi_sta_ssid(uint8_t *wifi_ssid); bool config_set_wifi_sta_pwd(const uint8_t *wifi_pwd, bool update_flash); bool config_get_wifi_sta_pwd(uint8_t *wifi_pwd); bool config_set_wifi_ap_ssid(const uint8_t *wifi_ssid); bool config_get_wifi_ap_ssid(uint8_t *wifi_ssid); bool config_set_wifi_ap_pwd(const uint8_t *wifi_pwd); bool config_get_wifi_ap_pwd(uint8_t *wifi_pwd); bool config_set_lora_region (uint8_t lora_region); uint8_t config_get_lora_region (void); void config_get_pybytes_device_token (uint8_t *pybytes_device_token); void config_get_pybytes_mqttServiceAddress (uint8_t *pybytes_mqttServiceAddress); #if (VARIANT == PYBYTES) void config_get_pybytes_userId (uint8_t *pybytes_userId); void config_get_pybytes_network_preferences (uint8_t *pybytes_userId); void config_get_pybytes_extra_preferences (uint8_t *pybytes_userId); bool config_set_pybytes_force_update (uint8_t force_update); bool config_get_pybytes_force_update (void); #endif uint8_t config_get_boot_fs_type (void); bool config_set_boot_fs_type (const uint8_t boot_fs_type); pycom_pybytes_lte_config_t config_get_pybytes_lte_config (void); bool config_set_pybytes_lte_config(const pycom_pybytes_lte_config_t pycom_pybytes_lte_config); uint8_t config_get_boot_partition (void); bool config_set_boot_partition (const uint8_t boot_partition); bool config_set_lte_modem_enable_on_boot (bool lte_modem_en_on_boot); bool config_get_lte_modem_enable_on_boot (void); #endif /* PYCOM_CONFIG_H_ */
26.591928
94
0.739798
33ad82d598a74af4553107f3fedd26ad48034ec8
698
h
C
macOS/10.12/CoreServices.framework/_UTTypeQueryWithParentIdentifier.h
onmyway133/Runtime-Headers
e9b80e7ab9103f37ad421ad6b8b58ee06369d21f
[ "MIT" ]
30
2016-10-09T20:13:00.000Z
2022-01-24T04:14:57.000Z
macOS/10.12/CoreServices.framework/_UTTypeQueryWithParentIdentifier.h
onmyway133/Runtime-Headers
e9b80e7ab9103f37ad421ad6b8b58ee06369d21f
[ "MIT" ]
null
null
null
macOS/10.12/CoreServices.framework/_UTTypeQueryWithParentIdentifier.h
onmyway133/Runtime-Headers
e9b80e7ab9103f37ad421ad6b8b58ee06369d21f
[ "MIT" ]
7
2017-08-29T14:41:25.000Z
2022-01-19T17:14:54.000Z
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices */ @interface _UTTypeQueryWithParentIdentifier : _UTTypeQuery { NSString * _parentIdentifier; } + (BOOL)supportsSecureCoding; - (BOOL)_canResolveLocallyWithoutMappingDatabase; - (void)_enumerateWithXPCConnection:(id)arg1 block:(id)arg2; - (void)dealloc; - (id)debugDescription; - (void)encodeWithCoder:(id)arg1; - (unsigned long long)hash; - (id)initWithCoder:(id)arg1; - (id)initWithParentIdentifier:(id)arg1; - (BOOL)isEqual:(id)arg1; // _UTTypeQueryWithParentIdentifier (Private) - (BOOL)canIdentifierHaveChildren; @end
26.846154
132
0.7851
cd6c911223a648c71dbc350eba2b5302ddb972fc
1,654
cs
C#
Examples/BasicManagement/ZhuoFan.Wb.BasicService.Infrastructure/BasicManagementDbContext.cs
girvs/Girvs
a4f81629abd978ed2d0fe45ce81bc5804c190402
[ "Apache-2.0" ]
6
2020-07-21T02:50:51.000Z
2022-03-23T07:51:59.000Z
Examples/BasicManagement/ZhuoFan.Wb.BasicService.Infrastructure/BasicManagementDbContext.cs
girvs/Girvs
a4f81629abd978ed2d0fe45ce81bc5804c190402
[ "Apache-2.0" ]
1
2021-12-23T08:59:28.000Z
2021-12-23T08:59:28.000Z
Examples/BasicManagement/ZhuoFan.Wb.BasicService.Infrastructure/BasicManagementDbContext.cs
girvs/Girvs
a4f81629abd978ed2d0fe45ce81bc5804c190402
[ "Apache-2.0" ]
1
2021-08-12T03:00:11.000Z
2021-08-12T03:00:11.000Z
using Girvs.EntityFrameworkCore.Context; using Microsoft.EntityFrameworkCore; using ZhuoFan.Wb.BasicService.Domain.Models; using ZhuoFan.Wb.BasicService.Infrastructure.EntityConfigurations; namespace ZhuoFan.Wb.BasicService.Infrastructure { public class BasicManagementDbContext : GirvsDbContext { public BasicManagementDbContext(DbContextOptions<BasicManagementDbContext> options) : base(options) { } public DbSet<User> Users { get; set; } public DbSet<Role> Roles { get; set; } public DbSet<BasalPermission> BasalPermissions { get; set; } public DbSet<ServicePermission> ServicePermissions { get; set; } public DbSet<ServiceDataRule> ServiceDataRules { get; set; } public DbSet<UserRule> UserRulesEnumerable { get; set; } public override string DbConfigName { get; set; } = "Wb_BasicManagement"; // #if DEBUG // protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) // { // } // #endif protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.ApplyConfiguration(new RoleEntityTypeConfiguration()); modelBuilder.ApplyConfiguration(new UserEntityTypeConfiguration()); modelBuilder.ApplyConfiguration(new BasalPermissionEntityTypeConfiguration()); modelBuilder.ApplyConfiguration(new UserRulesEntityTypeConfiguration()); modelBuilder.ApplyConfiguration(new ServicePermissionEntityTypeConfiguration()); modelBuilder.ApplyConfiguration(new ServiceDataRuleEntityTypeConfiguration()); } } }
40.341463
107
0.720073
f5bb7b57098863971d49950158d62a0774a825b7
8,194
css
CSS
web/css/base.css
8xenon8/ezh-yii
d2bc51779d157c4e19ddc0328dbb63dfd8cae6af
[ "BSD-3-Clause" ]
null
null
null
web/css/base.css
8xenon8/ezh-yii
d2bc51779d157c4e19ddc0328dbb63dfd8cae6af
[ "BSD-3-Clause" ]
null
null
null
web/css/base.css
8xenon8/ezh-yii
d2bc51779d157c4e19ddc0328dbb63dfd8cae6af
[ "BSD-3-Clause" ]
null
null
null
/*BASE*/ html, body { overflow: auto; height: 100%; } body { position: relative; display: table; width: 100%; padding-bottom: 0; table-layout: fixed; color: #2c2b2b; } body .container.content-container { padding-bottom: 40px; } .site-header .navbar { border-radius: 0 !important; } .header__username { float: right; font-size: 22px; padding: 9px 0px; color: #fff; } .site-footer { left: 0; bottom: 0; display: table-footer-group; width: 100%; color: #fff; border-radius: 0; background-color: #222; } .site-footer__section { padding: 20px 15px; } .text-right { text-align: right; } ul.alert { list-style: none; } .embed-responsive-item { display: block; max-width: 100%; } .intro-embed { margin-bottom: 20px; } .page-title { margin-bottom: 35px; } .btn-group { margin-bottom: 15px; } .form-control { margin-bottom: 15px; } .back-btn-wrapper { margin-bottom: 25px; } .form-label { margin-bottom: 25px; } .form-label-block { display: block; } .form-label-block > span { display: inline-block; margin-bottom: 10px; } .create-category-form-wrap label { display: block; margin-bottom: 15px; } .register__user-type .btn.active { color: #fff; border-color: #ffb933; background-color: #ffb933 !important; } .header-bottom { position: relative; } .home-sidebar-text ol { counter-reset: homeText; } .home-sidebar-text ol li { position: relative; list-style: inherit; border: none; } .home-sidebar-text ol li:before { position: relative; display: inline-block; content: counter(homeText) '.'; counter-increment: homeText; } .home-locate-product .btn-primary, .header-bottom .btn { border: none; background-color: #ffc000; } .btn-info, .btn-primary { transition: all 0.15s ease-in; border-color: transparent; background-color: #ffc000; } .btn-info .badge { color: #ffc000; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info, .btn-info:hover, .btn-primary:hover, .btn-info:focus, .btn-primary:focus { border-color: transparent; background-color: #ffb933 !important; background-image: none; } .header-chose { position: static; } .header-chose__submenu-wrapper { position: absolute; top: 100%; left: 0; z-index: 101; display: none; width: 100%; padding: 0 15px; padding-top: 15px; padding-right: 0; } .header-chose__submenu-wrapper.not-active { display: none; } .header-chose__submenu-wrapper.active { display: block; } .header-chose__submnenu { position: absolute; top: 100%; left: auto; width: 31.6%; margin: 0; padding: 0; list-style: none; /*border-left: 5px solid #ffe600;*/ } .header-chose__submnenu li { /*position: relative;*/ } .header-chose__submnenu li a { display: block; width: 100%; padding: 6px 10px; transition: all 0.2s ease-in; text-decoration: none; border: 1px solid transparent; border-bottom-color: rgba(108, 138, 155, 0.2); } .header-chose__submnenu li.has-children a { position: relative; } .header-chose__submnenu li:last-child a { border-bottom: none; } .header-chose__submnenu li.has-children > a:after { position: absolute; top: 50%; right: 10px; display: inline-block; font-family: 'Glyphicons Halflings'; font-weight: normal; font-style: normal; line-height: 1; content: '\e080'; transition: all 0.2s ease-in; transform: translateY(-50%); color: #fff; -webkit-font-smoothing: antialiased; } .header-chose__submnenu li.has-children:hover > .header-chose__submnenu { display: block; } .header-chose__submnenu li.has-children:hover::after { color: #32414a; } .header-chose__submnenu li.has-children .header-chose__submnenu { top: 0; left: 100%; display: none; width: 100%; background-color: #f5c027; } .header-chose__submnenu li.has-children .header-chose__submnenu li > a:hover { background-color: #2c2b2b; } .header-chose__submnenu li.has-children .header-chose__submnenu li.has-children a:after { /*color: #32414a;*/ } .header-chose__submnenu--main { position: relative; float: left; margin-top: 0; border-top: 5px solid #ffe600; border-bottom: 5px solid #ffe600; border-left: 5px solid #ffe600; background: #2c2b2b; } .header-chose__dynamic { min-height: 330px; box-sizing: content-box; } .header-chose__submnenu--main > li > a { padding-left: 15px; color: #fff; } .header-chose__submnenu li.has-children .header-chose__submnenu a, .header-chose__submnenu--main > li:hover > a { color: #2c2b2b; background: #f5c027; } .header-chose__submnenu li.has-children .header-chose__submnenu .header-chose__submnenu a:hover { color: #2c2b2b; } .header-chose__submnenu li.has-children .header-chose__submnenu a:hover { color: #fff; } .header-chose__btn { text-transform: uppercase; } .header-chose__submnenu li.has-children .header-chose__submnenu .header-chose__submnenu, .header-chose__submnenu li.has-children .header-chose__submnenu .header-chose__submnenu li > a { background-color: #fff; } .header-chose-bg { float: left; width: 66.57%; border-top: 5px solid #ffe600; border-right: 5px solid #ffe600; border-bottom: 5px solid #ffe600; background-color: #fff; } .header-chose-bg__inner { padding: 10px 15px; } .header-chose__inner { display: inline-block; } .header-chose__inner:hover .header-chose__submenu-wrapper { display: block; } /*header-bottom*/ .header-searchform { margin-right: 12px; padding: 0; text-align: right; } .header-searchform input[type='submit'] { border-color: transparent; } .header-cart-btn { margin-left: 0; } .header-cart-btn .badge { vertical-align: top; } /*END:header-bottom*/ /*home*/ .home-locate-product { display: block; } /*END:home*/ input[type='radio'].input-user-type { display: inline-block; margin-right: 5px; vertical-align: top; } #hiddenInput { display: none; } /*prop-item*/ .prop-item { margin-bottom: 25px; } .prop-item__title { font-size: 22px; margin-bottom: 22px; } .prop-item__group label > span { display: block; margin-bottom: 5px; } form#filter { margin-bottom: 35px; padding-top: 25px; } .category-list .list-group-item .list-group-item { margin: 20px 0; } .filter__clear-btn { margin-bottom: 20px; } .adding-edit .adding { display: table; float: left; padding-right: 15px; padding-left: 15px; } .adding-edit .intl-tel-input { display: block; } /*END:prop-item*/ /*catalog*/ /*END:catalog*/ .product-images-row .product-images-item img { border: 3px solid transparent; } .thumbnail__cart-btn { margin-bottom: 15px; } .product-table .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) { width: 100%; } .input-counter .jq-number__spin { width: 32px; height: 32px; } .input-counter .input-counter__field { text-align: center; } .input-counter .jq-number { padding: 0 38px; } .input-counter .jq-number__field { width: 60px; } .input-counter .jq-number__spin.minus { left: 0; right: auto; } .input-counter .jq-number__spin.plus { left: auto; right: 0; } .input-counter .jq-number__spin:before { position: absolute; top: 15px; left: 10px; width: 12px; height: 2px; content: ''; border: none; background: #666; } .jq-number__spin:after { position: absolute; top: 4px; left: 11px; width: 0; height: 0; content: ''; border-right: 5px solid transparent; border-bottom: 5px solid #999; border-left: 5px solid transparent; } .jq-number__spin.minus:after { display: none; } .input-counter .jq-number__spin.plus:after { top: 10px; left: 15px; width: 2px; height: 12px; border: none; background: #666; } .user-change-email-labels label { display: block; } /*END:BASE*/
16.790984
102
0.647547
2a890bb3b472c03d507423381c66ba80b76af67c
34
sql
SQL
scripts/create_database.sql
Duelist/adamant-weasel
ac879cb7fee06a7ed09fa8bbd7d05034ee80671e
[ "MIT" ]
null
null
null
scripts/create_database.sql
Duelist/adamant-weasel
ac879cb7fee06a7ed09fa8bbd7d05034ee80671e
[ "MIT" ]
null
null
null
scripts/create_database.sql
Duelist/adamant-weasel
ac879cb7fee06a7ed09fa8bbd7d05034ee80671e
[ "MIT" ]
null
null
null
CREATE DATABASE "adamant-weasel";
17
33
0.794118
d5aa2814bc9c237bbb5e91d33e8f21723532bdaf
115
sql
SQL
exampleSqlProject/example/tables/File/BigFile.sql
microsoft/Spark-SQL-Deployment-Manager
6fc9cc8c0dd263d68b56ec863d375ba57cc99e2b
[ "MIT" ]
3
2021-02-28T15:44:22.000Z
2021-12-28T04:43:34.000Z
exampleSqlProject/example/tables/File/BigFile.sql
microsoft/Spark-SQL-Deployment-Manager
6fc9cc8c0dd263d68b56ec863d375ba57cc99e2b
[ "MIT" ]
1
2021-02-15T11:41:00.000Z
2021-02-15T11:41:00.000Z
exampleSqlProject/example/tables/File/BigFile.sql
microsoft/Spark-SQL-Deployment-Manager
6fc9cc8c0dd263d68b56ec863d375ba57cc99e2b
[ "MIT" ]
4
2021-02-14T18:00:32.000Z
2021-02-28T15:44:24.000Z
create table File.BigFile ( id int, filename string, fileSize long ) using delta location '$LAKE_PATH/file/bigfile'
14.375
34
0.791304
e24758e75e23316ba4de6aaf5826895817394561
4,780
kt
Kotlin
app/src/main/java/live/hms/app2/ui/meeting/pinnedvideo/VideoListAdapter.kt
ygit/100ms-android
47a737ae78a65fb6371cae09e24d5f5aa8b735de
[ "MIT" ]
null
null
null
app/src/main/java/live/hms/app2/ui/meeting/pinnedvideo/VideoListAdapter.kt
ygit/100ms-android
47a737ae78a65fb6371cae09e24d5f5aa8b735de
[ "MIT" ]
null
null
null
app/src/main/java/live/hms/app2/ui/meeting/pinnedvideo/VideoListAdapter.kt
ygit/100ms-android
47a737ae78a65fb6371cae09e24d5f5aa8b735de
[ "MIT" ]
null
null
null
package live.hms.app2.ui.meeting.pinnedvideo import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.annotation.MainThread import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView import live.hms.app2.databinding.ListItemVideoBinding import live.hms.app2.ui.meeting.MeetingTrack import live.hms.app2.util.NameUtils import live.hms.app2.util.SurfaceViewRendererUtil import live.hms.app2.util.crashlyticsLog import org.webrtc.RendererCommon class VideoListAdapter( private val onVideoItemClick: (item: MeetingTrack) -> Unit ) : RecyclerView.Adapter<VideoListAdapter.VideoItemViewHolder>() { companion object { private const val TAG = "VideoListAdapter" } override fun getItemId(position: Int) = items[position].id override fun onViewAttachedToWindow(holder: VideoItemViewHolder) { super.onViewAttachedToWindow(holder) Log.d(TAG, "onViewAttachedToWindow($holder)") holder.bindSurfaceView() } override fun onViewDetachedFromWindow(holder: VideoItemViewHolder) { super.onViewDetachedFromWindow(holder) Log.d(TAG, "onViewDetachedFromWindow($holder)") holder.unbindSurfaceView() } inner class VideoItemViewHolder( val binding: ListItemVideoBinding ) : RecyclerView.ViewHolder(binding.root) { private var itemRef: VideoListItem? = null private var isSurfaceViewBinded = false fun bind(item: VideoListItem) { binding.nameInitials.text = NameUtils.getInitials(item.track.peer.name) binding.name.text = item.track.peer.name binding.iconScreenShare.visibility = if (item.track.isScreen) View.VISIBLE else View.GONE binding.surfaceView.apply { setEnableHardwareScaler(true) setScalingType(RendererCommon.ScalingType.SCALE_ASPECT_FIT) // Meanwhile until the video is not binded, hide the view. visibility = View.GONE // Update the reference such that when view is attached to window // surface view is initialized with correct [VideoTrack] itemRef = item isSurfaceViewBinded = false } binding.root.setOnClickListener { onVideoItemClick(item.track) } } fun bindSurfaceView() { if (isSurfaceViewBinded) { Log.d(TAG, "bindSurfaceView: Surface view already initialized") return } itemRef?.let { item -> SurfaceViewRendererUtil.bind( binding.surfaceView, item.track, "VideoItemViewHolder::bindSurfaceView" ).let { success -> if (success) { binding.surfaceView.visibility = View.VISIBLE isSurfaceViewBinded = true } } } } fun unbindSurfaceView() { if (!isSurfaceViewBinded) return itemRef?.let { item -> SurfaceViewRendererUtil.unbind( binding.surfaceView, item.track, "VideoItemViewHolder::unbindSurfaceView" ).let { success -> if (success) { binding.surfaceView.visibility = View.GONE isSurfaceViewBinded = false } } } } } private val items = ArrayList<VideoListItem>() /** * @param newItems: Complete list of video items which needs * to be updated in the VideoGrid */ @MainThread fun setItems(newItems: MutableList<MeetingTrack>) { val newVideoItems = newItems.mapIndexed { index, track -> VideoListItem(index.toLong(), track) } val callback = VideoListItemDiffUtil(items, newVideoItems) val diff = DiffUtil.calculateDiff(callback) items.clear() items.addAll(newVideoItems) diff.dispatchUpdatesTo(this) crashlyticsLog(TAG, "Updated video list: size=${items.size}") } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): VideoItemViewHolder { val binding = ListItemVideoBinding.inflate( LayoutInflater.from(parent.context), parent, false ) return VideoItemViewHolder(binding) } override fun onBindViewHolder(holder: VideoItemViewHolder, position: Int) { crashlyticsLog(TAG, "onBindViewHolder: ${items[position]}") holder.bind(items[position]) } override fun onBindViewHolder( holder: VideoItemViewHolder, position: Int, payloads: MutableList<Any> ) { if (payloads.isEmpty()) { return super.onBindViewHolder(holder, position, payloads) } crashlyticsLog( TAG, "onBindViewHolder: Manually updating $holder with ${items[position]} " + "[payloads=$payloads]" ) holder.unbindSurfaceView() // Free the context initialized for the previous item holder.bind(items[position]) holder.bindSurfaceView() } override fun getItemCount() = items.size }
30.062893
100
0.69728
42e703de94492c0780a07c670251adbec48ba9c3
543
sql
SQL
data/test/sql/e736927edc0a031640fb22be61844943f89f7410euler1_2.sql
aliostad/deep-learning-lang-detection
d6b031f3ebc690cf2ffd0ae1b08ffa8fb3b38a62
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/sql/e736927edc0a031640fb22be61844943f89f7410euler1_2.sql
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/sql/e736927edc0a031640fb22be61844943f89f7410euler1_2.sql
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
#!/usr/bin/sq // Euler1 in Squirrel // generate a list of ints function genInts (i, acc=[]) { acc.append(i); if (i == 0) { return acc; } else { return genInts(i-1, acc); } }; function Euler1(size) { local ints = genInts(size) local mapped = ::map(ints, function(val) {return val} ) local filtered = mapped.filter( function(idx,val) {if (val%3==0 || val%5==0) return true else return false} ) local reduced = filtered.reduce( function(x,y) {return x+y} ) return reduced; } print ( Euler1(10) + "\n" );
21.72
110
0.607735
c08dcfd9e0d47d5f5546cb249eb68eff45a1be02
601
sql
SQL
openGaussBase/testcase/KEYWORDS/current_time/Opengauss_Function_Keyword_Current_time_Case0025.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/current_time/Opengauss_Function_Keyword_Current_time_Case0025.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/current_time/Opengauss_Function_Keyword_Current_time_Case0025.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
-- @testpoint:opengauss关键字current_time(保留),作为角色名 --关键字不带引号-合理报错 drop role if exists current_time; create role current_time with password 'gauss@123' valid until '2020-12-31'; --关键字带双引号-成功 drop role if exists "current_time"; create role "current_time" with password 'gauss@123' valid until '2020-12-31'; --清理环境 drop role "current_time"; --关键字带单引号-合理报错 drop role if exists 'current_time'; create role 'current_time' with password 'gauss@123' valid until '2020-12-31'; --关键字带反引号-合理报错 drop role if exists `current_time`; create role `current_time` with password 'gauss@123' valid until '2020-12-31';
30.05
78
0.762063
e2a21dbc265bf9558b49a45e8fa037e19dde4402
327
js
JavaScript
components/general/FormGroup/index.js
ahmedmusawir/dc-nexti18n-broken
f480337184e96a9087030d6ab79baf84f38b2f1c
[ "MIT" ]
null
null
null
components/general/FormGroup/index.js
ahmedmusawir/dc-nexti18n-broken
f480337184e96a9087030d6ab79baf84f38b2f1c
[ "MIT" ]
null
null
null
components/general/FormGroup/index.js
ahmedmusawir/dc-nexti18n-broken
f480337184e96a9087030d6ab79baf84f38b2f1c
[ "MIT" ]
1
2019-08-08T12:35:18.000Z
2019-08-08T12:35:18.000Z
/** * * <FormGroup /> * * A FormGroup Container with Props * Props: fluid etc. */ import React from 'react'; import { FormGroup as RSFormGroup } from 'reactstrap'; export const FormGroup = props => { const { children } = props; return <RSFormGroup {...props}>{children}</RSFormGroup>; }; export default FormGroup;
18.166667
58
0.666667
754feffb0d5561453e513a1014e372b60c738fbf
389
css
CSS
assets/front/css/main.css
gaji-asif/uk_feedback
d7f71692216956af46e7b6bb0c095fdbe4f134f2
[ "MIT" ]
null
null
null
assets/front/css/main.css
gaji-asif/uk_feedback
d7f71692216956af46e7b6bb0c095fdbe4f134f2
[ "MIT" ]
null
null
null
assets/front/css/main.css
gaji-asif/uk_feedback
d7f71692216956af46e7b6bb0c095fdbe4f134f2
[ "MIT" ]
null
null
null
@import url("bootstrap.css"); @import url("bootstrap-select.css"); @import url("custom_animation.css"); @import url("font-awesome.css"); @import url("../js/plugins/slider/owl.carousel.min.css"); @import url("../js/plugins/gallery/magnific-popup.css"); @import url("../js/plugins/jqueryui/jquery-ui.css"); @import url("font.css"); @import url("style.css"); @import url("responsive.css");
29.923077
57
0.701799
cd19c5bc7135c5667a3198feb79820fe4a63910d
1,565
cs
C#
Homeworks/Sets and Dictionaries - Exercise/7. Fix Emails/FixEmails.cs
DimitarIvanov8/software-university
6e94bb14764a576df0a65c67f8c8d32cae9011a1
[ "MIT" ]
null
null
null
Homeworks/Sets and Dictionaries - Exercise/7. Fix Emails/FixEmails.cs
DimitarIvanov8/software-university
6e94bb14764a576df0a65c67f8c8d32cae9011a1
[ "MIT" ]
null
null
null
Homeworks/Sets and Dictionaries - Exercise/7. Fix Emails/FixEmails.cs
DimitarIvanov8/software-university
6e94bb14764a576df0a65c67f8c8d32cae9011a1
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _7.Fix_Emails { class FixEmails { static void Main(string[] args) { // You are given a sequence of strings, each on a new line, // unitll you receive “stop” command.First string is a name of a person. // On the second line you receive his email. Your task is to collect their names and emails, // and remove emails whose domain ends with "us" or "uk"(case insensitive).Print: // { name} – > { email} string name = Console.ReadLine(); string email; Dictionary<string, string> emailList = new Dictionary<string, string>(); while (name != "stop") { email = Console.ReadLine().Trim(); if (!emailList.ContainsKey(name)) { if (!email.Contains(".us") && !email.Contains(".uk")) { emailList.Add(name, email); } } else { if (!email.Contains(".us") && !email.Contains(".uk")) { emailList[name] = email; } } name = Console.ReadLine(); } foreach (var kvp in emailList) { Console.WriteLine($"{kvp.Key} -> {kvp.Value}"); } } } }
31.3
105
0.463898
cd3c4204ebe925fdeed012fe21c1f68e6542bdff
2,553
lua
Lua
lua/vfiler/extensions/bookmark/action.lua
obaland/vfiler.vim
f6b76e05a94c23badc447de0bda1f89a0d67fcbe
[ "MIT" ]
39
2018-04-28T05:59:28.000Z
2022-03-31T16:06:25.000Z
lua/vfiler/extensions/bookmark/action.lua
obaland/vfiler.vim
f6b76e05a94c23badc447de0bda1f89a0d67fcbe
[ "MIT" ]
2
2018-04-24T12:10:45.000Z
2022-01-25T00:36:10.000Z
lua/vfiler/extensions/bookmark/action.lua
obaland/vfiler.vim
f6b76e05a94c23badc447de0bda1f89a0d67fcbe
[ "MIT" ]
1
2021-12-28T09:58:47.000Z
2021-12-28T09:58:47.000Z
local action = require('vfiler/extensions/action') local cmdline = require('vfiler/libs/cmdline') local core = require('vfiler/libs/core') local vim = require('vfiler/libs/vim') local function select(extension, layout) layout = layout or 'none' local item = extension:get_item() if item.type == 'category' or not core.path.exists(item.path) then return end extension:select(item.path, layout) end function action.change_category(extension) local item = extension:get_item() if item.type == 'category' then return end extension:change_category(item) extension:save() core.message.info('The category has changed.') extension:reload() core.cursor.winmove(extension.winid, extension:indexof(item)) end function action.delete(extension) local item = extension:get_item() local prompt = 'Are you sure you want to delete? - ' .. item.name local choices = { cmdline.choice.YES, cmdline.choice.NO } if cmdline.confirm(prompt, choices, 2) ~= cmdline.choice.YES then return end item:delete() extension:update() extension:save() core.message.info('Deleted - %s', item.name) extension:reload() end function action.rename(extension) local item = extension:get_item() local name = item.name local rename = cmdline.input('New name? - ' .. name, name) if #rename == 0 then -- canceled return end item.name = rename extension:update() extension:save() core.message.info('Renamed - "%s" -> "%s"', name, rename) extension:reload() core.cursor.winmove(extension.winid, extension:indexof(item)) end function action.open(extension) local item = extension:get_item() if item.type == 'category' then action.open_tree(extension) else select(extension) end end function action.open_by_split(extension) select(extension, 'bottom') end function action.open_by_tabpage(extension) select(extension, 'tab') end function action.open_by_vsplit(extension) select(extension, 'right') end function action.open_tree(extension) local lnum = vim.fn.line('.') local item = extension:get_item(lnum) if item.type ~= 'category' or item.opened then return end item:open() extension:redraw() core.cursor.winmove(extension:winid(), lnum + 1) end function action.close_tree(extension) local item = extension:get_item() local category if item.type == 'category' then category = item else category = item.parent end category:close() extension:redraw() core.cursor.winmove(extension:winid(), extension:indexof(category)) end return action
24.314286
69
0.717979
9302071b43d835f574aedc76e653bbb87f94539e
1,336
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_1_256.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_1_256.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_1_256.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x148ca, %rcx nop nop nop nop sub %r14, %r14 movl $0x61626364, (%rcx) nop nop nop xor %r9, %r9 lea addresses_WT_ht+0xb98a, %rsi lea addresses_D_ht+0x9d4a, %rdi sub %r14, %r14 mov $67, %rcx rep movsl inc %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %rbx push %rdi push %rsi // Faulty Load lea addresses_US+0x90ca, %rdi nop nop nop add $37635, %rsi movups (%rdi), %xmm5 vpextrq $1, %xmm5, %r10 lea oracles, %r13 and $0xff, %r10 shlq $12, %r10 mov (%r13,%r10,1), %r10 pop %rsi pop %rdi pop %rbx pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'00': 1} 00 */
17.813333
147
0.651946
2d2123a36ed36884156414d63e6f90efe884cd2b
821
css
CSS
renderer/default.css
jtvberg/Moby
36b3f6c7d55ec550ab98068421fb374c28fedd42
[ "MIT" ]
2
2020-07-16T21:48:22.000Z
2020-09-05T08:05:50.000Z
renderer/default.css
jtvberg/Moby
36b3f6c7d55ec550ab98068421fb374c28fedd42
[ "MIT" ]
15
2020-03-26T20:01:20.000Z
2021-02-06T22:01:23.000Z
renderer/default.css
jtvberg/Moby
36b3f6c7d55ec550ab98068421fb374c28fedd42
[ "MIT" ]
1
2020-02-09T20:28:47.000Z
2020-02-09T20:28:47.000Z
:root { --red: #e74c3c; --blue: #2980b9; --orange: #e67e22; --purple: #9b59b6; --green: #27ae60; --secondary: #383838; --primary: #e7e7e7; --menu-primary: #ffffff2c; --card-primary: #e7e7e7; --muted: #b9b9b9; --trans: #00000000; --opaque: #ffffff15; --opaque-card: #ffffff15; --new-highlight: #4dd332; --tag-highlight: #32b3d3; --search-highlight: #d6b314; --highlight: #32b3d3; --drop: #32b3d35b; --unchecked: #ffffff42; --checked: #fff; --focused: #fff; --img-opacity: .02; --main-background-light: #405974; --main-background-dark: #243342; --menu-background-light: #405974; --menu-background-dark: #405974; --tag-card-color: #e0e0e0; --tag-card-background: #0000003d; --tag-cloud-color: #e0e0e0; --tag-cloud-background: #0000003d; --font-base-size: 100%; }
24.878788
36
0.62363
b311266d18257e334be798593bb7cf2011a43b16
157
py
Python
webactivities/default_settings.py
lukegb/ehacktivities
bc04d02eaf36a106b943ce0cb8395e85a780f6fc
[ "MIT" ]
1
2016-04-30T00:19:13.000Z
2016-04-30T00:19:13.000Z
webactivities/default_settings.py
lukegb/ehacktivities
bc04d02eaf36a106b943ce0cb8395e85a780f6fc
[ "MIT" ]
null
null
null
webactivities/default_settings.py
lukegb/ehacktivities
bc04d02eaf36a106b943ce0cb8395e85a780f6fc
[ "MIT" ]
null
null
null
FERNET_KEY = 'uyflUICClYw0n7OVjtyEsGDiiyLqzsSqaLQJZtGigf0=' SECRET_KEY = "=8wGX26:{mKZVRo0@0`i<RLMq(eHt~Nh8P6|LX'WHlN5S6n/eZ52>s4182G6$f1" FERNET_TTL = 3600
39.25
78
0.808917
aa3e2defc7f86af873277be7203b9bcb622b4633
823
rb
Ruby
spec/icl_e2_spec.rb
Origen-SDK/ijtag
134a5e084b7929342bc77a707a438329c3dbf3c3
[ "MIT" ]
3
2019-01-24T11:32:29.000Z
2019-11-11T20:32:42.000Z
spec/icl_e2_spec.rb
Origen-SDK/ijtag
134a5e084b7929342bc77a707a438329c3dbf3c3
[ "MIT" ]
1
2021-05-17T23:16:26.000Z
2021-05-17T23:16:26.000Z
spec/icl_e2_spec.rb
Origen-SDK/ijtag
134a5e084b7929342bc77a707a438329c3dbf3c3
[ "MIT" ]
null
null
null
require "spec_helper" describe "ICL Example 2 from the 1687 spec" do def file "#{Origen.root}/examples/e2.icl" end it "can be parsed to an ast" do icl = File.read(file) ast = icl_parser.parse(icl).to_ast end it 'instantiates the top level instrument' do defn = IJTAG.import(file: file) defn.is_a?(IJTAG::NetworkDefinition).should == true defn.modules.size.should == 1 network = defn.instantiate("Instrument") network.is_a?(IJTAG::Module).should == true network.ports.size.should == 2 network.DO.size.should == 8 network.DI.size.should == 8 end it 'captures alias and enumerations from the module def' do network = IJTAG.import(file: file).instantiate("Instrument") network.aliases.size.should == 6 network.enumerations.size.should == 3 end end
25.71875
64
0.682868
16d1b679b51b43a9055444b852b794e16198ddea
408
dart
Dart
packages/leaders_api/test/leaders_api_test.dart
githubmonkey/sliderpuzzle_flutter
da7271bc6bb66c6662baed224278ff59664e3ce5
[ "MIT" ]
null
null
null
packages/leaders_api/test/leaders_api_test.dart
githubmonkey/sliderpuzzle_flutter
da7271bc6bb66c6662baed224278ff59664e3ce5
[ "MIT" ]
1
2022-03-30T16:05:47.000Z
2022-03-30T16:05:47.000Z
packages/leaders_api/test/leaders_api_test.dart
githubmonkey/sliderpuzzle_flutter
da7271bc6bb66c6662baed224278ff59664e3ce5
[ "MIT" ]
null
null
null
import 'package:leaders_api/leaders_api.dart'; import 'package:test/test.dart'; class TestLeadersApi extends LeadersApi { TestLeadersApi() : super(); @override dynamic noSuchMethod(Invocation invocation) { return super.noSuchMethod(invocation); } } void main() { group('LeadersApi', () { test('can be constructed', () { expect(TestLeadersApi.new, returnsNormally); }); }); }
20.4
50
0.686275
2400849402d66c1ac0455bd0b949ca749aa6bcda
93
sql
SQL
dhis-2/dhis-support/dhis-support-db-migration/src/main/resources/org/hisp/dhis/db/migration/2.36/V2_36_41__Add_index_on_reservedvalue.sql
abyot/eotcnor
c2edc835bf3db5d97618f19855b6890181df07af
[ "BSD-3-Clause" ]
null
null
null
dhis-2/dhis-support/dhis-support-db-migration/src/main/resources/org/hisp/dhis/db/migration/2.36/V2_36_41__Add_index_on_reservedvalue.sql
abyot/eotcnor
c2edc835bf3db5d97618f19855b6890181df07af
[ "BSD-3-Clause" ]
null
null
null
dhis-2/dhis-support/dhis-support-db-migration/src/main/resources/org/hisp/dhis/db/migration/2.36/V2_36_41__Add_index_on_reservedvalue.sql
abyot/eotcnor
c2edc835bf3db5d97618f19855b6890181df07af
[ "BSD-3-Clause" ]
null
null
null
create index if not exists in_reservedvalue_owneruid_value on reservedvalue (owneruid,value);
93
93
0.870968
cc9b160e0e780c26a4b0c0d4d73892c4e045541c
228
rb
Ruby
rails/db/migrate/20090524183918_add_gse_key_to_grade_span_expectation.rb
concord-consortium/rigse
254df816c6e46ef9706dcbaf71922706ddbf7e91
[ "MIT" ]
6
2017-01-18T20:31:28.000Z
2020-09-17T13:14:30.000Z
rails/db/migrate/20090524183918_add_gse_key_to_grade_span_expectation.rb
concord-consortium/rigse
254df816c6e46ef9706dcbaf71922706ddbf7e91
[ "MIT" ]
587
2015-01-13T11:59:25.000Z
2021-12-13T16:40:37.000Z
rails/db/migrate/20090524183918_add_gse_key_to_grade_span_expectation.rb
concord-consortium/rigse
254df816c6e46ef9706dcbaf71922706ddbf7e91
[ "MIT" ]
8
2015-03-04T11:10:40.000Z
2022-02-02T00:52:04.000Z
class AddGseKeyToGradeSpanExpectation < ActiveRecord::Migration[5.1] def self.up add_column :grade_span_expectations, :gse_key, :string end def self.down remove_column :grade_span_expectations, :gse_key end end
22.8
68
0.776316
db7a3da5837f20c480ea1bf7e3d9d2774ecc0498
1,054
php
PHP
api/app/page/template/editpass.php
jasonhzy/wxfx
0a9b244bb4addda75616b07aa974b48ca58a62e5
[ "Apache-2.0" ]
null
null
null
api/app/page/template/editpass.php
jasonhzy/wxfx
0a9b244bb4addda75616b07aa974b48ca58a62e5
[ "Apache-2.0" ]
null
null
null
api/app/page/template/editpass.php
jasonhzy/wxfx
0a9b244bb4addda75616b07aa974b48ca58a62e5
[ "Apache-2.0" ]
null
null
null
<style type="text/css"> .gototype a{ padding:2px; border-bottom:2px solid #ccc; border-right:2px solid #ccc;} .tx{ width:350px; border:1px solid #ccc; height:28px; line-height:28px} .tx2{ width:120px; border:1px solid #ccc; height:28px; line-height:28px} </style> <div class="contentbox"> <h2 class="con_title">修改密码!</h2> <form id="form1" name="form1" method="post" action=""> <table cellspacing="2" cellpadding="5" width="100%"> <tr> <td class="label" width="15%">登录用户:</td> <td> <input readonly="" class="tx" name="user_name" value="<?php echo isset($rt['user_name']) ? $rt['user_name'] : '';?>" size="40" type="text" style="background-color:#FAFAFA" /> </td> </tr> <tr> <td class="label" width="15%">登录密码:</td> <td> <input class="tx" name="password" value="" size="40" type="text" /> </td> </tr> <tr> <td>&nbsp;</td> <td><label> <input type="submit" value="确认修改" class="submit" style="padding:3px; cursor:pointer"/> </label></td> </tr> </table> </form> </div>
32.9375
178
0.594877
0d751a46f6ef769d0f3611092acc94f9f15482a1
1,070
cs
C#
src/Condition/OnMissingBean.cs
yuzd/Autofac.Annotation
9caad26e0641e0c0772a13f4d9f6fd0fbe880da7
[ "MIT" ]
203
2018-12-04T12:58:02.000Z
2022-03-25T03:48:10.000Z
src/Condition/OnMissingBean.cs
yuzd/Autofac.Annotation
9caad26e0641e0c0772a13f4d9f6fd0fbe880da7
[ "MIT" ]
22
2019-10-01T12:51:46.000Z
2022-01-21T14:45:13.000Z
src/Condition/OnMissingBean.cs
yuzd/Autofac.Annotation
9caad26e0641e0c0772a13f4d9f6fd0fbe880da7
[ "MIT" ]
43
2019-01-17T03:10:17.000Z
2022-02-27T13:52:18.000Z
using Autofac.Core; using Autofac.Core.Registration; namespace Autofac.Annotation.Condition { /// <summary> /// 条件里面配置的 没有被注册过才要添加到容器 /// </summary> internal class OnMissingBean : ICondition { /// <summary> /// true代表要过滤 /// </summary> /// <param name="context"></param> /// <param name="config"></param> /// <returns></returns> public bool ShouldSkip(IComponentRegistryBuilder context, object config) { if (!(config is ConditionOnMissingBean metaConfig)) { return false; } if (!string.IsNullOrEmpty(metaConfig.name) && metaConfig.type != null) { //匹配name加类型 return context.IsRegistered(new KeyedService(metaConfig.name, metaConfig.type)); } else if (metaConfig.type != null) { //只匹配类型 return context.IsRegistered(new TypedService(metaConfig.type)); } return false; } } }
28.157895
96
0.530841
1bca04ed98b241c887daff86d5ab8b73cde37f8d
391
rb
Ruby
app/lib/service_provider.rb
weenhanceit/autism-funding
a170fbd9e5fa6c594935c56faefc846cd504d398
[ "MIT" ]
null
null
null
app/lib/service_provider.rb
weenhanceit/autism-funding
a170fbd9e5fa6c594935c56faefc846cd504d398
[ "MIT" ]
79
2016-06-17T05:01:03.000Z
2018-06-03T14:55:48.000Z
app/lib/service_provider.rb
weenhanceit/autism-funding
a170fbd9e5fa6c594935c56faefc846cd504d398
[ "MIT" ]
null
null
null
## # RTP when being used to pay for an agency or service provider invoice module ServiceProvider def display_start_date cf0925.service_provider_service_start end def display_end_date cf0925.service_provider_service_end end def payee cf0925.service_provider_name || cf0925.agency_name end def requested_amount cf0925.service_provider_service_amount end end
19.55
70
0.792839
5d9fab6a54e7d2c6017976ec01cdc88f65ce58df
638
cpp
C++
examples/wx/full_demo.cpp
JiveHelix/pex
d3cbe0e437e803fb4af6fe153de0cf3f61a3a6d6
[ "MIT" ]
null
null
null
examples/wx/full_demo.cpp
JiveHelix/pex
d3cbe0e437e803fb4af6fe153de0cf3f61a3a6d6
[ "MIT" ]
null
null
null
examples/wx/full_demo.cpp
JiveHelix/pex
d3cbe0e437e803fb4af6fe153de0cf3f61a3a6d6
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <bitset> #include <array> #include "tau/angles.h" #include "fields/fields.h" #include "pex/signal.h" #include "pex/value.h" #include "pex/initialize.h" #include "pex/range.h" #include "pex/chooser.h" #include "pex/converter.h" #include "pex/wx/wxshim.h" #include "pex/wx/labeled_widget.h" #include "pex/wx/view.h" #include "pex/wx/field.h" #include "pex/wx/button.h" #include "pex/wx/check_box.h" #include "pex/wx/combo_box.h" #include "pex/wx/radio_box.h" #include "pex/wx/slider.h" #include "pex/wx/spin_control_double.h" #include "pex/wx/shortcut.h" #include "pex/detail/filters.h"
20.580645
39
0.721003
79905d5c48d070b8eb44dd0e6710557a3c57e0a3
1,083
php
PHP
database/migrations/2016_03_25_094538_create_vacaciones_table.php
danienrikke/cuartel
ab93b42e968f3846e7fece91bba98a5b1e845821
[ "MIT" ]
null
null
null
database/migrations/2016_03_25_094538_create_vacaciones_table.php
danienrikke/cuartel
ab93b42e968f3846e7fece91bba98a5b1e845821
[ "MIT" ]
null
null
null
database/migrations/2016_03_25_094538_create_vacaciones_table.php
danienrikke/cuartel
ab93b42e968f3846e7fece91bba98a5b1e845821
[ "MIT" ]
null
null
null
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateVacacionesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('vacaciones', function (Blueprint $table) { $table->increments('codigo'); $table->integer('cpersonal')->unsigned(); $table->integer('cdependencia')->unsigned(); $table->integer('estatus')->default(0); $table->date('fecha_salida'); $table->date('fecha_ingreso'); $table->timestamps(); }); Schema::table('vacaciones', function($table) { $table->foreign('cpersonal')->references('cedula')->on('personal')->onDelete('cascade'); $table->foreign('cdependencia')->references('codigo')->on('dependencias')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('vacaciones'); } }
26.414634
107
0.56048
0d49355677068f8156db710e265eb2ae81893c95
348
cs
C#
reactive-extensions-test/maybe/MaybeEmptyTest.cs
akarnokd/reactive-extensions
16bf654486b9edfeb359f9330076828a05e5efb6
[ "Apache-2.0" ]
50
2018-05-10T10:07:45.000Z
2022-03-18T20:17:28.000Z
reactive-extensions-test/maybe/MaybeEmptyTest.cs
akarnokd/reactive-extensions
16bf654486b9edfeb359f9330076828a05e5efb6
[ "Apache-2.0" ]
29
2018-05-10T20:51:37.000Z
2022-02-17T04:12:31.000Z
reactive-extensions-test/maybe/MaybeEmptyTest.cs
akarnokd/reactive-extensions
16bf654486b9edfeb359f9330076828a05e5efb6
[ "Apache-2.0" ]
2
2018-05-24T14:09:31.000Z
2018-08-01T21:41:52.000Z
using NUnit.Framework; using System; using akarnokd.reactive_extensions; namespace akarnokd.reactive_extensions_test.maybe { [TestFixture] public class MaybeEmptyTest { [Test] public void Basic() { MaybeSource.Empty<int>() .Test() .AssertResult(); } } }
18.315789
49
0.568966
24e03bb9628b689baa164bfcbcb0de80bda0eb3b
349
cql
SQL
spec/support/files/cypher/typed-attributes.cql
beechnut/aspen
0207f70ebd236682d47879156f8041e9b3edf6ea
[ "MIT" ]
21
2020-03-07T14:03:02.000Z
2020-10-26T13:13:34.000Z
spec/support/files/cypher/typed-attributes.cql
thepeergroup/aspen
0207f70ebd236682d47879156f8041e9b3edf6ea
[ "MIT" ]
21
2020-12-10T14:42:54.000Z
2022-02-18T02:34:35.000Z
spec/support/files/cypher/typed-attributes.cql
beechnut/aspen
0207f70ebd236682d47879156f8041e9b3edf6ea
[ "MIT" ]
4
2020-03-24T19:46:26.000Z
2020-10-15T11:12:02.000Z
MERGE (postoffice_02111:PostOffice { zipcode: "02111" }) MERGE (shipment_4aec5d:Shipment { tracking_number: "4aec5d" }) MERGE (postoffice_05443:PostOffice { zipcode: "05443" }) MERGE (shipment_001091:Shipment { tracking_number: "001091" }) MERGE (postoffice_02111)-[:SENT]->(shipment_4aec5d) MERGE (postoffice_05443)-[:RECEIVED]->(shipment_001091)
43.625
62
0.767908
af78511e23c1e8f82ced0b39b89a68be8e1d4da1
994
py
Python
python/pyqt/pyqt5/widget_QCheckBox.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
python/pyqt/pyqt5/widget_QCheckBox.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
python/pyqt/pyqt5/widget_QCheckBox.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # See http://doc.qt.io/qt-5/qcheckbox.html#details # http://zetcode.com/gui/pyqt5/widgets/ import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QCheckBox from PyQt5.QtCore import Qt def cb_callback(state): if state == Qt.Checked: print('Checked') else: print('Not checked') app = QApplication(sys.argv) # The default constructor has no parent. # A widget with no parent is a window. window = QMainWindow() window.resize(250, 150) window.setWindowTitle('Hello') cb = QCheckBox('Hello', window) cb.stateChanged.connect(cb_callback) window.show() # The mainloop of the application. The event handling starts from this point. # The exec_() method has an underscore. It is because the exec is a Python keyword. And thus, exec_() was used instead. exit_code = app.exec_() # The sys.exit() method ensures a clean exit. # The environment will be informed, how the application ended. sys.exit(exit_code)
26.157895
120
0.72334
c8228bd10b06407749e48866dcaf008c30162f3a
285,160
lua
Lua
Armored Titan.lua
xVoid-xyz/Roblox-Scripts
7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2
[ "BSD-3-Clause" ]
70
2021-02-09T17:21:32.000Z
2022-03-28T12:41:42.000Z
Armored Titan.lua
xVoid-xyz/Roblox-Scripts
7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2
[ "BSD-3-Clause" ]
4
2021-08-19T22:05:58.000Z
2022-03-19T18:58:01.000Z
Armored Titan.lua
xVoid-xyz/Roblox-Scripts
7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2
[ "BSD-3-Clause" ]
325
2021-02-26T22:23:41.000Z
2022-03-31T19:36:12.000Z
local p = game.Players.LocalPlayer local char = p.Character local mouse = p:GetMouse() local larm = char["Left Arm"] local rarm = char["Right Arm"] local lleg = char["Left Leg"] local rleg = char["Right Leg"] local hed = char.Head local torso = char.Torso local hum = char.Humanoid local cam = game.Workspace.CurrentCamera local root = char.HumanoidRootPart local deb = false local shot = 0 local l = game:GetService("Lighting") local rs = game:GetService("RunService").RenderStepped local debris=game:service"Debris" local stanceToggle = "Normal" math.randomseed(os.time()) hum.WalkSpeed = 7 char.Health:Destroy() hum.MaxHealth = 50000 wait(0.1) hum.Health = 50000 ---------------------------------------------------- ypcall(function() char.Shirt:Destroy() char.Pants:Destroy() shirt = Instance.new("Shirt", char) shirt.Name = "Shirt" pants = Instance.new("Pants", char) pants.Name = "Pants" char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=236410507" char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261" end) ---------------------------------------------------- Debounces = { on = false; ks = false; CanAttack = true; CanJoke = true; NoIdl = false; Slashing = false; Slashed = false; Grabbing = false; Grabbed = false; } local Touche = {char.Name, } ---------------------------------------------------- function lerp(a, b, t) -- Linear interpolation return a + (b - a)*t end function slerp(a, b, t) --Spherical interpolation dot = a:Dot(b) if dot > 0.99999 or dot < -0.99999 then return t <= 0.5 and a or b else r = math.acos(dot) return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) end end function matrixInterpolate(a, b, t) local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back local t = v1:Dot(v2) if not (t < 0 or t == 0 or t > 0) then -- Failsafe return CFrame.new() end return CFrame.new( v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z) end ---------------------------------------------------- function genWeld(a,b) local w = Instance.new("Weld",a) w.Part0 = a w.Part1 = b return w end function weld(a, b) local weld = Instance.new("Weld") weld.Name = "W" weld.Part0 = a weld.Part1 = b weld.C0 = a.CFrame:inverse() * b.CFrame weld.Parent = a return weld; end ---------------------------------------------------- function Lerp(c1,c2,al) local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} for i,v in pairs(com1) do com1[i] = v+(com2[i]-v)*al end return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) end ---------------------------------------------------- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) local wld = Instance.new("Weld", wp1) wld.Part0 = wp0 wld.Part1 = wp1 wld.C0 = CFrame.new(wc0x, wc0y, wc0z) end ---------------------------------------------------- function Tween(a,b,c) return a+(b-a)*c end ---------------------------------------------------- function nwPrt(prnt,siz,cf,col) local prt=Instance.new("Part") prt.Parent=prnt prt.FormFactor=3 prt.Name="Part" prt.Size=siz prt.CanCollide=false prt.Anchored=true prt.Locked=true prt.TopSurface=10 prt.BottomSurface=10 prt.FrontSurface=10 prt.BackSurface=10 prt.LeftSurface=10 prt.RightSurface=10 prt:BreakJoints() prt.CFrame=cf or CFrame.new(30,10,30) prt.Material="Neon" prt.BrickColor=BrickColor.new(col) m=Instance.new("SpecialMesh",prt) m.MeshType=6 return prt end ---------------------------------------------------- function nwSnd(prnt,pch,vol,id) local s=Instance.new("Sound",prnt) s.Pitch=pch s.Volume=vol s.SoundId="rbxassetid://"..id s.PlayOnRemove=true return s end ---------------------------------------------------- function newRay(start,face,range,wat) local rey=Ray.new(start.p,(face.p-start.p).Unit*range) hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) return rey,hit,pos end ---------------------------------------------------- for i,v in pairs(char:children()) do if v:IsA("Hat") then v:Destroy() end end for i,v in pairs(hed:children()) do if v:IsA("Sound") then v:Destroy() end end ---------------------------------------------------- function HasntTouched(plrname) local ret = true for _, v in pairs(Touche) do if v == plrname then ret = false end end return ret end ---------------------------------------------------- larm.Size = larm.Size * 2 rarm.Size = rarm.Size * 2 lleg.Size = lleg.Size * 2 rleg.Size = rleg.Size * 2 torso.Size = torso.Size * 2 hed.Size = hed.Size * 2 root.Size = root.Size * 2 ---------------------------------------------------- newWeld(torso, larm, -1.5, 0.5, 0) larm.Weld.C1 = CFrame.new(0, 0.5, 0) newWeld(torso, rarm, 1.5, 0.5, 0) rarm.Weld.C1 = CFrame.new(0, 0.5, 0) newWeld(torso, hed, 0, 1.5, 0) newWeld(torso, lleg, -0.5, -1, 0) lleg.Weld.C1 = CFrame.new(0, 1, 0) newWeld(torso, rleg, 0.5, -1, 0) rleg.Weld.C1 = CFrame.new(0, 1, 0) newWeld(root, torso, 0, -1, 0) torso.Weld.C1 = CFrame.new(0, -1, 0) ---------------------------------------------------- game:service'InsertService':LoadAsset(63993845):children()[1].Parent=char char.LavendarPlasmaHood.Handle.Mesh.Scale = char.LavendarPlasmaHood.Handle.Mesh.Scale * 1.8 char.LavendarPlasmaHood.Handle.Mesh.VertexColor = Vector3.new(0,0,0) hed.face.Texture = "rbxassetid://272299908" z=Instance.new('Decal',hed) z.Face = 'Front' z.Texture='rbxassetid://99174105' z1=Instance.new('Decal',hed) z1.Face = 'Right' hed.BrickColor = BrickColor.new("Really black") lite = Instance.new("PointLight", torso) lite.Brightness = 14 lite.Range = 10 lite.Color = Color3.new(1, 0, 0) --[[local hed2 = hed:Clone() hed2.CanCollide = false hed2.Parent = char hed2:ClearAllChildren() hed2.Transparency = 1 hed2.Name = "DARP" local w = Instance.new("Weld",hed2) w.Part0 = hed w.Part1 = hed2 w.C0 = CFrame.new(0,0,-0.175) z=Instance.new("SurfaceGui",hed2) z.Enabled = true z.Face = "Front" z.Adornee = hed2 z.CanvasSize = Vector2.new(100,100) local face = Instance.new("ImageLabel",z) face.Size = UDim2.new(1,-30,1,0) face.Position = UDim2.new(0,15,0,0) face.BackgroundTransparency = 1 face.Image='rbxassetid://46282671']]-- ---------------------------------------------------- z = Instance.new("Sound", char) z.SoundId = "rbxassetid://303570180"--242463565 z.Looped = true z.Pitch = .6 z.Volume = 1 wait(.01) z:Play() ---------------------------------------------------- local l = game.Lighting local sky = Instance.new("Sky",l) sky.CelestialBodiesShown = false sky.SkyboxBk = "http://www.roblox.com/asset/?id=156925041" sky.SkyboxDn = "http://www.roblox.com/asset/?id=156925047" sky.SkyboxFt = "http://www.roblox.com/asset/?id=156925045" sky.SkyboxLf = "http://www.roblox.com/asset/?id=156925043" sky.SkyboxRt = "http://www.roblox.com/asset/?id=156925038" sky.SkyboxUp = "http://www.roblox.com/asset/?id=156925055" sky.StarCount = 0 sky.Name = "GreenSpace" ---------------------------------------------------- local m = Instance.new("Model") m.Name = "Absolution" p1 = Instance.new("Part", m) p1.BrickColor = BrickColor.new("Bright blue") p1.Material = "Neon" p1.FormFactor = Enum.FormFactor.Custom p1.Size = Vector3.new(1, 0.600000024, 1.5) p1.CFrame = CFrame.new(67.4994888, 12.1560526, 73.0205841, 0.999972522, -3.59117985e-005, -8.00192356e-006, -1.39250187e-005, 0.358383715, -0.933530986, 5.28097153e-005, 0.933500648, 0.358406395) p1.CanCollide = false p1.Locked = true p1.Elasticity = 0 p1.BottomSurface = Enum.SurfaceType.Smooth p1.TopSurface = Enum.SurfaceType.Smooth b1 = Instance.new("SpecialMesh", p1) b1.MeshType = Enum.MeshType.Wedge b1.Name = "Mesh" b1.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) p2 = Instance.new("Part", m) p2.BrickColor = BrickColor.new("Really black") p2.FormFactor = Enum.FormFactor.Custom p2.Size = Vector3.new(1, 2.9000001, 1) p2.CFrame = CFrame.new(67.4995728, 11.7633543, 74.2129135, -1.30959779e-005, 2.79811252e-006, 0.999972522, 0.961226642, 0.275612593, -7.50799518e-006, -0.275637805, 0.96119839, 1.01176247e-005) p2.CanCollide = false p2.Locked = true p2.Elasticity = 0 p2.BottomSurface = Enum.SurfaceType.Smooth p2.TopSurface = Enum.SurfaceType.Smooth b2 = Instance.new("BlockMesh", p2) b2.Name = "Mesh" b2.Scale = Vector3.new(0.400000006, 1, 0.400000006) p3 = Instance.new("Part", m) p3.BrickColor = BrickColor.new("Bright blue") p3.Material = "Neon" p3.FormFactor = Enum.FormFactor.Custom p3.Size = Vector3.new(1, 1.20000005, 2.0999999) p3.CFrame = CFrame.new(67.4994965, 12.6401453, 73.9670334, 0.999972522, -3.52207899e-005, -8.10639358e-006, -1.61500211e-005, 0.309035271, -0.951007903, 5.24176576e-005, 0.950978875, 0.309059501) p3.CanCollide = false p3.Locked = true p3.Elasticity = 0 p3.BottomSurface = Enum.SurfaceType.Smooth p3.TopSurface = Enum.SurfaceType.Smooth b3 = Instance.new("SpecialMesh", p3) b3.MeshType = Enum.MeshType.Wedge b3.Name = "Mesh" b3.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) p4 = Instance.new("Part", m) p4.BrickColor = BrickColor.new("Bright blue") p4.Material = "Neon" p4.FormFactor = Enum.FormFactor.Custom p4.Size = Vector3.new(1, 1.43999994, 2.05000019) p4.CFrame = CFrame.new(67.4995575, 11.8683414, 76.1565704, 0.999972522, -2.5085672e-005, -1.53700166e-005, -4.86194367e-005, -0.800831437, -0.598821938, 1.9131101e-005, 0.598835468, -0.800796151) p4.CanCollide = false p4.Locked = true p4.Elasticity = 0 p4.BottomSurface = Enum.SurfaceType.Smooth p4.TopSurface = Enum.SurfaceType.Smooth b4 = Instance.new("SpecialMesh", p4) b4.MeshType = Enum.MeshType.Wedge b4.Name = "Mesh" b4.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) p5 = Instance.new("Part", m) p5.BrickColor = BrickColor.new("Bright blue") p5.Material = "Neon" p5.FormFactor = Enum.FormFactor.Custom p5.Size = Vector3.new(1, 1.20000005, 3.20000005) p5.CFrame = CFrame.new(67.4995193, 13.241991, 74.8357468, 0.999972522, -3.59118021e-005, -8.00191992e-006, -1.39250224e-005, 0.358383656, -0.933530807, 5.2809708e-005, 0.933500469, 0.358406246) p5.CanCollide = false p5.Locked = true p5.Elasticity = 0 p5.BottomSurface = Enum.SurfaceType.Smooth p5.TopSurface = Enum.SurfaceType.Smooth b5 = Instance.new("SpecialMesh", p5) b5.MeshType = Enum.MeshType.Wedge b5.Name = "Mesh" b5.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) p6 = Instance.new("Part", m) p6.Name = "Handle" p6.BrickColor = BrickColor.new("Really black") p6.FormFactor = Enum.FormFactor.Custom p6.Size = Vector3.new(1.5999999, 13.6000004, 1) p6.CFrame = CFrame.new(67.5017471, 11.2780685, 66.1421967, -1.18190947e-005, 6.28741009e-006, 0.999972522, 0.99995929, -1.39772892e-005, -7.50630716e-006, -1.79708004e-005, 0.999939024, 1.01296728e-005) p6.CanCollide = false p6.Locked = true p6.Elasticity = 0 p6.BottomSurface = Enum.SurfaceType.Smooth p6.TopSurface = Enum.SurfaceType.Smooth b6 = Instance.new("BlockMesh", p6) b6.Name = "Mesh" b6.Scale = Vector3.new(0.400000006, 1, 0.400000006) p7 = Instance.new("Part", m) p7.BrickColor = BrickColor.new("Bright blue") p7.Material = "Neon" p7.FormFactor = Enum.FormFactor.Custom p7.Size = Vector3.new(1, 1.00999999, 1.05000019) p7.CFrame = CFrame.new(67.5174179, 10.5228004, 76.3114471, 0.999972522, -2.76626724e-005, -6.72184569e-006, -4.7347472e-005, -0.91489929, -0.403581172, 2.14323372e-005, 0.403602213, -0.914867818) p7.CanCollide = false p7.Locked = true p7.Elasticity = 0 p7.BottomSurface = Enum.SurfaceType.Smooth p7.TopSurface = Enum.SurfaceType.Smooth b7 = Instance.new("SpecialMesh", p7) b7.MeshType = Enum.MeshType.Wedge b7.Name = "Mesh" b7.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) p8 = Instance.new("Part", m) p8.BrickColor = BrickColor.new("Bright blue") p8.Material = "Neon" p8.FormFactor = Enum.FormFactor.Custom p8.Size = Vector3.new(1, 1.00999999, 1.05000019) p8.CFrame = CFrame.new(67.5074387, 8.51285458, 76.8714371, 0.999972522, -2.76626724e-005, -6.72184387e-006, -4.73474684e-005, -0.91489917, -0.403581113, 2.14323354e-005, 0.403602153, -0.914867699) p8.CanCollide = false p8.Locked = true p8.Elasticity = 0 p8.BottomSurface = Enum.SurfaceType.Smooth p8.TopSurface = Enum.SurfaceType.Smooth b8 = Instance.new("SpecialMesh", p8) b8.MeshType = Enum.MeshType.Wedge b8.Name = "Mesh" b8.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) p9 = Instance.new("Part", m) p9.BrickColor = BrickColor.new("Really black") p9.FormFactor = Enum.FormFactor.Custom p9.Size = Vector3.new(1, 1.07999957, 1) p9.CFrame = CFrame.new(67.5095749, 7.1092, 74.5051422, -2.60536999e-005, -5.21559741e-006, 0.999972522, 0.35323599, -0.935490847, -1.50012565e-005, 0.935460567, 0.353258699, 4.2632455e-005) p9.CanCollide = false p9.Locked = true p9.Elasticity = 0 p9.BottomSurface = Enum.SurfaceType.Smooth p9.TopSurface = Enum.SurfaceType.Smooth b9 = Instance.new("BlockMesh", p9) b9.Name = "Mesh" b9.Scale = Vector3.new(0.550000012, 1, 0.550000012) p10 = Instance.new("Part", m) p10.BrickColor = BrickColor.new("Really black") p10.FormFactor = Enum.FormFactor.Custom p10.Size = Vector3.new(1, 1.41999948, 1) p10.CFrame = CFrame.new(67.489624, 8.67401791, 72.7929764, -9.47785156e-006, -9.42233055e-006, 0.999972522, 0.292371064, 0.956263304, -7.54374832e-006, -0.956253231, 0.292334616, 1.01081387e-005) p10.CanCollide = false p10.Locked = true p10.Elasticity = 0 p10.BottomSurface = Enum.SurfaceType.Smooth p10.TopSurface = Enum.SurfaceType.Smooth b10 = Instance.new("BlockMesh", p10) b10.Name = "Mesh" b10.Scale = Vector3.new(0.400000006, 1, 0.400000006) p11 = Instance.new("Part", m) p11.BrickColor = BrickColor.new("Really black") p11.FormFactor = Enum.FormFactor.Custom p11.Size = Vector3.new(1, 1.50999951, 1) p11.CFrame = CFrame.new(67.509552, 7.11887455, 70.3475952, -1.87569385e-005, 1.80455972e-005, 0.999972522, -0.36222899, -0.932047009, -9.30004444e-006, 0.932039678, -0.362191886, 4.04359016e-005) p11.CanCollide = false p11.Locked = true p11.Elasticity = 0 p11.BottomSurface = Enum.SurfaceType.Smooth p11.TopSurface = Enum.SurfaceType.Smooth b11 = Instance.new("BlockMesh", p11) b11.Name = "Mesh" b11.Scale = Vector3.new(0.550000012, 1, 0.550000012) p12 = Instance.new("Part", m) p12.Name = "BladeCenter" p12.BrickColor = BrickColor.new("Dark stone grey") p12.Material = Enum.Material.Concrete p12.FormFactor = Enum.FormFactor.Symmetric p12.Size = Vector3.new(1, 2, 2) p12.CFrame = CFrame.new(67.4995346, 6.83217764, 72.2514038, -0.999972522, 2.42275873e-005, 0.000103325896, -8.39982677e-005, 4.44650614e-005, -0.999960959, -4.06451727e-005, -0.999940753, -1.25430051e-005) p12.CanCollide = false p12.Locked = true p12.BottomSurface = Enum.SurfaceType.Smooth p12.TopSurface = Enum.SurfaceType.Smooth b12 = Instance.new("SpecialMesh", p12) b12.MeshType = Enum.MeshType.Brick b12.Name = "Mesh" b12.Scale = Vector3.new(0.499999911, 1, 0.699999928) p13 = Instance.new("Part", m) p13.BrickColor = BrickColor.new("Really black") p13.FormFactor = Enum.FormFactor.Custom p13.Size = Vector3.new(2.91000009, 4.3300004, 1) p13.CFrame = CFrame.new(67.5096359, 9.31026554, 73.9751816, 7.60371313e-006, 1.0943455e-005, 0.999972522, -0.119072244, -0.99284631, -7.55448127e-006, 0.992830038, -0.119038157, 1.01703836e-005) p13.CanCollide = false p13.Locked = true p13.Elasticity = 0 p13.BottomSurface = Enum.SurfaceType.Smooth p13.TopSurface = Enum.SurfaceType.Smooth b13 = Instance.new("BlockMesh", p13) b13.Name = "Mesh" b13.Scale = Vector3.new(1, 1, 0.400000006) p14 = Instance.new("Part", m) p14.BrickColor = BrickColor.new("Really black") p14.FormFactor = Enum.FormFactor.Custom p14.Size = Vector3.new(2.5, 2.17999935, 1) p14.CFrame = CFrame.new(67.4896011, 10.1621294, 72.6420059, -1.55498967e-007, -1.33476442e-005, 0.999972522, -0.462319613, 0.886669755, -7.56198779e-006, -0.886637092, -0.462338567, 1.01078904e-005) p14.CanCollide = false p14.Locked = true p14.Elasticity = 0 p14.BottomSurface = Enum.SurfaceType.Smooth p14.TopSurface = Enum.SurfaceType.Smooth b14 = Instance.new("BlockMesh", p14) b14.Name = "Mesh" b14.Scale = Vector3.new(0.400000006, 1, 0.400000006) p15 = Instance.new("Part", m) p15.BrickColor = BrickColor.new("Really black") p15.FormFactor = Enum.FormFactor.Custom p15.Size = Vector3.new(1.16999996, 4.2699995, 1) p15.CFrame = CFrame.new(67.5095901, 9.35303593, 70.6884613, -1.24399676e-005, -4.94209144e-006, 0.999972522, 0.645082474, 0.764063478, -7.52419282e-006, -0.764068604, 0.645045042, 1.0099785e-005) p15.CanCollide = false p15.Locked = true p15.Elasticity = 0 p15.BottomSurface = Enum.SurfaceType.Smooth p15.TopSurface = Enum.SurfaceType.Smooth b15 = Instance.new("BlockMesh", p15) b15.Name = "Mesh" b15.Scale = Vector3.new(1, 1, 0.400000006) p16 = Instance.new("Part", m) p16.BrickColor = BrickColor.new("Really black") p16.FormFactor = Enum.FormFactor.Custom p16.Size = Vector3.new(1.68999994, 4.76000023, 1) p16.CFrame = CFrame.new(67.4996033, 9.63990211, 75.3800278, 2.98175655e-006, 1.30014914e-005, 0.999972522, 0.258795738, -0.965893507, -7.53869244e-006, 0.965865672, 0.258821338, 1.01718706e-005) p16.CanCollide = false p16.Locked = true p16.Elasticity = 0 p16.BottomSurface = Enum.SurfaceType.Smooth p16.TopSurface = Enum.SurfaceType.Smooth b16 = Instance.new("BlockMesh", p16) b16.Name = "Mesh" b16.Scale = Vector3.new(1, 1, 0.400000006) p17 = Instance.new("Part", m) p17.BrickColor = BrickColor.new("Really black") p17.FormFactor = Enum.FormFactor.Custom p17.Size = Vector3.new(1.78999996, 4.21999979, 1) p17.CFrame = CFrame.new(67.499588, 9.28996372, 69.8789978, -9.50601952e-006, -9.41252802e-006, 0.999972522, 0.293352425, 0.955965877, -7.53842551e-006, -0.955955863, 0.293315947, 1.00904235e-005) p17.CanCollide = false p17.Locked = true p17.Elasticity = 0 p17.BottomSurface = Enum.SurfaceType.Smooth p17.TopSurface = Enum.SurfaceType.Smooth b17 = Instance.new("BlockMesh", p17) b17.Name = "Mesh" b17.Scale = Vector3.new(1, 1, 0.400000006) p18 = Instance.new("WedgePart", m) p18.BrickColor = BrickColor.new("Dark stone grey") p18.Name = "BladePart1" p18.Material = Enum.Material.Concrete p18.Name = "Wedge" p18.FormFactor = Enum.FormFactor.Symmetric p18.Size = Vector3.new(1, 4, 2) p18.CFrame = CFrame.new(67.499321, 6.83199787, 69.4816895, 0.999972522, -3.68033288e-005, -4.22928351e-005, 2.29664256e-005, -1.65102574e-005, 0.999963701, -2.03872096e-005, -0.999943435, -4.84290831e-005) p18.CanCollide = false p18.Locked = true p18.BottomSurface = Enum.SurfaceType.Smooth p18.TopSurface = Enum.SurfaceType.Smooth b18 = Instance.new("SpecialMesh", p18) b18.MeshType = Enum.MeshType.Wedge b18.Name = "Mesh" b18.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) p19 = Instance.new("WedgePart", m) p19.BrickColor = BrickColor.new("Dark stone grey") p19.Name = "BladePart2" p19.Material = Enum.Material.Concrete p19.Name = "Wedge" p19.FormFactor = Enum.FormFactor.Symmetric p19.Size = Vector3.new(1, 4, 2) p19.CFrame = CFrame.new(67.4994736, 6.83213568, 75.0314102, -0.999972522, 3.68059118e-005, -0.000103325001, -8.40002976e-005, -4.4521752e-005, 0.999963701, 2.03864402e-005, 0.999943435, 1.26029336e-005) p19.CanCollide = false p19.Locked = true p19.BottomSurface = Enum.SurfaceType.Smooth p19.TopSurface = Enum.SurfaceType.Smooth b19 = Instance.new("SpecialMesh", p19) b19.MeshType = Enum.MeshType.Wedge b19.Name = "Mesh" b19.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) p20 = Instance.new("Part", m) p20.BrickColor = BrickColor.new("Really black") p20.FormFactor = Enum.FormFactor.Custom p20.Size = Vector3.new(2.53000021, 2.39999938, 1) p20.CFrame = CFrame.new(67.4996414, 7.91898966, 71.4148178, -1.09432585e-005, 7.6432425e-006, 0.999972522, 0.992849231, -0.119072601, -7.55000656e-006, 0.119038492, 0.992832959, 1.01311334e-005) p20.CanCollide = false p20.Locked = true p20.Elasticity = 0 p20.BottomSurface = Enum.SurfaceType.Smooth p20.TopSurface = Enum.SurfaceType.Smooth b20 = Instance.new("BlockMesh", p20) b20.Name = "Mesh" b20.Scale = Vector3.new(0.400000006, 1, 0.400000006) p21 = Instance.new("Part", m) p21.BrickColor = BrickColor.new("Bright blue") p21.Material = "Neon" p21.FormFactor = Enum.FormFactor.Custom p21.Size = Vector3.new(1, 1.43999994, 1.59000015) p21.CFrame = CFrame.new(67.509613, 9.57073689, 76.6228256, 0.999972522, -2.50856156e-005, -1.53699839e-005, -4.86196222e-005, -0.800835371, -0.598824739, 1.91311228e-005, 0.59883821, -0.800800025) p21.CanCollide = false p21.Locked = true p21.Elasticity = 0 p21.BottomSurface = Enum.SurfaceType.Smooth p21.TopSurface = Enum.SurfaceType.Smooth b21 = Instance.new("SpecialMesh", p21) b21.MeshType = Enum.MeshType.Wedge b21.Name = "Mesh" b21.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) w1 = Instance.new("Weld", p1) w1.Name = "Part_Weld" w1.Part0 = p1 w1.C0 = CFrame.new(-67.5030899, -72.5280457, -14.8209743, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252) w1.Part1 = p2 w1.C1 = CFrame.new(9.14727688, -74.5847855, -67.5001221, -4.37113883e-008, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-008, -1.2048484e-008) w2 = Instance.new("Weld", p2) w2.Name = "Part_Weld" w2.Part0 = p2 w2.C0 = CFrame.new(9.14727688, -74.5847855, -67.5001221, -4.37113883e-008, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-008, -1.2048484e-008) w2.Part1 = p3 w2.C1 = CFrame.new(-67.5030823, -74.2541809, -10.8368053, 1, -8.59976626e-006, 4.22903977e-005, -3.75621021e-005, 0.30906105, 0.951042175, -2.12490559e-005, -0.951042175, 0.30906105) w3 = Instance.new("Weld", p3) w3.Name = "Part_Weld" w3.Part0 = p3 w3.C0 = CFrame.new(-67.5030823, -74.2541809, -10.8368053, 1, -8.59976626e-006, 4.22903977e-005, -3.75621021e-005, 0.30906105, 0.951042175, -2.12490559e-005, -0.951042175, 0.30906105) w3.Part1 = p4 w3.C1 = CFrame.new(-67.5002975, -36.1002579, 68.1035233, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637) w4 = Instance.new("Weld", p4) w4.Name = "Part_Weld" w4.Part0 = p4 w4.C0 = CFrame.new(-67.5002975, -36.1002579, 68.1035233, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637) w4.Part1 = p5 w4.C1 = CFrame.new(-67.5031891, -74.611969, -14.457736, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252) w5 = Instance.new("Weld", p5) w5.Name = "Part_Weld" w5.Part0 = p5 w5.C0 = CFrame.new(-67.5031891, -74.611969, -14.457736, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252) w5.Part1 = p6 w5.C1 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015) w6 = Instance.new("Weld", p6) w6.Name = "Part_Weld" w6.Part0 = p6 w6.C0 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015) w6.Part1 = p7 w6.C1 = CFrame.new(-67.5183792, -21.1694489, 74.0717163, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) w7 = Instance.new("Weld", p7) w7.Name = "Part_Weld" w7.Part0 = p7 w7.C0 = CFrame.new(-67.5183792, -21.1694489, 74.0717163, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) w7.Part1 = p8 w7.C1 = CFrame.new(-67.508461, -23.234499, 73.7728119, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) w8 = Instance.new("Weld", p8) w8.Name = "Part_Weld" w8.Part0 = p8 w8.C0 = CFrame.new(-67.508461, -23.234499, 73.7728119, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) w8.Part1 = p9 w8.C1 = CFrame.new(-72.2151413, -19.6674671, -67.5124359, -2.77766703e-005, 0.353263557, 0.935524285, -1.84533783e-005, -0.935524285, 0.353263557, 1, -7.4510931e-006, 3.25046385e-005) w9 = Instance.new("Weld", p9) w9.Name = "Part_Weld" w9.Part0 = p9 w9.C0 = CFrame.new(-72.2151413, -19.6674671, -67.5124359, -2.77766703e-005, 0.353263557, 0.935524285, -1.84533783e-005, -0.935524285, 0.353263557, 1, -7.4510931e-006, 3.25046385e-005) w9.Part1 = p10 w9.C1 = CFrame.new(67.0792923, -29.5803547, -67.4901428, -2.24114753e-008, 0.292369425, -0.956305802, 3.04095332e-010, 0.956305802, 0.292369425, 1, 6.26159258e-009, -2.15211493e-008) w10 = Instance.new("Weld", p10) w10.Name = "Part_Weld" w10.Part0 = p10 w10.C0 = CFrame.new(67.0792923, -29.5803547, -67.4901428, -2.24114753e-008, 0.292369425, -0.956305802, 3.04095332e-010, 0.956305802, 0.292369425, 1, 6.26159258e-009, -2.15211493e-008) w10.Part1 = p11 w10.C1 = CFrame.new(-62.9921722, 32.1197624, -67.5121918, -2.88835581e-005, -0.362230271, 0.932088912, 9.3476192e-006, -0.932088912, -0.362230271, 1, -1.74967965e-006, 3.03080251e-005) w11 = Instance.new("Weld", p11) w11.Name = "Part_Weld" w11.Part0 = p11 w11.C0 = CFrame.new(-62.9921722, 32.1197624, -67.5121918, -2.88835581e-005, -0.362230271, 0.932088912, 9.3476192e-006, -0.932088912, -0.362230271, 1, -1.74967965e-006, 3.03080251e-005) w11.Part1 = p12 w11.C1 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005) w12 = Instance.new("Weld", p12) w12.Name = "Part_Weld" w12.Part0 = p12 w12.C0 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005) w12.Part1 = p13 w12.C1 = CFrame.new(-72.3439255, 18.054121, -67.5101624, -4.09776035e-008, -0.11906305, 0.992886722, 4.05430745e-010, -0.992886722, -0.11906305, 1, -4.47637571e-009, 4.0734399e-008) w13 = Instance.new("Weld", p13) w13.Name = "Part_Weld" w13.Part0 = p13 w13.C0 = CFrame.new(-72.3439255, 18.054121, -67.5101624, -4.09776035e-008, -0.11906305, 0.992886722, 4.05430745e-010, -0.992886722, -0.11906305, 1, -4.47637571e-009, 4.0734399e-008) w13.Part1 = p14 w13.C1 = CFrame.new(69.1140671, 24.5752277, -67.4901428, -2.4837334e-008, -0.462350011, -0.886697888, 5.64353009e-010, 0.886697888, -0.462350011, 1, -1.19839818e-008, -2.17623022e-008) w14 = Instance.new("Weld", p14) w14.Name = "Part_Weld" w14.Part0 = p14 w14.C0 = CFrame.new(69.1140671, 24.5752277, -67.4901428, -2.4837334e-008, -0.462350011, -0.886697888, 5.64353009e-010, 0.886697888, -0.462350011, 1, -1.19839818e-008, -2.17623022e-008) w14.Part1 = p15 w14.C1 = CFrame.new(47.9809418, -52.7511749, -67.5101318, -3.94735267e-008, 0.64509654, -0.764101744, -4.55740418e-010, 0.764101744, 0.64509654, 1, 2.58124242e-008, -2.98677882e-008) w15 = Instance.new("Weld", p15) w15.Name = "Part_Weld" w15.Part0 = p15 w15.C0 = CFrame.new(47.9809418, -52.7511749, -67.5101318, -3.94735267e-008, 0.64509654, -0.764101744, -4.55740418e-010, 0.764101744, 0.64509654, 1, 2.58124242e-008, -2.98677882e-008) w15.Part1 = p16 w15.C1 = CFrame.new(-75.3105469, -10.1974039, -67.5001221, -4.37113883e-008, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-008, 4.22219593e-008) w16 = Instance.new("Weld", p16) w16.Name = "Part_Weld" w16.Part0 = p16 w16.C0 = CFrame.new(-75.3105469, -10.1974039, -67.5001221, -4.37113883e-008, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-008, 4.22219593e-008) w16.Part1 = p17 w16.C1 = CFrame.new(64.0820847, -29.3829937, -67.5001373, -4.09009289e-008, 0.293349952, -0.956005633, 4.38312497e-010, 0.956005633, 0.293349952, 1, 1.15792238e-008, -3.92300876e-008) w17 = Instance.new("Weld", p17) w17.Name = "Wedge_Weld" w17.Part0 = p17 w17.C0 = CFrame.new(64.0820847, -29.3829937, -67.5001373, -4.09009289e-008, 0.293349952, -0.956005633, 4.38312497e-010, 0.956005633, 0.293349952, 1, 1.15792238e-008, -3.92300876e-008) w17.Part1 = p18 w17.C1 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005) w18 = Instance.new("Weld", p18) w18.Name = "Wedge_Weld" w18.Part0 = p18 w18.C0 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005) w18.Part1 = p19 w18.C1 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005) w19 = Instance.new("Weld", p19) w19.Name = "Part_Weld" w19.Part0 = p19 w19.C0 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005) w19.Part1 = p20 w19.C1 = CFrame.new(-16.3677292, -69.9670334, -67.5001678, -1.77821063e-010, 0.992886961, 0.119063012, -1.46926671e-009, -0.119063012, 0.992886961, 1, 1.59595731e-012, 1.47997492e-009) w20 = Instance.new("Weld", p20) w20.Name = "Part_Weld" w20.Part0 = p20 w20.C0 = CFrame.new(-16.3677292, -69.9670334, -67.5001678, -1.77821063e-010, 0.992886961, 0.119063012, -1.46926671e-009, -0.119063012, 0.992886961, 1, 1.59595731e-012, 1.47997492e-009) w20.Part1 = p21 w20.C1 = CFrame.new(-67.5104218, -38.2193756, 67.100563, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637) m.Parent = char m:MakeJoints() ---------------------------------------------------- local cor = Instance.new("Part", char.Absolution) cor.Name = "Thingy" cor.Locked = true cor.BottomSurface = 0 cor.CanCollide = false cor.Size = Vector3.new(1, 13, 1) cor.Transparency = 1 cor.TopSurface = 0 corw = Instance.new("Weld", cor) corw.Part0 = rarm corw.Part1 = cor corw.C0 = CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) corw.C1 = CFrame.new(0, 0, 0) weld1 = Instance.new("Weld", char.Absolution) weld1.Part0 = cor weld1.Part1 = p6 weld1.C0 = CFrame.new(0, 0, 0) ---------------------------------------------------- hitb = Instance.new("Part", char.Absolution) hitb.Name = "Thingy2" hitb.Locked = true hitb.BottomSurface = 0 hitb.CanCollide = false hitb.Size = Vector3.new(0, 8, 6) hitb.Transparency = 1 hitb.TopSurface = 0 weld2 = Instance.new("Weld", char.Absolution) weld2.Part0 = hitb weld2.Part1 = p12 weld2.C0 = CFrame.new(0, .6, 1) ---------------------------------------------------- local m = Instance.new("Model") m.Name = "Claw" p1 = Instance.new("Part", m) p1.BrickColor = BrickColor.new("Really black") p1.FormFactor = Enum.FormFactor.Custom p1.Size = Vector3.new(1.5, 0.5, 0.5) p1.CFrame = CFrame.new(2.91120553, 6.79703379, -19.5339718, -0.205515206, -0.209888965, 0.955883741, 0.52527827, -0.847774804, -0.0732159689, 0.825741529, 0.487057745, 0.284480691) p1.CanCollide = false p1.Locked = true p1.BottomSurface = Enum.SurfaceType.Smooth p1.TopSurface = Enum.SurfaceType.Smooth b1 = Instance.new("BlockMesh", p1) b1.Name = "Mesh" p2 = Instance.new("WedgePart", m) p2.BrickColor = BrickColor.new("Really black") p2.Name = "Wedge" p2.FormFactor = Enum.FormFactor.Custom p2.Size = Vector3.new(3, 1, 0.5) p2.CFrame = CFrame.new(2.94872427, 6.13246727, -16.5004997, -5.96046448e-008, -4.47034836e-008, -1.00000358, -1.3615936e-005, 0.99999994, 4.47034836e-008, 1.00000358, 1.41002238e-005, 0) p2.CanCollide = false p2.Locked = true p2.BottomSurface = Enum.SurfaceType.Smooth p2.TopSurface = Enum.SurfaceType.Smooth p3 = Instance.new("Part", m) p3.BrickColor = BrickColor.new("Really black") p3.FormFactor = Enum.FormFactor.Custom p3.Size = Vector3.new(1.5, 0.5, 0.5) p3.CFrame = CFrame.new(1.84869456, 6.79700661, -18.5422173, -5.06400113e-008, 1.07230136e-007, 1.00000715, -0.499905825, -0.866079628, -1.1125789e-007, 0.86608547, -0.499910295, -2.17476881e-008) p3.CanCollide = false p3.Locked = true p3.BottomSurface = Enum.SurfaceType.Smooth p3.TopSurface = Enum.SurfaceType.Smooth b2 = Instance.new("BlockMesh", p3) b2.Name = "Mesh" p4 = Instance.new("WedgePart", m) p4.BrickColor = BrickColor.new("Really black") p4.Name = "Wedge" p4.FormFactor = Enum.FormFactor.Custom p4.Size = Vector3.new(3, 1, 0.5) p4.CFrame = CFrame.new(0.0487272739, 4.13279819, -16.5004959, -1.62921424e-007, 1.78814929e-007, 1.00001431, -1.2755394e-005, -0.999999762, -1.78813849e-007, 1.00001431, -1.46627426e-005, -7.54998553e-008) p4.CanCollide = false p4.Locked = true p4.BottomSurface = Enum.SurfaceType.Smooth p4.TopSurface = Enum.SurfaceType.Smooth p5 = Instance.new("Part", m) p5.BrickColor = BrickColor.new("Really black") p5.FormFactor = Enum.FormFactor.Custom p5.Size = Vector3.new(1.5, 0.5, 0.5) p5.CFrame = CFrame.new(1.84874606, 6.79701567, -19.6422844, -4.29027068e-007, 1.9046513e-007, 1.00001431, 0.500089467, -0.865973532, 2.18601315e-008, 0.865987122, 0.50009501, 3.78533827e-008) p5.CanCollide = false p5.Locked = true p5.BottomSurface = Enum.SurfaceType.Smooth p5.TopSurface = Enum.SurfaceType.Smooth b3 = Instance.new("BlockMesh", p5) b3.Name = "Mesh" p6 = Instance.new("Part", m) p6.BrickColor = BrickColor.new("Really black") p6.FormFactor = Enum.FormFactor.Custom p6.Size = Vector3.new(1.5, 0.5, 0.5) p6.CFrame = CFrame.new(2.61122823, 6.79701757, -18.433939, -0.250001401, 0.0669622123, 0.965941966, -0.491382152, -0.868364573, -0.0669801831, 0.834303975, -0.491393685, 0.249996051) p6.CanCollide = false p6.Locked = true p6.BottomSurface = Enum.SurfaceType.Smooth p6.TopSurface = Enum.SurfaceType.Smooth b4 = Instance.new("BlockMesh", p6) b4.Name = "Mesh" p7 = Instance.new("Part", m) p7.BrickColor = BrickColor.new("Really black") p7.FormFactor = Enum.FormFactor.Custom p7.Size = Vector3.new(3, 1, 1.20000005) p7.CFrame = CFrame.new(2.59874034, 5.13276958, -16.5005379, -3.27825546e-007, -3.57627869e-007, -1.00001431, -0.000133868307, 0.99999994, 1.49011612e-008, 1.00001442, 0.000135900453, -5.96046448e-008) p7.CanCollide = false p7.Locked = true p7.BottomSurface = Enum.SurfaceType.Smooth p7.TopSurface = Enum.SurfaceType.Smooth b5 = Instance.new("BlockMesh", p7) b5.Name = "Mesh" p8 = Instance.new("Part", m) p8.BrickColor = BrickColor.new("Bright blue") p8.Material = "Neon" p8.FormFactor = Enum.FormFactor.Symmetric p8.Size = Vector3.new(1, 1, 1) p8.CFrame = CFrame.new(1.84841466, 6.25537968, -20.3997307, -1.42129729e-005, 0.00428489037, -1.00000513, 0.965967655, 0.258660465, 0.00109496934, 0.258668512, -0.965972245, -0.00414247159) p8.CanCollide = false p8.Locked = true b6 = Instance.new("SpecialMesh", p8) b6.MeshId = "http://www.roblox.com/Asset/?id=9756362" b6.TextureId = "" b6.MeshType = Enum.MeshType.FileMesh b6.Name = "Mesh" b6.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988) p9 = Instance.new("Part", m) p9.BrickColor = BrickColor.new("Really black") p9.FormFactor = Enum.FormFactor.Custom p9.Size = Vector3.new(1.5, 0.5, 0.5) p9.CFrame = CFrame.new(2.79691935, 3.68131566, -18.264101, -0.277095288, -0.561500967, -0.779720128, 0.631033003, 0.505603611, -0.58835566, 0.724593103, -0.655058563, 0.214224264) p9.CanCollide = false p9.Locked = true p9.BottomSurface = Enum.SurfaceType.Smooth p9.TopSurface = Enum.SurfaceType.Smooth b7 = Instance.new("BlockMesh", p9) b7.Name = "Mesh" p10 = Instance.new("Part", m) p10.BrickColor = BrickColor.new("Bright blue") p10.Material = "Neon" p10.FormFactor = Enum.FormFactor.Symmetric p10.Size = Vector3.new(1, 1, 1) p10.CFrame = CFrame.new(3.09846497, 6.25236273, -20.2996788, -0.0669716895, 0.254178405, -0.964850724, 0.96595335, 0.258713901, 0.00110733509, 0.249903828, -0.93192625, -0.262850702) p10.CanCollide = false p10.Locked = true b8 = Instance.new("SpecialMesh", p10) b8.MeshId = "http://www.roblox.com/Asset/?id=9756362" b8.TextureId = "" b8.MeshType = Enum.MeshType.FileMesh b8.Name = "Mesh" b8.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988) p11 = Instance.new("Part", m) p11.BrickColor = BrickColor.new("Really black") p11.FormFactor = Enum.FormFactor.Custom p11.Size = Vector3.new(1.5, 0.5, 0.5) p11.CFrame = CFrame.new(0.386122227, 6.79699421, -18.533905, 0.250022948, -0.0669473261, 0.965937555, -0.491377324, -0.868365645, 0.0670026764, 0.834300399, -0.491393894, -0.250007868) p11.CanCollide = false p11.Locked = true p11.BottomSurface = Enum.SurfaceType.Smooth p11.TopSurface = Enum.SurfaceType.Smooth b9 = Instance.new("BlockMesh", p11) b9.Name = "Mesh" p12 = Instance.new("Part", m) p12.BrickColor = BrickColor.new("Really black") p12.FormFactor = Enum.FormFactor.Custom p12.Size = Vector3.new(1.5, 0.5, 0.5) p12.CFrame = CFrame.new(1.14871967, 6.79700947, -19.6422291, -4.76837158e-007, 2.83122063e-007, 1.00001442, 0.500089884, -0.865973473, 4.47034836e-008, 0.865987122, 0.500095367, 1.49011612e-008) p12.CanCollide = false p12.Locked = true p12.BottomSurface = Enum.SurfaceType.Smooth p12.TopSurface = Enum.SurfaceType.Smooth b10 = Instance.new("BlockMesh", p12) b10.Name = "Mesh" p13 = Instance.new("Part", m) p13.BrickColor = BrickColor.new("Really black") p13.FormFactor = Enum.FormFactor.Custom p13.Size = Vector3.new(1.5, 0.5, 0.5) p13.CFrame = CFrame.new(1.14870512, 6.79699612, -18.5421638, -4.63888163e-008, 5.08347114e-007, 1.00001442, -0.499899268, -0.866083562, -2.18518963e-008, 0.866095126, -0.499908328, 3.78581007e-008) p13.CanCollide = false p13.Locked = true p13.BottomSurface = Enum.SurfaceType.Smooth p13.TopSurface = Enum.SurfaceType.Smooth b11 = Instance.new("BlockMesh", p13) b11.Name = "Mesh" p14 = Instance.new("Part", m) p14.BrickColor = BrickColor.new("Bright blue") p14.Material = "Neon" p14.FormFactor = Enum.FormFactor.Symmetric p14.Size = Vector3.new(1, 1, 1) p14.CFrame = CFrame.new(1.14845455, 6.25537348, -20.3996773, -1.42545232e-005, 0.00425684778, -1.00000536, 0.965958476, 0.258694947, 0.00108788908, 0.258703023, -0.965963125, -0.00411536777) p14.CanCollide = false p14.Locked = true b12 = Instance.new("SpecialMesh", p14) b12.MeshId = "http://www.roblox.com/Asset/?id=9756362" b12.TextureId = "" b12.MeshType = Enum.MeshType.FileMesh b12.Name = "Mesh" b12.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988) p15 = Instance.new("Part", m) p15.BrickColor = BrickColor.new("Medium stone grey") p15.Transparency = 1 p15.Name = "ArmPart" p15.FormFactor = Enum.FormFactor.Custom p15.Size = Vector3.new(2, 1, 1) p15.CFrame = CFrame.new(1.49875152, 5.13257265, -16.0004654, -2.99420208e-007, 4.39002179e-007, 1.00001442, 0.00011029192, -1, 0, 1.00001454, 0.000108176115, 4.42378223e-008) p15.CanCollide = false p15.Locked = true p15.BottomSurface = Enum.SurfaceType.Smooth p15.TopSurface = Enum.SurfaceType.Smooth b13 = Instance.new("BlockMesh", p15) b13.Name = "Mesh" p16 = Instance.new("Part", m) p16.BrickColor = BrickColor.new("Really black") p16.FormFactor = Enum.FormFactor.Custom p16.Size = Vector3.new(3, 1, 2.4000001) p16.CFrame = CFrame.new(1.49872661, 6.13250732, -16.5007095, -2.98894406e-007, 4.39006953e-007, 1.00001442, 0.000110270419, -1, 4.71678729e-012, 1.00001454, 0.000108154614, 4.37120207e-008) p16.CanCollide = false p16.Locked = true p16.BottomSurface = Enum.SurfaceType.Smooth p16.TopSurface = Enum.SurfaceType.Smooth b14 = Instance.new("BlockMesh", p16) b14.Name = "Mesh" p17 = Instance.new("Part", m) p17.BrickColor = BrickColor.new("Really black") p17.FormFactor = Enum.FormFactor.Custom p17.Size = Vector3.new(1.5, 0.5, 0.5) p17.CFrame = CFrame.new(2.77308726, 3.37837577, -19.2558823, 0.396035522, -0.497440547, -0.771840453, -0.207958207, 0.770127177, -0.603040278, 0.894391596, 0.399337679, 0.201549783) p17.CanCollide = false p17.Locked = true p17.BottomSurface = Enum.SurfaceType.Smooth p17.TopSurface = Enum.SurfaceType.Smooth b15 = Instance.new("BlockMesh", p17) b15.Name = "Mesh" p18 = Instance.new("Part", m) p18.BrickColor = BrickColor.new("Bright blue") p18.Material = "Neon" p18.FormFactor = Enum.FormFactor.Symmetric p18.Size = Vector3.new(1, 1, 1) p18.CFrame = CFrame.new(-0.0516102314, 6.25535488, -20.1996384, 0.066943109, -0.245838761, -0.967011333, 0.965954781, 0.258709013, 0.00110003352, 0.249906152, -0.934162259, 0.254788101) p18.CanCollide = false p18.Locked = true b16 = Instance.new("SpecialMesh", p18) b16.MeshId = "http://www.roblox.com/Asset/?id=9756362" b16.TextureId = "" b16.MeshType = Enum.MeshType.FileMesh b16.Name = "Mesh" b16.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988) p19 = Instance.new("Part", m) p19.BrickColor = BrickColor.new("Bright blue") p19.Material = "Neon" p19.FormFactor = Enum.FormFactor.Symmetric p19.Size = Vector3.new(1, 1, 1) p19.CFrame = CFrame.new(2.43177533, 3.59484506, -20.0301056, 0.559401393, 0.116905749, 0.820629179, -0.685213447, -0.491872638, 0.537163019, 0.466440916, -0.862796843, -0.195047855) p19.CanCollide = false p19.Locked = true b17 = Instance.new("SpecialMesh", p19) b17.MeshId = "http://www.roblox.com/Asset/?id=9756362" b17.TextureId = "" b17.MeshType = Enum.MeshType.FileMesh b17.Name = "Mesh" b17.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988) p20 = Instance.new("Part", m) p20.BrickColor = BrickColor.new("Really black") p20.FormFactor = Enum.FormFactor.Custom p20.Size = Vector3.new(3, 1, 2.4000001) p20.CFrame = CFrame.new(1.49873698, 4.13275099, -16.500618, -2.38418579e-007, -4.47034836e-007, -1.00001454, -0.000133797526, 1.00000024, -2.98023224e-008, 1.00001466, 0.000135831535, -5.96046448e-008) p20.CanCollide = false p20.Locked = true p20.BottomSurface = Enum.SurfaceType.Smooth p20.TopSurface = Enum.SurfaceType.Smooth b18 = Instance.new("BlockMesh", p20) b18.Name = "Mesh" p21 = Instance.new("Part", m) p21.BrickColor = BrickColor.new("Really black") p21.FormFactor = Enum.FormFactor.Custom p21.Size = Vector3.new(3, 1, 1.19999993) p21.CFrame = CFrame.new(0.398718834, 5.13273239, -16.5005798, -2.22529991e-007, -4.17224015e-007, -1.00001454, -0.000133820766, 1.00000024, 5.9472427e-012, 1.00001466, 0.000135854774, -4.37120207e-008) p21.CanCollide = false p21.Locked = true p21.BottomSurface = Enum.SurfaceType.Smooth p21.TopSurface = Enum.SurfaceType.Smooth b19 = Instance.new("BlockMesh", p21) b19.Name = "Mesh" p22 = Instance.new("WedgePart", m) p22.BrickColor = BrickColor.new("Really black") p22.Name = "Wedge" p22.FormFactor = Enum.FormFactor.Custom p22.Size = Vector3.new(3, 1, 0.5) p22.CFrame = CFrame.new(2.94884443, 4.13282013, -16.5005474, 1.35156796e-007, 4.17202415e-007, -1.00001454, 1.19470278e-005, -1.00000024, -6.07483681e-013, -1.00001466, -1.39792755e-005, 4.37120278e-008) p22.CanCollide = false p22.Locked = true p22.BottomSurface = Enum.SurfaceType.Smooth p22.TopSurface = Enum.SurfaceType.Smooth p23 = Instance.new("Part", m) p23.BrickColor = BrickColor.new("Really black") p23.FormFactor = Enum.FormFactor.Custom p23.Size = Vector3.new(1.5, 0.5, 0.5) p23.CFrame = CFrame.new(0.111123323, 6.79699326, -19.53405, 0.167916089, 0.220654398, 0.960804224, 0.593452632, -0.800862908, 0.0802069977, 0.787171543, 0.556722164, -0.265425682) p23.CanCollide = false p23.Locked = true p23.BottomSurface = Enum.SurfaceType.Smooth p23.TopSurface = Enum.SurfaceType.Smooth b20 = Instance.new("BlockMesh", p23) b20.Name = "Mesh" p24 = Instance.new("WedgePart", m) p24.BrickColor = BrickColor.new("Really black") p24.Name = "Wedge" p24.FormFactor = Enum.FormFactor.Custom p24.Size = Vector3.new(3, 1, 0.5) p24.CFrame = CFrame.new(0.0487362742, 6.13243389, -16.5004158, -0.000165194273, -0.00030361861, 1.00001442, 0.00304524973, 0.999995589, 0.000303655863, -1.00001013, 0.00304720178, -0.000164449215) p24.CanCollide = false p24.Locked = true p24.BottomSurface = Enum.SurfaceType.Smooth p24.TopSurface = Enum.SurfaceType.Smooth p25 = Instance.new("Part", m) p25.BrickColor = BrickColor.new("Bright blue") p25.Material = "Neon" p25.FormFactor = Enum.FormFactor.Symmetric p25.Size = Vector3.new(1, 1, 1) p25.CFrame = CFrame.new(1.49870086, 5.13261318, -18.0007782, 1.20991026e-005, -1.00001454, -4.94604174e-005, -1.00000024, -1.16155716e-005, -0.000471511274, 0.000469659513, 4.96469293e-005, -1.00001466) p25.CanCollide = false p25.Locked = true p25.BottomSurface = Enum.SurfaceType.Smooth p25.TopSurface = Enum.SurfaceType.Smooth b21 = Instance.new("SpecialMesh", p25) b21.MeshId = "http://www.roblox.com/asset/?id=3270017" b21.TextureId = "" b21.MeshType = Enum.MeshType.FileMesh b21.Name = "Mesh" b21.Scale = Vector3.new(1.39999998, 1.39999998, 0.600000024) p26 = Instance.new("Part", m) p26.BrickColor = BrickColor.new("Really black") p26.FormFactor = Enum.FormFactor.Symmetric p26.Size = Vector3.new(1, 1, 1) p26.CFrame = CFrame.new(1.49868095, 5.13287783, -17.5005093, 0.00030383491, 0.000164763711, -1.00001454, -0.999995768, -0.00302907336, -0.000303868263, -0.00303102471, 1.00001025, 0.000164022902) p26.CanCollide = false p26.Locked = true p26.BottomSurface = Enum.SurfaceType.Smooth p26.TopSurface = Enum.SurfaceType.Smooth b22 = Instance.new("SpecialMesh", p26) b22.MeshType = Enum.MeshType.Brick b22.Name = "Mesh" w1 = Instance.new("Weld", p1) w1.Name = "Wedge_Weld" w1.Part0 = p1 w1.C0 = CFrame.new(13.1579618, 15.8875484, 3.27191186, -0.205515206, 0.52527827, 0.825741529, -0.209888965, -0.847774804, 0.487057745, 0.955883741, -0.0732159689, 0.284480691) w1.Part1 = p2 w1.C1 = CFrame.new(16.5005817, -6.13223743, 2.94872212, -4.37113883e-008, -1.38580826e-005, 1, 0, 1, 1.38580826e-005, -1, 6.05756005e-013, -4.37113883e-008) w2 = Instance.new("Weld", p2) w2.Name = "Part_Weld" w2.Part0 = p2 w2.C0 = CFrame.new(16.5006275, -6.13223362, 2.94873357, -5.96046448e-008, -1.3615936e-005, 1.00000358, -4.47034836e-008, 0.99999994, 1.41002238e-005, -1.00000358, 4.47034836e-008, 0) w2.Part1 = p3 w2.C1 = CFrame.new(19.4568748, -3.38260746, -1.84870064, -4.37113883e-008, -0.499906301, 0.866079509, 0, -0.866079509, -0.499906301, 1, -2.18515979e-008, 3.78575393e-008) w3 = Instance.new("Weld", p3) w3.Name = "Wedge_Weld" w3.Part0 = p3 w3.C0 = CFrame.new(19.456995, -3.38268948, -1.84870648, -5.06400113e-008, -0.499905825, 0.86608547, 1.07230136e-007, -0.866079628, -0.499910295, 1.00000715, -1.1125789e-007, -2.17476881e-008) w3.Part1 = p4 w3.C1 = CFrame.new(16.5005646, 4.13256884, -0.0487511083, -4.37113883e-008, -1.37408551e-005, 1, 0, -1, -1.37408551e-005, 1, -6.00631849e-013, 4.37113883e-008) w4 = Instance.new("Weld", p4) w4.Name = "Part_Weld" w4.Part0 = p4 w4.C0 = CFrame.new(16.5007706, 4.13255453, -0.0487275235, -1.62921424e-007, -1.2755394e-005, 1.00001431, 1.78814929e-007, -0.999999762, -1.46627426e-005, 1.00001431, -1.78813849e-007, -7.54998553e-008) w4.Part1 = p5 w4.C1 = CFrame.new(13.6104183, 15.7089605, -1.84869325, -4.37113883e-008, 0.500093758, 0.865971267, 0, -0.865971267, 0.500093758, 1, 2.18597922e-008, 3.78528071e-008) w5 = Instance.new("Weld", p5) w5.Name = "Part_Weld" w5.Part0 = p5 w5.C0 = CFrame.new(13.6108379, 15.7090359, -1.84877098, -4.29027068e-007, 0.500089467, 0.865987122, 1.9046513e-007, -0.865973532, 0.50009501, 1.00001431, 2.18601315e-008, 3.78533827e-008) w5.Part1 = p6 w5.C1 = CFrame.new(19.3720245, -3.33087778, 2.54137325, -0.249996737, -0.491388977, 0.834289134, 0.0669635162, -0.868360817, -0.491391122, 0.965928316, -0.0669792444, 0.24999252) w6 = Instance.new("Weld", p6) w6.Name = "Part_Weld" w6.Part0 = p6 w6.C0 = CFrame.new(19.3722382, -3.33087826, 2.54137945, -0.250001401, -0.491382152, 0.834303975, 0.0669622123, -0.868364573, -0.491393685, 0.965941966, -0.0669801831, 0.249996051) w6.Part1 = p7 w6.C1 = CFrame.new(16.5012703, -5.1305232, 2.59873891, -4.37113883e-008, -0.000135861075, 1, 0, 1, 0.000135861075, -1, 5.9386762e-012, -4.37113883e-008) w7 = Instance.new("Weld", p7) w7.Name = "Part_Weld" w7.Part0 = p7 w7.C0 = CFrame.new(16.5014496, -5.13052464, 2.59877563, -3.27825546e-007, -0.000133868307, 1.00001442, -3.57627869e-007, 0.99999994, 0.000135900453, -1.00001431, 1.49011612e-008, -5.96046448e-008) w7.Part1 = p8 w7.C1 = CFrame.new(-0.765930653, -21.3311157, 1.75706458, -1.37833995e-005, 0.965968609, 0.258659452, 0.00428466033, 0.258657128, -0.965959728, -0.999990821, 0.00109495374, -0.00414241292) w8 = Instance.new("Weld", p8) w8.Name = "Part_Weld" w8.Part0 = p8 w8.C0 = CFrame.new(-0.765703201, -21.3314991, 1.75706851, -1.42129729e-005, 0.965967655, 0.258668512, 0.00428489037, 0.258660465, -0.965972245, -1.00000513, 0.00109496934, -0.00414247159) w8.Part1 = p9 w8.C1 = CFrame.new(11.6857395, -12.2548676, 8.25926208, -0.277089596, 0.631037474, 0.724577785, -0.561487973, 0.505604029, -0.655054033, -0.779713154, -0.588350415, 0.214222342) w9 = Instance.new("Weld", p9) w9.Name = "Part_Weld" w9.Part0 = p9 w9.C0 = CFrame.new(11.6860123, -12.254859, 8.25934601, -0.277095288, 0.631033003, 0.724593103, -0.561500967, 0.505603611, -0.655058563, -0.779720128, -0.58835566, 0.214224264) w9.Part1 = p10 w9.C1 = CFrame.new(-0.759226322, -21.3225994, -2.35311079, -0.0669693872, 0.965954244, 0.249894977, 0.254174918, 0.258710593, -0.931914091, -0.964836895, 0.00110732042, -0.262847036) w10 = Instance.new("Weld", p10) w10.Name = "Part_Weld" w10.Part0 = p10 w10.C0 = CFrame.new(-0.759016514, -21.3229256, -2.3531487, -0.0669716895, 0.96595335, 0.249903828, 0.254178405, 0.258713901, -0.93192625, -0.964850724, 0.00110733509, -0.262850702) w10.Part1 = p11 w10.C1 = CFrame.new(18.7059784, -3.17931223, -5.46201515, 0.250018269, -0.49138394, 0.834285676, -0.0669495314, -0.86836195, -0.491391063, 0.965923727, 0.0670017004, -0.250004292) w11 = Instance.new("Weld", p11) w11.Name = "Part_Weld" w11.Part0 = p11 w11.C0 = CFrame.new(18.7061806, -3.17931461, -5.46200418, 0.250022948, -0.491377324, 0.834300399, -0.0669473261, -0.868365645, -0.491393894, 0.965937555, 0.0670026764, -0.250007868) w11.Part1 = p12 w11.C1 = CFrame.new(13.6104174, 15.708952, -1.1486963, -4.37113883e-008, 0.500093997, 0.865971148, 0, -0.865971148, 0.500093997, 1, 2.18598029e-008, 3.78528e-008) w12 = Instance.new("Weld", p12) w12.Name = "Part_Weld" w12.Part0 = p12 w12.C0 = CFrame.new(13.6107903, 15.7090092, -1.1487354, -4.76837158e-007, 0.500089884, 0.865987122, 2.83122063e-007, -0.865973473, 0.500095367, 1.00001442, 4.47034836e-008, 1.49011612e-008) w12.Part1 = p13 w12.C1 = CFrame.new(19.4568653, -3.38261366, -1.14870369, -4.37113883e-008, -0.499906093, 0.866079628, 0, -0.866079628, -0.499906093, 1, -2.1851589e-008, 3.78575429e-008) w13 = Instance.new("Weld", p13) w13.Name = "Part_Weld" w13.Part0 = p13 w13.C0 = CFrame.new(19.457077, -3.38260937, -1.14871991, -4.63888163e-008, -0.499899268, 0.866095126, 5.08347114e-007, -0.866083562, -0.499908328, 1.00001442, -2.18518963e-008, 3.78581007e-008) w13.Part1 = p14 w13.C1 = CFrame.new(-0.765169621, -21.3281136, 1.05768669, -1.37638153e-005, 0.96595937, 0.258693874, 0.00425664661, 0.258691579, -0.965950608, -0.99999094, 0.00108787336, -0.00411530817) w14 = Instance.new("Weld", p14) w14.Name = "ArmPart_Weld" w14.Part0 = p14 w14.C0 = CFrame.new(-0.764959335, -21.3284416, 1.05770254, -1.42545232e-005, 0.965958476, 0.258703023, 0.00425684778, 0.258694947, -0.965963125, -1.00000536, 0.00108788908, -0.00411536777) w14.Part1 = p15 w14.C1 = CFrame.new(16.0000172, 5.13429213, -1.49874043, -4.37113883e-008, 0.000108154614, 1, 0, -1, 0.000108154614, 1, 4.72758855e-012, 4.37113883e-008) w15 = Instance.new("Weld", p15) w15.Name = "Part_Weld" w15.Part0 = p15 w15.C0 = CFrame.new(16.0001163, 5.13430214, -1.49877143, -2.99420208e-007, 0.00011029192, 1.00001454, 4.39002179e-007, -1, 0.000108176115, 1.00001442, 0, 4.42378223e-008) w15.Part1 = p16 w15.C1 = CFrame.new(16.5000153, 6.13429213, -1.49872518, -4.37113883e-008, 0.000108154614, 1, 0, -1, 0.000108154614, 1, 4.72758855e-012, 4.37113883e-008) w16 = Instance.new("Weld", p16) w16.Name = "Part_Weld" w16.Part0 = p16 w16.C0 = CFrame.new(16.5002594, 6.1342907, -1.49874651, -2.98894406e-007, 0.000110270419, 1.00001454, 4.39006953e-007, -1, 0.000108154614, 1.00001442, 4.71678729e-012, 4.37120207e-008) w16.Part1 = p17 w16.C1 = CFrame.new(16.8263168, 6.46704865, 8.05857849, 0.396029502, -0.207962677, 0.894378066, -0.497426808, 0.770130157, 0.399332225, -0.771833658, -0.603034973, 0.201548025) w17 = Instance.new("Weld", p17) w17.Name = "Part_Weld" w17.Part0 = p17 w17.C0 = CFrame.new(16.8266068, 6.46726036, 8.05869198, 0.396035522, -0.207958207, 0.894391596, -0.497440547, 0.770127177, 0.399337679, -0.771840453, -0.603040278, 0.201549783) w17.Part1 = p18 w17.C1 = CFrame.new(-0.991122723, -20.5004215, 5.08983374, 0.0669417754, 0.965955615, 0.249897182, -0.245835528, 0.258705586, -0.9341501, -0.966997266, 0.00110005983, 0.254784435) w18 = Instance.new("Weld", p18) w18.Name = "Part_Weld" w18.Part0 = p18 w18.C0 = CFrame.new(-0.990923882, -20.5007305, 5.08983374, 0.066943109, 0.965954781, 0.249906152, -0.245838761, 0.258709013, -0.934162259, -0.967011333, 0.00110003352, 0.254788101) w18.Part1 = p19 w18.C1 = CFrame.new(10.4456682, -15.7977238, -7.8332901, 0.559388936, -0.68521893, 0.466432214, 0.116898462, -0.491870552, -0.862785101, 0.820620954, 0.537157655, -0.195045918) w19 = Instance.new("Weld", p19) w19.Name = "Part_Weld" w19.Part0 = p19 w19.C0 = CFrame.new(10.4457512, -15.7979813, -7.83342838, 0.559401393, -0.685213447, 0.466440916, 0.116905749, -0.491872638, -0.862796843, 0.820629179, 0.537163019, -0.195047855) w19.Part1 = p20 w19.C1 = CFrame.new(16.5012665, -4.13050127, 1.49876332, -4.37113883e-008, -0.000135854745, 1, 0, 1, 0.000135854745, -1, 5.93839951e-012, -4.37113883e-008) w20 = Instance.new("Weld", p20) w20.Name = "Part_Weld" w20.Part0 = p20 w20.C0 = CFrame.new(16.5013981, -4.13050938, 1.498757, -2.38418579e-007, -0.000133797526, 1.00001466, -4.47034836e-007, 1.00000024, 0.000135831535, -1.00001454, -2.98023224e-008, -5.96046448e-008) w20.Part1 = p21 w20.C1 = CFrame.new(16.5012627, -5.13048887, 0.39874959, -4.37113883e-008, -0.000135854745, 1, 0, 1, 0.000135854745, -1, 5.93839951e-012, -4.37113883e-008) w21 = Instance.new("Weld", p21) w21.Name = "Wedge_Weld" w21.Part0 = p21 w21.C0 = CFrame.new(16.5014935, -5.13049126, 0.398722976, -2.22529991e-007, -0.000133820766, 1.00001466, -4.17224015e-007, 1.00000024, 0.000135854774, -1.00001454, 5.9472427e-012, -4.37120207e-008) w21.Part1 = p22 w21.C1 = CFrame.new(-16.5005875, 4.13259029, 2.94876933, -4.37113883e-008, 1.39792737e-005, -1, 0, -1, -1.39792737e-005, -1, -6.11053471e-013, 4.37113883e-008) w22 = Instance.new("Weld", p22) w22.Name = "Part_Weld" w22.Part0 = p22 w22.C0 = CFrame.new(-16.500824, 4.13258791, 2.94888711, 1.35156796e-007, 1.19470278e-005, -1.00001466, 4.17202415e-007, -1.00000024, -1.39792755e-005, -1.00001454, -6.07483681e-013, 4.37120278e-008) w22.Part1 = p23 w22.C1 = CFrame.new(11.3238592, 16.2938461, -5.83674097, 0.167913347, 0.593457043, 0.787155509, 0.220650926, -0.800859332, 0.556720257, 0.960790455, 0.0802058354, -0.265421808) w23 = Instance.new("Weld", p23) w23.Name = "Wedge_Weld" w23.Part0 = p23 w23.C0 = CFrame.new(11.3242846, 16.2939701, -5.83676767, 0.167916089, 0.593452632, 0.787171543, 0.220654398, -0.800862908, 0.556722164, 0.960804224, 0.0802069977, -0.265425682) w23.Part1 = p24 w23.C1 = CFrame.new(-16.5190907, -6.08210278, -0.053311754, -0.000165350299, 0.00304719806, -0.999995351, -0.000303142268, 0.999995351, 0.00304725766, 0.99999994, 0.000303644716, -0.000164425801) w24 = Instance.new("Weld", p24) w24.Name = "Part_Weld" w24.Part0 = p24 w24.C0 = CFrame.new(-16.5192356, -6.08211088, -0.0533116534, -0.000165194273, 0.00304524973, -1.00001013, -0.00030361861, 0.999995589, 0.00304720178, 1.00001442, 0.000303655863, -0.000164449215) w24.Part1 = p25 w24.C1 = CFrame.new(5.14108515, 1.49960721, -17.9982204, 1.16387992e-005, -0.999999881, 0.000471503939, -1, -1.1615477e-005, 4.94651576e-005, -4.94596788e-005, -0.000471504522, -0.999999881) w25 = Instance.new("Weld", p25) w25.Name = "Part_Weld" w25.Part0 = p25 w25.C0 = CFrame.new(5.14104986, 1.49967504, -17.9985313, 1.20991026e-005, -1.00000024, 0.000469659513, -1.00001454, -1.16155716e-005, 4.96469293e-005, -4.94604174e-005, -0.000471511274, -1.00001466) w25.Part1 = p26 w25.C1 = CFrame.new(5.07938719, 17.5157299, 1.50311017, 0.00030336561, -0.99999541, -0.00302907825, 0.000164940167, -0.00302901864, 0.999995351, -0.99999994, -0.000303863839, 0.000164020501) m.Parent = char m:MakeJoints() ---------------------------------------------------- local cor2 = Instance.new("Part", char.Claw) cor2.Name = "Thingy" cor2.Locked = true cor2.BottomSurface = 0 cor2.CanCollide = false cor2.Size = Vector3.new(2, 1, 1) cor2.Transparency = 1 cor2.TopSurface = 0 corw2 = Instance.new("Weld", cor2) corw2.Part0 = larm corw2.Part1 = cor2 corw2.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)) corw2.C1 = CFrame.new(0, 0, 0) weld2 = Instance.new("Weld", char.Claw) weld2.Part0 = cor2 weld2.Part1 = char.Claw.ArmPart weld2.C0 = CFrame.new(0, 0, 0) ---------------------------------------------------- local m = Instance.new("Model") m.Name = "LeftArm" p1 = Instance.new("WedgePart", m) p1.BrickColor = BrickColor.new("Bright blue") p1.Material = Enum.Material.Neon p1.Name = "Wedge" p1.FormFactor = Enum.FormFactor.Custom p1.Size = Vector3.new(1, 1.19999981, 4) p1.CFrame = CFrame.new(60.830101, 8.39941978, -13.7674818, 1.52359269e-006, -0.707334042, 0.707343757, -2.62521735e-006, 0.707093, 0.707071185, -1.00027835, 3.43534703e-006, 4.43342998e-007) p1.CanCollide = false p1.Locked = true p1.TopSurface = Enum.SurfaceType.Smooth b1 = Instance.new("SpecialMesh", p1) b1.MeshType = Enum.MeshType.Wedge b1.Name = "Mesh" b1.Scale = Vector3.new(0.200000003, 1, 1) p2 = Instance.new("WedgePart", m) p2.BrickColor = BrickColor.new("Bright blue") p2.Material = Enum.Material.Neon p2.Name = "Wedge" p2.FormFactor = Enum.FormFactor.Custom p2.Size = Vector3.new(1, 1.19999981, 4) p2.CFrame = CFrame.new(60.8306694, 8.39941502, -12.5672398, 1.56085741e-006, -0.707337618, 0.707340181, -2.7146209e-006, 0.707089424, 0.707074761, -1.00027835, 3.34575839e-006, 4.06471969e-007) p2.CanCollide = false p2.Locked = true p2.TopSurface = Enum.SurfaceType.Smooth b2 = Instance.new("SpecialMesh", p2) b2.MeshType = Enum.MeshType.Wedge b2.Name = "Mesh" b2.Scale = Vector3.new(0.200000003, 1, 1) p3 = Instance.new("WedgePart", m) p3.BrickColor = BrickColor.new("Bright blue") p3.Material = Enum.Material.Neon p3.Name = "Wedge" p3.FormFactor = Enum.FormFactor.Custom p3.Size = Vector3.new(1, 1.19999981, 4) p3.CFrame = CFrame.new(60.8312187, 8.39939976, -13.1675138, 1.66519976e-006, -0.707341254, 0.707336545, -2.72952207e-006, 0.707085788, 0.707078397, -1.00027835, 3.26143936e-006, 4.69727013e-007) p3.CanCollide = false p3.Locked = true p3.TopSurface = Enum.SurfaceType.Smooth b3 = Instance.new("SpecialMesh", p3) b3.MeshType = Enum.MeshType.Wedge b3.Name = "Mesh" b3.Scale = Vector3.new(0.200000003, 1, 1) p4 = Instance.new("WedgePart", m) p4.BrickColor = BrickColor.new("Bright blue") p4.Material = Enum.Material.Neon p4.Name = "Wedge" p4.FormFactor = Enum.FormFactor.Custom p4.Size = Vector3.new(1, 1.19999981, 4) p4.CFrame = CFrame.new(60.8317757, 8.39937305, -13.1676111, 1.74718321e-006, -0.70734489, 0.707332909, -2.7742235e-006, 0.707082152, 0.707082033, -1.00027835, 3.17185027e-006, 4.96093037e-007) p4.CanCollide = false p4.Locked = true p4.TopSurface = Enum.SurfaceType.Smooth b4 = Instance.new("SpecialMesh", p4) b4.MeshType = Enum.MeshType.Wedge b4.Name = "Mesh" b4.Scale = Vector3.new(0.200000003, 1, 1) p5 = Instance.new("WedgePart", m) p5.BrickColor = BrickColor.new("Bright blue") p5.Material = Enum.Material.Neon p5.Name = "Wedge" p5.FormFactor = Enum.FormFactor.Custom p5.Size = Vector3.new(1, 1.19999981, 3.30000019) p5.CFrame = CFrame.new(60.4623528, 9.0813055, -13.1677084, -1.74365277e-006, 0.422768414, 0.90661031, 3.01146247e-006, -0.90627563, 0.422602654, 1.00028574, -3.16541991e-006, -6.48408104e-007) p5.CanCollide = false p5.Locked = true p5.TopSurface = Enum.SurfaceType.Smooth b5 = Instance.new("SpecialMesh", p5) b5.MeshType = Enum.MeshType.Wedge b5.Name = "Mesh" b5.Scale = Vector3.new(0.200000003, 1, 1) p6 = Instance.new("WedgePart", m) p6.BrickColor = BrickColor.new("Bright blue") p6.Material = Enum.Material.Neon p6.Name = "Wedge" p6.FormFactor = Enum.FormFactor.Custom p6.Size = Vector3.new(1, 1.19999981, 3.30000019) p6.CFrame = CFrame.new(60.4629173, 9.08128643, -13.7679863, -1.75857326e-006, 0.422772557, 0.906618714, 3.13068858e-006, -0.906274974, 0.422602147, 1.00029314, -3.27979569e-006, -6.11540997e-007) p6.CanCollide = false p6.Locked = true p6.TopSurface = Enum.SurfaceType.Smooth b6 = Instance.new("SpecialMesh", p6) b6.MeshType = Enum.MeshType.Wedge b6.Name = "Mesh" b6.Scale = Vector3.new(0.200000003, 1, 1) p7 = Instance.new("WedgePart", m) p7.BrickColor = BrickColor.new("Bright blue") p7.Material = Enum.Material.Neon p7.Name = "Wedge" p7.FormFactor = Enum.FormFactor.Custom p7.Size = Vector3.new(1, 1.19999981, 3.30000019) p7.CFrame = CFrame.new(60.4634781, 9.0812645, -12.5677195, -1.77349398e-006, 0.422776699, 0.906627119, 3.24991538e-006, -0.906274319, 0.42260164, 1.00030053, -3.39417238e-006, -5.74673834e-007) p7.CanCollide = false p7.Locked = true p7.TopSurface = Enum.SurfaceType.Smooth b7 = Instance.new("SpecialMesh", p7) b7.MeshType = Enum.MeshType.Wedge b7.Name = "Mesh" b7.Scale = Vector3.new(0.200000003, 1, 1) p8 = Instance.new("Part", m) p8.BrickColor = BrickColor.new("Really black") p8.Material = Enum.Material.Neon p8.FormFactor = Enum.FormFactor.Custom p8.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p8.CFrame = CFrame.new(62.1344833, 9.89923668, -14.2683573, 1.0003655, -9.00030136e-006, -1.6914961e-006, -8.34465027e-007, 0.999961495, 3.15914986e-006, -2.15653972e-006, 3.05826416e-006, 1.00030792) p8.CanCollide = false p8.Locked = true p8.BottomSurface = Enum.SurfaceType.Smooth p8.TopSurface = Enum.SurfaceType.Smooth b8 = Instance.new("SpecialMesh", p8) b8.MeshType = Enum.MeshType.Sphere b8.Name = "Mesh" p9 = Instance.new("Part", m) p9.BrickColor = BrickColor.new("Really black") p9.Material = Enum.Material.Neon p9.FormFactor = Enum.FormFactor.Custom p9.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p9.CFrame = CFrame.new(62.1350441, 7.19933271, -14.2684784, 1.00037432, -9.11423649e-006, -1.78677055e-006, -8.82557742e-007, 0.999960482, 3.17407398e-006, -2.19382355e-006, 3.14769591e-006, 1.00031543) p9.CanCollide = false p9.Locked = true p9.BottomSurface = Enum.SurfaceType.Smooth p9.TopSurface = Enum.SurfaceType.Smooth b9 = Instance.new("SpecialMesh", p9) b9.MeshType = Enum.MeshType.Sphere b9.Name = "Mesh" p10 = Instance.new("Part", m) p10.BrickColor = BrickColor.new("Bright blue") p10.Material = Enum.Material.Neon p10.FormFactor = Enum.FormFactor.Custom p10.Size = Vector3.new(0.200000048, 1.79999983, 0.200000048) p10.CFrame = CFrame.new(62.4732666, 7.92819929, -14.2685785, -0.906659067, -0.422771662, -1.80169195e-006, 0.422602057, -0.906270981, 3.2933026e-006, 3.38190716e-006, -1.99476835e-006, 1.00032294) p10.CanCollide = false p10.Locked = true p10.BottomSurface = Enum.SurfaceType.Smooth p10.TopSurface = Enum.SurfaceType.Smooth p11 = Instance.new("Part", m) p11.BrickColor = BrickColor.new("Bright blue") p11.Material = Enum.Material.Neon p11.FormFactor = Enum.FormFactor.Custom p11.Size = Vector3.new(0.200000048, 1.29999983, 0.200000048) p11.CFrame = CFrame.new(62.4794731, 9.45469475, -14.2686787, -0.819467902, 0.573809147, -1.81661335e-006, -0.573551893, -0.819118977, 3.41253167e-006, -9.27350783e-008, -4.03244348e-006, 1.00033033) p11.CanCollide = false p11.Locked = true p11.BottomSurface = Enum.SurfaceType.Smooth p11.TopSurface = Enum.SurfaceType.Smooth p12 = Instance.new("Part", m) p12.BrickColor = BrickColor.new("Really black") p12.Material = Enum.Material.Neon p12.FormFactor = Enum.FormFactor.Custom p12.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p12.CFrame = CFrame.new(62.7369499, 6.29933262, -14.2688055, 1.00040102, -9.53674316e-006, -1.84644205e-006, -1.25169754e-006, 0.999957919, 3.50196092e-006, -2.25187659e-006, 3.46763295e-006, 1.00033784) p12.CanCollide = false p12.Locked = true p12.BottomSurface = Enum.SurfaceType.Smooth p12.TopSurface = Enum.SurfaceType.Smooth b10 = Instance.new("SpecialMesh", p12) b10.MeshType = Enum.MeshType.Sphere b10.Name = "Mesh" p13 = Instance.new("Part", m) p13.BrickColor = BrickColor.new("Bright blue") p13.Material = Enum.Material.Neon p13.FormFactor = Enum.FormFactor.Custom p13.Size = Vector3.new(1.5, 1.5, 1.5) p13.CFrame = CFrame.new(62.8003883, 10.1991549, -13.2136488, 1.00040984, -9.59636054e-006, -1.88372474e-006, -1.43051466e-006, 0.999956846, 3.58340549e-006, -2.3487878e-006, 3.4825357e-006, 1.00034535) p13.CanCollide = false p13.Locked = true p13.BottomSurface = Enum.SurfaceType.Smooth p13.TopSurface = Enum.SurfaceType.Smooth b11 = Instance.new("SpecialMesh", p13) b11.MeshType = Enum.MeshType.Sphere b11.Name = "Mesh" p14 = Instance.new("Part", m) p14.BrickColor = BrickColor.new("Really black") p14.Material = Enum.Material.Neon p14.FormFactor = Enum.FormFactor.Custom p14.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p14.CFrame = CFrame.new(62.7374802, 9.79915905, -14.2689018, 1.00041437, -9.80505502e-006, -1.96572228e-006, -1.37091877e-006, 0.999956131, 3.62812011e-006, -2.37115751e-006, 3.4527211e-006, 1.00034904) p14.CanCollide = false p14.Locked = true p14.BottomSurface = Enum.SurfaceType.Smooth p14.TopSurface = Enum.SurfaceType.Smooth b12 = Instance.new("SpecialMesh", p14) b12.MeshType = Enum.MeshType.Sphere b12.Name = "Mesh" p15 = Instance.new("Part", m) p15.BrickColor = BrickColor.new("Really black") p15.Material = Enum.Material.Metal p15.Name = "Main" p15.FormFactor = Enum.FormFactor.Custom p15.Size = Vector3.new(2.20000005, 4.19999981, 2.20000005) p15.CFrame = CFrame.new(62.838131, 8.1992178, -13.1686192, 1.00041902, -9.80505047e-006, -1.96572933e-006, -1.54973122e-006, 0.999955654, 3.62813353e-006, -2.38607572e-006, 3.57197018e-006, 1.00035274) p15.CanCollide = false p15.Locked = true p15.BottomSurface = Enum.SurfaceType.Smooth p15.TopSurface = Enum.SurfaceType.Smooth p16 = Instance.new("Part", m) p16.BrickColor = BrickColor.new("Really black") p16.Material = Enum.Material.Neon p16.FormFactor = Enum.FormFactor.Custom p16.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p16.CFrame = CFrame.new(62.9387741, 8.79918098, -14.2691231, 1.0004282, -9.95411301e-006, -2.00301338e-006, -1.66894927e-006, 0.999954581, 3.71756369e-006, -2.46808372e-006, 3.61668594e-006, 1.00036013) p16.CanCollide = false p16.Locked = true p16.BottomSurface = Enum.SurfaceType.Smooth p16.TopSurface = Enum.SurfaceType.Smooth b13 = Instance.new("SpecialMesh", p16) b13.MeshType = Enum.MeshType.Sphere b13.Name = "Mesh" p17 = Instance.new("Part", m) p17.BrickColor = BrickColor.new("Bright blue") p17.Material = Enum.Material.Neon p17.FormFactor = Enum.FormFactor.Custom p17.Size = Vector3.new(0.200000048, 1.29999983, 0.200000048) p17.CFrame = CFrame.new(63.0825539, 6.854743, -14.2692442, -0.866409063, -0.50020963, -2.099928e-006, 0.499978155, -0.86598444, 3.73249213e-006, 4.01878242e-006, -1.94999211e-006, 1.00036764) p17.CanCollide = false p17.Locked = true p17.BottomSurface = Enum.SurfaceType.Smooth p17.TopSurface = Enum.SurfaceType.Smooth p18 = Instance.new("Part", m) p18.BrickColor = BrickColor.new("Bright blue") p18.Material = Enum.Material.Neon p18.FormFactor = Enum.FormFactor.Custom p18.Size = Vector3.new(0.200000048, 1.29999983, 0.200000048) p18.CFrame = CFrame.new(63.1831665, 8.15466595, -14.2693415, -0.906707585, 0.422816038, -2.11485258e-006, -0.422596663, -0.906265914, 3.8437388e-006, 6.9698217e-007, -4.50413063e-006, 1.00037515) p18.CanCollide = false p18.Locked = true p18.BottomSurface = Enum.SurfaceType.Smooth p18.TopSurface = Enum.SurfaceType.Smooth p19 = Instance.new("Part", m) p19.BrickColor = BrickColor.new("Bright blue") p19.Material = Enum.Material.Neon p19.FormFactor = Enum.FormFactor.Custom p19.Size = Vector3.new(0.200000048, 0.799999833, 0.200000048) p19.CFrame = CFrame.new(63.2069473, 8.53140068, -14.2694473, -0.707418501, 0.707425714, -2.09994369e-006, -0.707068563, -0.707078457, 3.72453474e-006, -9.59315798e-007, -4.56575162e-006, 1.00037515) p19.CanCollide = false p19.Locked = true p19.BottomSurface = Enum.SurfaceType.Smooth p19.TopSurface = Enum.SurfaceType.Smooth p20 = Instance.new("Part", m) p20.BrickColor = BrickColor.new("Bright blue") p20.Material = Enum.Material.Neon p20.FormFactor = Enum.FormFactor.Custom p20.Size = Vector3.new(0.200000048, 0.899999917, 0.200000048) p20.CFrame = CFrame.new(63.2280884, 9.68191624, -14.2694416, -0.342169315, 0.940117717, -2.11486008e-006, -0.93964541, -0.342010528, 3.84375198e-006, -2.7989995e-006, -3.73256239e-006, 1.00037885) p20.CanCollide = false p20.Locked = true p20.BottomSurface = Enum.SurfaceType.Smooth p20.TopSurface = Enum.SurfaceType.Smooth p21 = Instance.new("Part", m) p21.BrickColor = BrickColor.new("Bright blue") p21.Material = Enum.Material.Neon p21.FormFactor = Enum.FormFactor.Custom p21.Size = Vector3.new(0.200000048, 0.999999821, 0.200000048) p21.CFrame = CFrame.new(63.3539009, 9.07959557, -14.2694454, 0.707428038, 0.707422554, -2.12876989e-006, -0.707079053, 0.707067132, 3.83015185e-006, -4.56554562e-006, 9.7875602e-007, 1.00037885) p21.CanCollide = false p21.Locked = true p21.BottomSurface = Enum.SurfaceType.Smooth p21.TopSurface = Enum.SurfaceType.Smooth p22 = Instance.new("Part", m) p22.BrickColor = BrickColor.new("Really black") p22.Material = Enum.Material.Neon p22.FormFactor = Enum.FormFactor.Custom p22.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p22.CFrame = CFrame.new(63.4412346, 7.49916172, -14.269558, 1.0004549, -5.30481339e-006, -2.11486781e-006, -7.24196434e-006, 0.999951959, 3.84376608e-006, -2.5650661e-006, 4.02606338e-006, 1.00038254) p22.CanCollide = false p22.Locked = true p22.BottomSurface = Enum.SurfaceType.Smooth p22.TopSurface = Enum.SurfaceType.Smooth b14 = Instance.new("SpecialMesh", p22) b14.MeshType = Enum.MeshType.Sphere b14.Name = "Mesh" p23 = Instance.new("Part", m) p23.BrickColor = BrickColor.new("Really black") p23.Material = Enum.Material.Neon p23.FormFactor = Enum.FormFactor.Custom p23.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p23.CFrame = CFrame.new(63.5412827, 8.29912186, -14.2695541, 1.00045943, -5.54520193e-006, -2.12978443e-006, -7.22709638e-006, 0.999951601, 3.96298356e-006, -2.56507747e-006, 4.02606247e-006, 1.00038624) p23.CanCollide = false p23.Locked = true p23.BottomSurface = Enum.SurfaceType.Smooth p23.TopSurface = Enum.SurfaceType.Smooth b15 = Instance.new("SpecialMesh", p23) b15.MeshType = Enum.MeshType.Sphere b15.Name = "Mesh" p24 = Instance.new("Part", m) p24.BrickColor = BrickColor.new("Really black") p24.Material = Enum.Material.Neon p24.FormFactor = Enum.FormFactor.Custom p24.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p24.CFrame = CFrame.new(63.7413521, 9.49905682, -14.2695513, 1.00045943, -5.51538596e-006, -2.12978443e-006, -7.25689733e-006, 0.999951601, 3.96298356e-006, -2.56507769e-006, 4.02606247e-006, 1.00038624) p24.CanCollide = false p24.Locked = true p24.BottomSurface = Enum.SurfaceType.Smooth p24.TopSurface = Enum.SurfaceType.Smooth b16 = Instance.new("SpecialMesh", p24) b16.MeshType = Enum.MeshType.Sphere b16.Name = "Mesh" w1 = Instance.new("Weld", p1) w1.Name = "Wedge_Weld" w1.Part0 = p1 w1.C0 = CFrame.new(-13.7623367, 38.4686089, -47.5196228, 1.82382877e-007, -1.21785519e-007, -1.0000037, -0.707109988, 0.707106709, -1.20249211e-007, 0.707110047, 0.707106352, 1.16605563e-007) w1.Part1 = p2 w1.C1 = CFrame.new(-12.5623302, 38.4686165, -47.5196419, 2.04734633e-007, -9.19831891e-008, -1.0000037, -0.707109928, 0.707106471, -1.25517531e-007, 0.707110047, 0.707106233, 1.65067799e-008) w2 = Instance.new("Weld", p2) w2.Name = "Wedge_Weld" w2.Part0 = p2 w2.C0 = CFrame.new(-12.5623302, 38.4686165, -47.5196419, 2.04734633e-007, -9.19831891e-008, -1.0000037, -0.707109928, 0.707106471, -1.25517531e-007, 0.707110047, 0.707106233, 1.65067799e-008) w2.Part1 = p3 w2.C1 = CFrame.new(-13.1623344, 38.4686127, -47.5196381, 2.04734619e-007, -9.1983182e-008, -1.0000037, -0.707109928, 0.707106471, -1.25517545e-007, 0.707110047, 0.707106233, 1.65067799e-008) w3 = Instance.new("Weld", p3) w3.Name = "Wedge_Weld" w3.Part0 = p3 w3.C0 = CFrame.new(-13.1623344, 38.4686127, -47.5196381, 2.04734619e-007, -9.1983182e-008, -1.0000037, -0.707109928, 0.707106471, -1.25517545e-007, 0.707110047, 0.707106233, 1.65067799e-008) w3.Part1 = p4 w3.C1 = CFrame.new(-13.1623335, 38.4686165, -47.5196266, 1.82382891e-007, -1.21785519e-007, -1.0000037, -0.707110047, 0.70710659, -1.20249197e-007, 0.707110107, 0.707106352, 1.16605577e-007) w4 = Instance.new("Weld", p4) w4.Name = "Wedge_Weld" w4.Part0 = p4 w4.C0 = CFrame.new(-13.1623335, 38.4686165, -47.5196266, 1.82382891e-007, -1.21785519e-007, -1.0000037, -0.707110047, 0.70710659, -1.20249197e-007, 0.707110107, 0.707106352, 1.16605577e-007) w4.Part1 = p5 w4.C1 = CFrame.new(13.1623335, -19.1215992, -57.7639008, -1.63937244e-007, 2.39803342e-007, 1.0000037, 0.422619939, -0.906307638, 1.72281261e-007, 0.906312168, 0.422617614, 8.41069863e-008) w5 = Instance.new("Weld", p5) w5.Name = "Wedge_Weld" w5.Part0 = p5 w5.C0 = CFrame.new(13.1623335, -19.1215992, -57.7639008, -1.63937244e-007, 2.39803342e-007, 1.0000037, 0.422619939, -0.906307638, 1.72281261e-007, 0.906312168, 0.422617614, 8.41069863e-008) w5.Part1 = p6 w5.C1 = CFrame.new(13.7623377, -19.1215973, -57.7639008, -1.63937244e-007, 2.39803342e-007, 1.0000037, 0.422619939, -0.906307638, 1.72281261e-007, 0.906312168, 0.422617614, 8.41069792e-008) w6 = Instance.new("Weld", p6) w6.Name = "Wedge_Weld" w6.Part0 = p6 w6.C0 = CFrame.new(13.7623377, -19.1215973, -57.7639008, -1.63937244e-007, 2.39803342e-007, 1.0000037, 0.422619939, -0.906307638, 1.72281261e-007, 0.906312168, 0.422617614, 8.41069792e-008) w6.Part1 = p7 w6.C1 = CFrame.new(12.5623283, -19.121603, -57.7638969, -1.63937244e-007, 2.39803342e-007, 1.0000037, 0.422619939, -0.906307638, 1.72281261e-007, 0.906312168, 0.422617614, 8.41069721e-008) w7 = Instance.new("Weld", p7) w7.Name = "Part_Weld" w7.Part0 = p7 w7.C0 = CFrame.new(12.5623283, -19.121603, -57.7638969, -1.63937244e-007, 2.39803342e-007, 1.0000037, 0.422619939, -0.906307638, 1.72281261e-007, 0.906312168, 0.422617614, 8.41069721e-008) w7.Part1 = p8 w7.C1 = CFrame.new(-62.1028557, -7.90003395, 14.2623377, 1.00000453, -2.44006515e-007, -3.7252903e-008, 1.71363354e-007, 0.999999285, -1.49011612e-008, -6.70552254e-008, 2.98023224e-008, 1.0000037) w8 = Instance.new("Weld", p8) w8.Name = "Part_Weld" w8.Part0 = p8 w8.C0 = CFrame.new(-62.1028557, -7.90003395, 14.2623377, 1.00000453, -2.44006515e-007, -3.7252903e-008, 1.71363354e-007, 0.999999285, -1.49011612e-008, -6.70552254e-008, 2.98023224e-008, 1.0000037) w8.Part1 = p9 w8.C1 = CFrame.new(-62.1028442, -5.2000351, 14.2623415, 1.00000429, -2.19451294e-007, 2.98023153e-008, 1.30103487e-007, 0.999999702, 5.96046448e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w9 = Instance.new("Weld", p9) w9.Name = "Part_Weld" w9.Part0 = p9 w9.C0 = CFrame.new(-62.1028442, -5.2000351, 14.2623415, 1.00000429, -2.19451294e-007, 2.98023153e-008, 1.30103487e-007, 0.999999702, 5.96046448e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w9.Part1 = p10 w9.C1 = CFrame.new(54.0845451, 31.7618942, 14.2623348, -0.906311929, 0.422618181, -1.82007653e-009, -0.422620118, -0.906307399, -6.66151578e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w10 = Instance.new("Weld", p10) w10.Name = "Part_Weld" w10.Part0 = p10 w10.C0 = CFrame.new(54.0845451, 31.7618942, 14.2623348, -0.906311929, 0.422618181, -1.82007653e-009, -0.422620118, -0.906307399, -6.66151578e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w10.Part1 = p11 w10.C1 = CFrame.new(55.4291229, -29.7103825, 14.2623348, -0.819155812, -0.573575914, -5.86004596e-008, 0.573578954, -0.8191517, -3.17313607e-008, -4.47034836e-008, 5.9604659e-008, 1.0000037) w11 = Instance.new("Weld", p11) w11.Name = "Part_Weld" w11.Part0 = p11 w11.C0 = CFrame.new(55.4291229, -29.7103825, 14.2623348, -0.819155812, -0.573575914, -5.86004596e-008, 0.573578954, -0.8191517, -3.17313607e-008, -4.47034836e-008, 5.9604659e-008, 1.0000037) w11.Part1 = p12 w11.C1 = CFrame.new(-62.7028465, -4.30003357, 14.2623425, 1.00000429, -2.08616257e-007, 2.980231e-008, 1.1920929e-007, 0.999999642, 5.16191463e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w12 = Instance.new("Weld", p12) w12.Name = "Part_Weld" w12.Part0 = p12 w12.C0 = CFrame.new(-62.7028465, -4.30003357, 14.2623425, 1.00000429, -2.08616257e-007, 2.980231e-008, 1.1920929e-007, 0.999999642, 5.16191463e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w12.Part1 = p13 w12.C1 = CFrame.new(-62.7657433, -8.200037, 13.2074499, 1.00000453, -2.98023224e-007, -3.72529421e-008, 1.49011612e-007, 0.999999285, -1.49011443e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w13 = Instance.new("Weld", p13) w13.Name = "Part_Weld" w13.Part0 = p13 w13.C0 = CFrame.new(-62.7657433, -8.200037, 13.2074499, 1.00000453, -2.98023224e-007, -3.72529421e-008, 1.49011612e-007, 0.999999285, -1.49011443e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w13.Part1 = p14 w13.C1 = CFrame.new(-62.7025757, -7.80003023, 14.2622833, 1, -8.94065622e-008, 4.47034871e-008, 8.94065622e-008, 1, -5.96044352e-008, -4.47034836e-008, 5.96044387e-008, 1) w14 = Instance.new("Weld", p14) w14.Name = "Part_Weld" w14.Part0 = p14 w14.C0 = CFrame.new(-62.7025757, -7.80003023, 14.2622833, 1, -8.94065622e-008, 4.47034871e-008, 8.94065622e-008, 1, -5.96044352e-008, -4.47034836e-008, 5.96044387e-008, 1) w14.Part1 = p15 w14.C1 = CFrame.new(-62.8028793, -6.2000289, 13.1623297, 1.00000465, -2.68220901e-007, 2.98023295e-008, 8.94069672e-008, 0.999999523, 5.9604659e-008, -4.47034836e-008, 5.9604659e-008, 1.0000037) w15 = Instance.new("Weld", p15) w15.Name = "Part_Weld" w15.Part0 = p15 w15.C0 = CFrame.new(-62.8028793, -6.2000289, 13.1623297, 1.00000465, -2.68220901e-007, 2.98023295e-008, 8.94069672e-008, 0.999999523, 5.9604659e-008, -4.47034836e-008, 5.9604659e-008, 1.0000037) w15.Part1 = p16 w15.C1 = CFrame.new(-62.9029045, -6.80003929, 14.2623367, 1.00000453, -2.08616257e-007, -3.72529385e-008, 1.1920929e-007, 0.999999404, -1.49011452e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w16 = Instance.new("Weld", p16) w16.Name = "Part_Weld" w16.Part0 = p16 w16.C0 = CFrame.new(-62.9029045, -6.80003929, 14.2623367, 1.00000453, -2.08616257e-007, -3.72529385e-008, 1.1920929e-007, 0.999999404, -1.49011452e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w16.Part1 = p17 w16.C1 = CFrame.new(52.1717262, 35.7280197, 14.2623415, -0.866029143, 0.499999821, 3.55271368e-015, -0.500002086, -0.86602509, -5.96046448e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w17 = Instance.new("Weld", p17) w17.Name = "Part_Weld" w17.Part0 = p17 w17.C0 = CFrame.new(52.1717262, 35.7280197, 14.2623415, -0.866029143, 0.499999821, 3.55271368e-015, -0.500002086, -0.86602509, -5.96046448e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w17.Part1 = p18 w17.C1 = CFrame.new(59.8312111, -21.1078911, 14.2623348, -0.906311929, -0.422617912, -5.22000931e-008, 0.422620177, -0.906307578, -4.1425146e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w18 = Instance.new("Weld", p18) w18.Name = "Part_Weld" w18.Part0 = p18 w18.C0 = CFrame.new(59.8312111, -21.1078911, 14.2623348, -0.906311929, -0.422617912, -5.22000931e-008, 0.422620177, -0.906307578, -4.1425146e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w18.Part1 = p19 w18.C1 = CFrame.new(49.2864532, -40.0483932, 14.2623358, -0.707110107, -0.707106173, -6.32202841e-008, 0.707109928, -0.70710659, -2.1073431e-008, -4.47034836e-008, 5.9604659e-008, 1.0000037) w19 = Instance.new("Weld", p19) w19.Name = "Part_Weld" w19.Part0 = p19 w19.C0 = CFrame.new(49.2864532, -40.0483932, 14.2623358, -0.707110107, -0.707106173, -6.32202841e-008, 0.707109928, -0.70710659, -2.1073431e-008, -4.47034836e-008, 5.9604659e-008, 1.0000037) w19.Part1 = p20 w19.C1 = CFrame.new(28.8318367, -56.7515907, 14.2622824, -0.342020333, -0.939692557, 4.07203444e-008, 0.939692557, -0.342020333, 6.23934611e-008, -4.47034836e-008, 5.96044387e-008, 1) w20 = Instance.new("Weld", p20) w20.Name = "Part_Weld" w20.Part0 = p20 w20.C0 = CFrame.new(28.8318367, -56.7515907, 14.2622824, -0.342020333, -0.939692557, 4.07203444e-008, 0.939692557, -0.342020333, 6.23934611e-008, -4.47034836e-008, 5.96044387e-008, 1) w20.Part1 = p21 w20.C1 = CFrame.new(-39.764328, -49.7778244, 14.2622843, 0.707105696, -0.707107842, 7.39707531e-008, 0.707107842, 0.707105696, 8.91225582e-009, -5.86070712e-008, 4.60033966e-008, 1) w21 = Instance.new("Weld", p21) w21.Name = "Part_Weld" w21.Part0 = p21 w21.C0 = CFrame.new(-39.764328, -49.7778244, 14.2622843, 0.707105696, -0.707107842, 7.39707531e-008, 0.707107842, 0.707105696, 8.91225582e-009, -5.86070712e-008, 4.60033966e-008, 1) w21.Part1 = p22 w21.C1 = CFrame.new(-63.402874, -5.50003099, 14.2623358, 1.00000453, -2.99885869e-007, 2.98023224e-008, 7.4505806e-008, 0.999999642, 5.96046448e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w22 = Instance.new("Weld", p22) w22.Name = "Part_Weld" w22.Part0 = p22 w22.C0 = CFrame.new(-63.402874, -5.50003099, 14.2623358, 1.00000453, -2.99885869e-007, 2.98023224e-008, 7.4505806e-008, 0.999999642, 5.96046448e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w22.Part1 = p23 w22.C1 = CFrame.new(-63.502594, -6.30003357, 14.2622824, 1, -5.96043641e-008, 4.47034836e-008, 5.96043677e-008, 1, -5.9604421e-008, -4.470348e-008, 5.96044245e-008, 1) w23 = Instance.new("Weld", p23) w23.Name = "Part_Weld" w23.Part0 = p23 w23.C0 = CFrame.new(-63.502594, -6.30003357, 14.2622824, 1, -5.96043641e-008, 4.47034836e-008, 5.96043677e-008, 1, -5.9604421e-008, -4.470348e-008, 5.96044245e-008, 1) w23.Part1 = p24 w23.C1 = CFrame.new(-63.7025795, -7.50003004, 14.2622843, 1, -8.94065622e-008, 4.47034871e-008, 8.94065622e-008, 1, -5.96044352e-008, -4.47034836e-008, 5.96044387e-008, 1) w24 = Instance.new("Weld", p24) w24.Name = "Part_Weld" w24.Part0 = p24 w24.C0 = CFrame.new(-63.7025795, -7.50003004, 14.2622843, 1, -8.94065622e-008, 4.47034871e-008, 8.94065622e-008, 1, -5.96044352e-008, -4.47034836e-008, 5.96044387e-008, 1) m.Parent = larm m:MakeJoints() ---------------------------------------------------- local cor3 = Instance.new("Part", larm.LeftArm) cor3.Name = "Thingy" cor3.Locked = true cor3.BottomSurface = 0 cor3.CanCollide = false cor3.Size = Vector3.new(2, 1, 1) cor3.Transparency = 1 cor3.TopSurface = 0 corw2 = Instance.new("Weld", cor3) corw2.Part0 = larm corw2.Part1 = cor3 corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) corw2.C1 = CFrame.new(0, 0, 0) weld2 = Instance.new("Weld", larm.LeftArm) weld2.Part0 = cor3 weld2.Part1 = p15 weld2.C0 = CFrame.new(0, 0, 0) ---------------------------------------------------- local m = Instance.new("Model") m.Name = "RightArm" p1 = Instance.new("WedgePart", m) p1.BrickColor = BrickColor.new("Bright blue") p1.Material = Enum.Material.Neon p1.Name = "Wedge" p1.FormFactor = Enum.FormFactor.Custom p1.Size = Vector3.new(1, 1.19999981, 3.30000019) p1.CFrame = CFrame.new(71.7528229, 9.08148766, -13.7657108, 2.20961255e-007, -0.422704399, -0.906498253, -1.70178805e-006, -0.906287491, 0.422612786, -1.00018191, -1.16194826e-006, 2.39246219e-006) p1.CanCollide = false p1.Locked = true p1.TopSurface = Enum.SurfaceType.Smooth b1 = Instance.new("SpecialMesh", p1) b1.MeshType = Enum.MeshType.Wedge b1.Name = "Mesh" b1.Scale = Vector3.new(0.200000003, 1, 1) p2 = Instance.new("WedgePart", m) p2.BrickColor = BrickColor.new("Bright blue") p2.Material = Enum.Material.Neon p2.Name = "Wedge" p2.FormFactor = Enum.FormFactor.Custom p2.Size = Vector3.new(1, 1.19999981, 3.30000019) p2.CFrame = CFrame.new(71.7534714, 9.08147335, -12.5655851, 3.25293399e-007, -0.422708124, -0.906506479, -1.7167032e-006, -0.906286299, 0.422612339, -1.0001893, -1.13135729e-006, 2.49332743e-006) p2.CanCollide = false p2.Locked = true p2.TopSurface = Enum.SurfaceType.Smooth b2 = Instance.new("SpecialMesh", p2) b2.MeshType = Enum.MeshType.Wedge b2.Name = "Mesh" b2.Scale = Vector3.new(0.200000003, 1, 1) p3 = Instance.new("WedgePart", m) p3.BrickColor = BrickColor.new("Bright blue") p3.Material = Enum.Material.Neon p3.Name = "Wedge" p3.FormFactor = Enum.FormFactor.Custom p3.Size = Vector3.new(1, 1.19999981, 3.30000019) p3.CFrame = CFrame.new(71.7541199, 9.08145237, -13.1658068, 4.29627249e-007, -0.422711849, -0.906514704, -1.73161834e-006, -0.906285107, 0.422611892, -1.0001967, -1.10076587e-006, 2.59419403e-006) p3.CanCollide = false p3.Locked = true p3.TopSurface = Enum.SurfaceType.Smooth b3 = Instance.new("SpecialMesh", p3) b3.MeshType = Enum.MeshType.Wedge b3.Name = "Mesh" b3.Scale = Vector3.new(0.200000003, 1, 1) p4 = Instance.new("WedgePart", m) p4.BrickColor = BrickColor.new("Bright blue") p4.Material = Enum.Material.Neon p4.Name = "Wedge" p4.FormFactor = Enum.FormFactor.Custom p4.Size = Vector3.new(1, 1.19999981, 4) p4.CFrame = CFrame.new(71.4245453, 8.39948177, -13.7660398, -5.32960883e-007, 0.70726943, -0.707265258, 1.90324067e-006, 0.707083881, 0.707096815, 1.0001967, 9.87842554e-008, 2.61978244e-006) p4.CanCollide = false p4.Locked = true p4.TopSurface = Enum.SurfaceType.Smooth b4 = Instance.new("SpecialMesh", p4) b4.MeshType = Enum.MeshType.Wedge b4.Name = "Mesh" b4.Scale = Vector3.new(0.200000003, 1, 1) p5 = Instance.new("WedgePart", m) p5.BrickColor = BrickColor.new("Bright blue") p5.Material = Enum.Material.Neon p5.Name = "Wedge" p5.FormFactor = Enum.FormFactor.Custom p5.Size = Vector3.new(1, 1.19999981, 4) p5.CFrame = CFrame.new(71.4251862, 8.39946651, -13.1660223, -6.3729243e-007, 0.707273066, -0.707261622, 1.91814229e-006, 0.707080245, 0.707100451, 1.0001967, 1.62003985e-007, 2.53547341e-006) p5.CanCollide = false p5.Locked = true p5.TopSurface = Enum.SurfaceType.Smooth b5 = Instance.new("SpecialMesh", p5) b5.MeshType = Enum.MeshType.Wedge b5.Name = "Mesh" b5.Scale = Vector3.new(0.200000003, 1, 1) p6 = Instance.new("WedgePart", m) p6.BrickColor = BrickColor.new("Bright blue") p6.Material = Enum.Material.Neon p6.Name = "Wedge" p6.FormFactor = Enum.FormFactor.Custom p6.Size = Vector3.new(1, 1.19999981, 4) p6.CFrame = CFrame.new(71.4258194, 8.39945126, -12.5660009, -7.41623865e-007, 0.707276702, -0.707257986, 1.93304436e-006, 0.707076609, 0.707104087, 1.0001967, 2.25224142e-007, 2.45116462e-006) p6.CanCollide = false p6.Locked = true p6.TopSurface = Enum.SurfaceType.Smooth b6 = Instance.new("SpecialMesh", p6) b6.MeshType = Enum.MeshType.Wedge b6.Name = "Mesh" b6.Scale = Vector3.new(0.200000003, 1, 1) p7 = Instance.new("Part", m) p7.BrickColor = BrickColor.new("Really black") p7.Material = Enum.Material.Neon p7.FormFactor = Enum.FormFactor.Custom p7.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p7.CFrame = CFrame.new(70.3255081, 6.6994977, -14.2663507, 1.00023162, 1.31726265e-005, -7.92685455e-007, -1.94311142e-005, 0.999976158, 1.97985287e-006, -1.62725564e-006, 1.86058458e-006, 1.00020039) p7.CanCollide = false p7.Locked = true p7.BottomSurface = Enum.SurfaceType.Smooth p7.TopSurface = Enum.SurfaceType.Smooth b7 = Instance.new("SpecialMesh", p7) b7.MeshType = Enum.MeshType.Sphere b7.Name = "Mesh" p8 = Instance.new("Part", m) p8.BrickColor = BrickColor.new("Bright blue") p8.Material = Enum.Material.Neon p8.FormFactor = Enum.FormFactor.Custom p8.Size = Vector3.new(0.200000048, 0.999999881, 0.200000048) p8.CFrame = CFrame.new(70.0060196, 9.16293144, -14.2664633, 0.881308079, -0.429463804, -0.198316693, 0.401435703, 0.900625467, -0.166355878, 0.250050306, 0.0670034215, 0.966122985) p8.CanCollide = false p8.Locked = true p8.BottomSurface = Enum.SurfaceType.Smooth p8.TopSurface = Enum.SurfaceType.Smooth p9 = Instance.new("Part", m) p9.BrickColor = BrickColor.new("Really black") p9.Material = Enum.Material.Neon p9.FormFactor = Enum.FormFactor.Custom p9.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p9.CFrame = CFrame.new(70.2268219, 8.59942532, -14.2665701, 1.00024557, 1.30422413e-005, -8.7916851e-007, -1.95577741e-005, 0.999974489, 1.9967556e-006, -1.75833702e-006, 2.01165676e-006, 1.00021148) p9.CanCollide = false p9.Locked = true p9.BottomSurface = Enum.SurfaceType.Smooth p9.TopSurface = Enum.SurfaceType.Smooth b8 = Instance.new("SpecialMesh", p9) b8.MeshType = Enum.MeshType.Sphere b8.Name = "Mesh" p10 = Instance.new("Part", m) p10.BrickColor = BrickColor.new("Really black") p10.Material = Enum.Material.Neon p10.FormFactor = Enum.FormFactor.Custom p10.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p10.CFrame = CFrame.new(69.8274002, 9.5993948, -14.266675, 1.00025487, 1.30049675e-005, -9.23888138e-007, -1.9595207e-005, 0.999973536, 2.11597762e-006, -1.80306665e-006, 2.13088947e-006, 1.00021887) p10.CanCollide = false p10.Locked = true p10.BottomSurface = Enum.SurfaceType.Smooth p10.TopSurface = Enum.SurfaceType.Smooth b9 = Instance.new("SpecialMesh", p10) b9.MeshType = Enum.MeshType.Sphere b9.Name = "Mesh" p11 = Instance.new("Part", m) p11.BrickColor = BrickColor.new("Bright blue") p11.Material = Enum.Material.Neon p11.FormFactor = Enum.FormFactor.Custom p11.Size = Vector3.new(0.200000048, 1.79999983, 0.200000048) p11.CFrame = CFrame.new(69.693718, 7.37976837, -14.2265854, 0.690841019, -0.711695194, -0.129447505, 0.678571701, 0.699464202, -0.224133074, 0.250056893, 0.0670053288, 0.966144204) p11.CanCollide = false p11.Locked = true p11.BottomSurface = Enum.SurfaceType.Smooth p11.TopSurface = Enum.SurfaceType.Smooth p12 = Instance.new("Part", m) p12.BrickColor = BrickColor.new("Bright blue") p12.Material = Enum.Material.Neon p12.FormFactor = Enum.FormFactor.Custom p12.Size = Vector3.new(0.200000048, 1.5999999, 0.200000048) p12.CFrame = CFrame.new(69.47966, 8.73308277, -14.2467909, 0.176576898, -0.984305978, 0.022559464, 0.951990068, 0.164877579, -0.257825077, 0.25006038, 0.0670051575, 0.966151059) p12.CanCollide = false p12.Locked = true p12.BottomSurface = Enum.SurfaceType.Smooth p12.TopSurface = Enum.SurfaceType.Smooth p13 = Instance.new("Part", m) p13.BrickColor = BrickColor.new("Bright blue") p13.Material = Enum.Material.Neon p13.FormFactor = Enum.FormFactor.Custom p13.Size = Vector3.new(1.5, 1.5, 1.5) p13.CFrame = CFrame.new(69.3920746, 10.1993351, -13.2118578, 1.00028241, 1.27716921e-005, -1.06170774e-006, -1.99186616e-005, 0.999970496, 2.39908695e-006, -1.93528831e-006, 2.38418579e-006, 1.00024128) p13.CanCollide = false p13.Locked = true p13.BottomSurface = Enum.SurfaceType.Smooth p13.TopSurface = Enum.SurfaceType.Smooth b10 = Instance.new("SpecialMesh", p13) b10.MeshType = Enum.MeshType.Sphere b10.Name = "Mesh" p14 = Instance.new("Part", m) p14.BrickColor = BrickColor.new("Really black") p14.Material = Enum.Material.Metal p14.Name = "Main" p14.FormFactor = Enum.FormFactor.Custom p14.Size = Vector3.new(2.20000005, 4.19999981, 2.20000005) p14.CFrame = CFrame.new(69.4298401, 8.19937706, -13.1668339, 1.00029147, 1.25630004e-005, -1.16605349e-006, -2.0008245e-005, 0.999969125, 2.41400744e-006, -2.03963987e-006, 2.39908786e-006, 1.00024867) p14.CanCollide = false p14.Locked = true p14.BottomSurface = Enum.SurfaceType.Smooth p14.TopSurface = Enum.SurfaceType.Smooth p15 = Instance.new("Part", m) p15.BrickColor = BrickColor.new("Really black") p15.Material = Enum.Material.Neon p15.FormFactor = Enum.FormFactor.Custom p15.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p15.CFrame = CFrame.new(69.1303406, 7.89936399, -14.2672224, 1.00030053, 1.24437429e-005, -1.24804228e-006, -2.02170359e-005, 0.999968052, 2.45872889e-006, -2.07692119e-006, 2.48851507e-006, 1.00025606) p15.CanCollide = false p15.Locked = true p15.BottomSurface = Enum.SurfaceType.Smooth p15.TopSurface = Enum.SurfaceType.Smooth b11 = Instance.new("SpecialMesh", p15) b11.MeshType = Enum.MeshType.Sphere b11.Name = "Mesh" p16 = Instance.new("Part", m) p16.BrickColor = BrickColor.new("Bright blue") p16.Material = Enum.Material.Neon p16.FormFactor = Enum.FormFactor.Custom p16.Size = Vector3.new(0.200000048, 0.899999857, 0.200000048) p16.CFrame = CFrame.new(68.9101486, 8.4345789, -14.2572756, 0.881372392, -0.429496199, -0.198331535, 0.401431859, 0.900618315, -0.166353673, 0.250065029, 0.0670081601, 0.966180325) p16.CanCollide = false p16.Locked = true p16.BottomSurface = Enum.SurfaceType.Smooth p16.TopSurface = Enum.SurfaceType.Smooth p17 = Instance.new("Part", m) p17.BrickColor = BrickColor.new("Bright blue") p17.Material = Enum.Material.Neon p17.FormFactor = Enum.FormFactor.Custom p17.Size = Vector3.new(0.200000048, 0.599999785, 0.200000048) p17.CFrame = CFrame.new(68.8972092, 7.71862125, -14.2674294, -0.70732069, -0.707330942, -1.25169754e-006, 0.707094371, -0.707072854, 2.48849392e-006, 3.42912972e-006, -4.32133675e-007, 1.00026357) p17.CanCollide = false p17.Locked = true p17.BottomSurface = Enum.SurfaceType.Smooth p17.TopSurface = Enum.SurfaceType.Smooth p18 = Instance.new("Part", m) p18.BrickColor = BrickColor.new("Really black") p18.Material = Enum.Material.Neon p18.FormFactor = Enum.FormFactor.Custom p18.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p18.CFrame = CFrame.new(68.6320877, 8.89929676, -14.2675419, 1.000319, 7.09295273e-006, -1.29642399e-006, -1.53779984e-005, 0.999966145, 2.53321537e-006, -2.20864695e-006, 2.76013293e-006, 1.00027096) p18.CanCollide = false p18.Locked = true p18.BottomSurface = Enum.SurfaceType.Smooth p18.TopSurface = Enum.SurfaceType.Smooth b12 = Instance.new("SpecialMesh", p18) b12.MeshType = Enum.MeshType.Sphere b12.Name = "Mesh" p19 = Instance.new("Part", m) p19.BrickColor = BrickColor.new("Really black") p19.Material = Enum.Material.Neon p19.FormFactor = Enum.FormFactor.Custom p19.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p19.CFrame = CFrame.new(68.6320801, 7.49934578, -14.2675457, 1.00032365, 7.02587113e-006, -1.41567671e-006, -1.53780693e-005, 0.999965429, 2.48852461e-006, -2.20865695e-006, 2.76013111e-006, 1.00027466) p19.CanCollide = false p19.Locked = true p19.BottomSurface = Enum.SurfaceType.Smooth p19.TopSurface = Enum.SurfaceType.Smooth b13 = Instance.new("SpecialMesh", p19) b13.MeshType = Enum.MeshType.Sphere b13.Name = "Mesh" w1 = Instance.new("Weld", p1) w1.Name = "Wedge_Weld" w1.Part0 = p1 w1.C0 = CFrame.new(-13.7623348, 36.7341995, 62.0193214, 9.89621753e-008, 1.14119814e-007, -1.0000037, -0.422620028, -0.90630722, -1.14673988e-007, -0.906311929, 0.422617972, 5.9372038e-008) w1.Part1 = p2 w1.C1 = CFrame.new(-12.5623264, 36.7342033, 62.0193214, 9.89621753e-008, 1.14119814e-007, -1.0000037, -0.422620028, -0.90630722, -1.14673988e-007, -0.906311929, 0.422617972, 5.93720344e-008) w2 = Instance.new("Weld", p2) w2.Name = "Wedge_Weld" w2.Part0 = p2 w2.C0 = CFrame.new(-12.5623264, 36.7342033, 62.0193214, 9.89621753e-008, 1.14119814e-007, -1.0000037, -0.422620028, -0.90630722, -1.14673988e-007, -0.906311929, 0.422617972, 5.93720344e-008) w2.Part1 = p3 w2.C1 = CFrame.new(-13.1623297, 36.7342033, 62.0193214, 9.89621753e-008, 1.14119814e-007, -1.0000037, -0.422620028, -0.90630722, -1.14673988e-007, -0.906311929, 0.422617972, 5.93720415e-008) w3 = Instance.new("Weld", p3) w3.Name = "Wedge_Weld" w3.Part0 = p3 w3.C0 = CFrame.new(-13.1623297, 36.7342033, 62.0193214, 9.89621753e-008, 1.14119814e-007, -1.0000037, -0.422620028, -0.90630722, -1.14673988e-007, -0.906311929, 0.422617972, 5.93720415e-008) w3.Part1 = p4 w3.C1 = CFrame.new(13.7623348, -55.015049, 45.9640198, -9.79639907e-008, 4.26051052e-008, 1.0000037, 0.707110107, 0.707106173, -2.40756872e-008, -0.707109869, 0.707106531, -1.51036286e-008) w4 = Instance.new("Weld", p4) w4.Name = "Wedge_Weld" w4.Part0 = p4 w4.C0 = CFrame.new(13.7623348, -55.015049, 45.9640198, -9.79639907e-008, 4.26051052e-008, 1.0000037, 0.707110107, 0.707106173, -2.40756872e-008, -0.707109869, 0.707106531, -1.51036286e-008) w4.Part1 = p5 w4.C1 = CFrame.new(13.1623316, -55.0150452, 45.964016, -9.79639907e-008, 4.26051088e-008, 1.0000037, 0.707110107, 0.707106173, -2.40756837e-008, -0.707109869, 0.707106531, -1.51036286e-008) w5 = Instance.new("Weld", p5) w5.Name = "Wedge_Weld" w5.Part0 = p5 w5.C0 = CFrame.new(13.1623316, -55.0150452, 45.964016, -9.79639907e-008, 4.26051088e-008, 1.0000037, 0.707110107, 0.707106173, -2.40756837e-008, -0.707109869, 0.707106531, -1.51036286e-008) w5.Part1 = p6 w5.C1 = CFrame.new(12.5623283, -55.0150337, 45.9640045, -9.79639836e-008, 4.2605091e-008, 1.0000037, 0.707110107, 0.707106173, -2.40756819e-008, -0.707109869, 0.707106531, -1.51036659e-008) w6 = Instance.new("Weld", p6) w6.Name = "Part_Weld" w6.Part0 = p6 w6.C0 = CFrame.new(12.5623283, -55.0150337, 45.9640045, -9.79639836e-008, 4.2605091e-008, 1.0000037, 0.707110107, 0.707106173, -2.40756819e-008, -0.707109869, 0.707106531, -1.51036659e-008) w6.Part1 = p7 w6.C1 = CFrame.new(-70.3026047, -4.700037, 14.2622862, 1, -1.41560378e-007, 4.47034942e-008, 1.41560378e-007, 1, -7.45055218e-008, -4.47034836e-008, 7.45055289e-008, 1) w7 = Instance.new("Weld", p7) w7.Name = "Part_Weld" w7.Part0 = p7 w7.C0 = CFrame.new(-70.3026047, -4.700037, 14.2622862, 1, -1.41560378e-007, 4.47034942e-008, 1.41560378e-007, 1, -7.45055218e-008, -4.47034836e-008, 7.45055289e-008, 1) w7.Part1 = p8 w7.C1 = CFrame.new(-60.9718094, 24.5524559, 28.8434105, 0.881098926, 0.40146178, 0.250000894, -0.429376036, 0.900638521, 0.0669875294, -0.198267892, -0.166365504, 0.965929449) w8 = Instance.new("Weld", p8) w8.Name = "Part_Weld" w8.Part0 = p8 w8.C0 = CFrame.new(-60.9718094, 24.5524559, 28.8434105, 0.881098926, 0.40146178, 0.250000894, -0.429376036, 0.900638521, 0.0669875294, -0.198267892, -0.166365504, 0.965929449) w8.Part1 = p9 w8.C1 = CFrame.new(-70.2029343, -6.60003233, 14.2623386, 1.00000465, -1.78813934e-007, 0, 1.41561031e-007, 0.999999523, 4.47034836e-008, -4.47034836e-008, 7.4505806e-008, 1.0000037) w9 = Instance.new("Weld", p9) w9.Name = "Part_Weld" w9.Part0 = p9 w9.C0 = CFrame.new(-70.2029343, -6.60003233, 14.2623386, 1.00000465, -1.78813934e-007, 0, 1.41561031e-007, 0.999999523, 4.47034836e-008, -4.47034836e-008, 7.4505806e-008, 1.0000037) w9.Part1 = p10 w9.C1 = CFrame.new(-69.8029404, -7.60003138, 14.2623386, 1.00000465, -1.78813934e-007, 0, 1.41561031e-007, 0.999999523, 4.47034836e-008, -4.47034836e-008, 7.4505806e-008, 1.0000037) w10 = Instance.new("Weld", p10) w10.Name = "Part_Weld" w10.Part0 = p10 w10.C0 = CFrame.new(-69.8029404, -7.60003138, 14.2623386, 1.00000465, -1.78813934e-007, 0, 1.41561031e-007, 0.999999523, 4.47034836e-008, -4.47034836e-008, 7.4505806e-008, 1.0000037) w10.Part1 = p11 w10.C1 = CFrame.new(-48.2122765, 46.7597122, 23.9593029, 0.690653324, 0.678602815, 0.250001013, -0.711519539, 0.699469149, 0.0669875666, -0.129410163, -0.224143714, 0.965929449) w11 = Instance.new("Weld", p11) w11.Name = "Part_Weld" w11.Part0 = p11 w11.C0 = CFrame.new(-48.2122765, 46.7597122, 23.9593029, 0.690653324, 0.678602815, 0.250001013, -0.711519539, 0.699469149, 0.0669875666, -0.129410163, -0.224143714, 0.965929449) w11.Part1 = p12 w11.C1 = CFrame.new(-15.1098747, 68.1893845, 13.9264202, 0.176517636, 0.952019334, 0.250000954, -0.984043717, 0.164862752, 0.0669875368, 0.0225575883, -0.257833987, 0.965929389) w12 = Instance.new("Weld", p12) w12.Name = "Part_Weld" w12.Part0 = p12 w12.C0 = CFrame.new(-15.1098747, 68.1893845, 13.9264202, 0.176517636, 0.952019334, 0.250000954, -0.984043717, 0.164862752, 0.0669875368, 0.0225575883, -0.257833987, 0.965929389) w12.Part1 = p13 w12.C1 = CFrame.new(-69.3658066, -8.20003605, 13.2074509, 1.00000453, -2.98023224e-007, -3.72529421e-008, 1.49011612e-007, 0.999999285, -1.49011443e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w13 = Instance.new("Weld", p13) w13.Name = "Part_Weld" w13.Part0 = p13 w13.C0 = CFrame.new(-69.3658066, -8.20003605, 13.2074509, 1.00000453, -2.98023224e-007, -3.72529421e-008, 1.49011612e-007, 0.999999285, -1.49011443e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w13.Part1 = p14 w13.C1 = CFrame.new(-69.4029617, -6.2000351, 13.1623278, 1.00000453, -2.38418579e-007, -3.72529456e-008, 8.94069672e-008, 0.999999344, -1.49011452e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w14 = Instance.new("Weld", p14) w14.Name = "Part_Weld" w14.Part0 = p14 w14.C0 = CFrame.new(-69.4029617, -6.2000351, 13.1623278, 1.00000453, -2.38418579e-007, -3.72529456e-008, 8.94069672e-008, 0.999999344, -1.49011452e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w14.Part1 = p15 w14.C1 = CFrame.new(-69.1029282, -5.90003109, 14.2623358, 1.00000453, -2.98023224e-007, 2.98023188e-008, 1.1920929e-007, 0.999999583, 5.96046412e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w15 = Instance.new("Weld", p15) w15.Name = "Part_Weld" w15.Part0 = p15 w15.C0 = CFrame.new(-69.1029282, -5.90003109, 14.2623358, 1.00000453, -2.98023224e-007, 2.98023188e-008, 1.1920929e-007, 0.999999583, 5.96046412e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w15.Part1 = p16 w15.C1 = CFrame.new(-59.7121582, 24.7350845, 28.4943123, 0.881098986, 0.401461899, 0.250000954, -0.429376066, 0.90063864, 0.0669875517, -0.198267847, -0.166365474, 0.965929389) w16 = Instance.new("Weld", p16) w16.Name = "Part_Weld" w16.Part0 = p16 w16.C0 = CFrame.new(-59.7121582, 24.7350845, 28.4943123, 0.881098986, 0.401461899, 0.250000954, -0.429376066, 0.90063864, 0.0669875517, -0.198267847, -0.166365474, 0.965929389) w16.Part1 = p17 w16.C1 = CFrame.new(44.6532936, 52.7416191, 14.2623348, -0.707109928, 0.707106709, 2.10734257e-008, -0.707110047, -0.707106292, -6.32202699e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w17 = Instance.new("Weld", p17) w17.Name = "Part_Weld" w17.Part0 = p17 w17.C0 = CFrame.new(44.6532936, 52.7416191, 14.2623348, -0.707109928, 0.707106709, 2.10734257e-008, -0.707110047, -0.707106292, -6.32202699e-008, -4.47034836e-008, 5.96046448e-008, 1.0000037) w17.Part1 = p18 w17.C1 = CFrame.new(-68.6029282, -6.90003586, 14.2623405, 1.00000465, -2.30967999e-007, -4.47034836e-008, 1.63912773e-007, 0.999999285, -2.98023224e-008, -7.4505806e-008, -1.49011612e-008, 1.0000037) w18 = Instance.new("Weld", p18) w18.Name = "Part_Weld" w18.Part0 = p18 w18.C0 = CFrame.new(-68.6029282, -6.90003586, 14.2623405, 1.00000465, -2.30967999e-007, -4.47034836e-008, 1.63912773e-007, 0.999999285, -2.98023224e-008, -7.4505806e-008, -1.49011612e-008, 1.0000037) w18.Part1 = p19 w18.C1 = CFrame.new(-68.6026077, -5.50004053, 14.2622881, 1, -1.63912006e-007, 7.4505806e-008, 1.63912006e-007, 1, 1.49011186e-008, -7.4505806e-008, -1.49011061e-008, 1) w19 = Instance.new("Weld", p19) w19.Name = "Wedge_Weld" w19.Part0 = p19 w19.C0 = CFrame.new(-68.6026077, -5.50004053, 14.2622881, 1, -1.63912006e-007, 7.4505806e-008, 1.63912006e-007, 1, 1.49011186e-008, -7.4505806e-008, -1.49011061e-008, 1) m.Parent = rarm m:MakeJoints() ---------------------------------------------------- local cor4 = Instance.new("Part", rarm.RightArm) cor4.Name = "Thingy" cor4.Locked = true cor4.BottomSurface = 0 cor4.CanCollide = false cor4.Size = Vector3.new(2, 1, 1) cor4.Transparency = 1 cor4.TopSurface = 0 corw2 = Instance.new("Weld", cor4) corw2.Part0 = rarm corw2.Part1 = cor4 corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) corw2.C1 = CFrame.new(0, 0, 0) weld2 = Instance.new("Weld", rarm.RightArm) weld2.Part0 = cor4 weld2.Part1 = p14 weld2.C0 = CFrame.new(0, 0, 0) ---------------------------------------------------- local m = Instance.new("Model") m.Name = "Torso" p1 = Instance.new("Part", m) p1.BrickColor = BrickColor.new("Really black") p1.Material = Enum.Material.Neon p1.FormFactor = Enum.FormFactor.Custom p1.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p1.CFrame = CFrame.new(67.3119202, 9.5997963, -14.263937, 1.00006402, 1.86259939e-007, 2.23464554e-008, -1.44914884e-006, 0.999991, -1.49014099e-008, -1.51248571e-006, 5.96053269e-008, 1.00005186) p1.CanCollide = false p1.Locked = true p1.BottomSurface = Enum.SurfaceType.Smooth p1.TopSurface = Enum.SurfaceType.Smooth b1 = Instance.new("SpecialMesh", p1) b1.MeshType = Enum.MeshType.Sphere b1.Name = "Mesh" p2 = Instance.new("Part", m) p2.BrickColor = BrickColor.new("Really black") p2.Material = Enum.Material.Neon p2.FormFactor = Enum.FormFactor.Custom p2.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p2.CFrame = CFrame.new(65.0111618, 9.59981537, -14.2638226, 1.00005496, 2.75671482e-007, 1.2665987e-007, -1.35973096e-006, 0.999992192, -2.98023224e-008, -1.40815973e-006, 4.47034836e-008, 1.00004447) p2.CanCollide = false p2.Locked = true p2.BottomSurface = Enum.SurfaceType.Smooth p2.TopSurface = Enum.SurfaceType.Smooth b2 = Instance.new("SpecialMesh", p2) b2.MeshType = Enum.MeshType.Sphere b2.Name = "Mesh" p3 = Instance.new("Part", m) p3.BrickColor = BrickColor.new("Bright blue") p3.Material = Enum.Material.Neon p3.FormFactor = Enum.FormFactor.Custom p3.Size = Vector3.new(0.200000048, 0.799999833, 0.200000048) p3.CFrame = CFrame.new(67.6028595, 9.39744663, -14.2168236, 0.491504252, -0.868347466, -0.0669902489, 0.834227681, 0.491479307, -0.249998316, 0.250008702, 0.0669909269, 0.965961695) p3.CanCollide = false p3.Locked = true p3.BottomSurface = Enum.SurfaceType.Smooth p3.TopSurface = Enum.SurfaceType.Smooth p4 = Instance.new("Part", m) p4.BrickColor = BrickColor.new("Bright blue") p4.Material = Enum.Material.Neon p4.FormFactor = Enum.FormFactor.Custom p4.Size = Vector3.new(0.200000048, 1.19999981, 0.200000048) p4.CFrame = CFrame.new(64.6849442, 9.10655022, -14.2635975, 0.866056859, 0.500018656, 3.35280106e-007, -0.49999845, 0.866020203, -2.98035943e-008, -1.06866298e-006, -5.48167122e-007, 1.00002968) p4.CanCollide = false p4.Locked = true p4.BottomSurface = Enum.SurfaceType.Smooth p4.TopSurface = Enum.SurfaceType.Smooth p5 = Instance.new("Part", m) p5.BrickColor = BrickColor.new("Bright blue") p5.Material = Enum.Material.Neon p5.FormFactor = Enum.FormFactor.Custom p5.Size = Vector3.new(0.200000048, 1.29999983, 0.200000048) p5.CFrame = CFrame.new(66.9344177, 8.96636868, -14.2634897, -0.866048932, -0.500014246, 4.3958832e-007, 0.499999046, -0.866021395, -4.47044108e-008, 9.70867745e-007, 5.08911796e-007, 1.00002229) p5.CanCollide = false p5.Locked = true p5.BottomSurface = Enum.SurfaceType.Smooth p5.TopSurface = Enum.SurfaceType.Smooth p6 = Instance.new("Part", m) p6.BrickColor = BrickColor.new("Bright blue") p6.Material = Enum.Material.Neon p6.FormFactor = Enum.FormFactor.Custom p6.Size = Vector3.new(0.200000048, 1.29999983, 0.200000048) p6.CFrame = CFrame.new(65.358757, 9.04366112, -14.2633762, -0.866041601, 0.500008702, 5.43894771e-007, -0.499997824, -0.8660236, -5.96051208e-008, 8.43271948e-007, -5.21275751e-007, 1.0000149) p6.CanCollide = false p6.Locked = true p6.BottomSurface = Enum.SurfaceType.Smooth p6.TopSurface = Enum.SurfaceType.Smooth p7 = Instance.new("Part", m) p7.BrickColor = BrickColor.new("Really black") p7.Material = Enum.Material.Neon p7.FormFactor = Enum.FormFactor.Custom p7.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p7.CFrame = CFrame.new(68.0082169, 9.19989014, -14.2632694, 1.00001383, 6.37024641e-007, 5.36441803e-007, -9.46223736e-007, 0.999997973, -1.04308121e-007, -8.7916851e-007, 5.96046519e-008, 1.00001121) p7.CanCollide = false p7.Locked = true p7.BottomSurface = Enum.SurfaceType.Smooth p7.TopSurface = Enum.SurfaceType.Smooth b3 = Instance.new("SpecialMesh", p7) b3.MeshType = Enum.MeshType.Sphere b3.Name = "Mesh" p8 = Instance.new("Part", m) p8.BrickColor = BrickColor.new("Really black") p8.Material = Enum.Material.Neon p8.FormFactor = Enum.FormFactor.Custom p8.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p8.CFrame = CFrame.new(64.4081497, 8.59989357, -14.2632627, 1.00001383, 5.32715489e-007, 5.6624458e-007, -8.4191629e-007, 0.999997973, -2.980277e-008, -9.08971174e-007, -1.4901623e-008, 1.00001121) p8.CanCollide = false p8.Locked = true p8.BottomSurface = Enum.SurfaceType.Smooth p8.TopSurface = Enum.SurfaceType.Smooth b4 = Instance.new("SpecialMesh", p8) b4.MeshType = Enum.MeshType.Sphere b4.Name = "Mesh" p9 = Instance.new("Part", m) p9.BrickColor = BrickColor.new("Really black") p9.Material = Enum.Material.Neon p9.FormFactor = Enum.FormFactor.Custom p9.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p9.CFrame = CFrame.new(67.8082123, 8.49989128, -14.2632694, 1.00001383, 6.37024641e-007, 5.36441803e-007, -9.46223736e-007, 0.999997973, -1.04308128e-007, -8.7916851e-007, 5.96046448e-008, 1.00001121) p9.CanCollide = false p9.Locked = true p9.BottomSurface = Enum.SurfaceType.Smooth p9.TopSurface = Enum.SurfaceType.Smooth b5 = Instance.new("SpecialMesh", p9) b5.MeshType = Enum.MeshType.Sphere b5.Name = "Mesh" p10 = Instance.new("Part", m) p10.BrickColor = BrickColor.new("Bright blue") p10.Material = Enum.Material.Neon p10.FormFactor = Enum.FormFactor.Custom p10.Size = Vector3.new(0.200000048, 0.999999821, 0.200000048) p10.CFrame = CFrame.new(67.3000946, 8.34052181, -14.1962805, -0.323144197, -0.934642911, 0.148454338, 0.912730813, -0.349243045, -0.212012067, 0.250002205, 0.0669885725, 0.965932906) p10.CanCollide = false p10.Locked = true p10.BottomSurface = Enum.SurfaceType.Smooth p10.TopSurface = Enum.SurfaceType.Smooth p11 = Instance.new("Part", m) p11.BrickColor = BrickColor.new("Really black") p11.Material = Enum.Material.Metal p11.Name = "Main" p11.FormFactor = Enum.FormFactor.Custom p11.Size = Vector3.new(4.4000001, 4.19999981, 2.20000005) p11.CFrame = CFrame.new(66.1075974, 8.19991207, -13.1631384, 1, 7.67355459e-007, 7.5990539e-007, -7.67355459e-007, 1, -2.98022478e-008, -7.5990539e-007, 2.98016651e-008, 1) p11.CanCollide = false p11.Locked = true p11.BottomSurface = Enum.SurfaceType.Smooth p11.TopSurface = Enum.SurfaceType.Smooth p12 = Instance.new("Part", m) p12.BrickColor = BrickColor.new("Really black") p12.Material = Enum.Material.Neon p12.FormFactor = Enum.FormFactor.Custom p12.Size = Vector3.new(3, 3, 2) p12.CFrame = CFrame.new(66.1075974, 8.19991302, -13.5631437, 1.00000453, 6.48145658e-007, 6.55599706e-007, -7.97160624e-007, 0.999999344, -1.49012251e-008, -7.5990863e-007, 2.98017362e-008, 1.0000037) p12.CanCollide = false p12.Locked = true p12.BottomSurface = Enum.SurfaceType.Smooth p12.TopSurface = Enum.SurfaceType.Smooth b6 = Instance.new("SpecialMesh", p12) b6.MeshType = Enum.MeshType.Sphere b6.Name = "Mesh" p13 = Instance.new("Part", m) p13.BrickColor = BrickColor.new("Bright blue") p13.Material = Enum.Material.Neon p13.FormFactor = Enum.FormFactor.Custom p13.Size = Vector3.new(0.200000048, 3.79999971, 0.200000048) p13.CFrame = CFrame.new(66.1331863, 7.82621098, -12.0632286, 6.04434092e-007, -1.00000906, 6.55602378e-007, 0.999998689, 8.72662156e-007, -1.49012802e-008, 4.47028583e-008, 8.64220965e-007, 1.00000739) p13.CanCollide = false p13.Locked = true p13.BottomSurface = Enum.SurfaceType.Smooth p13.TopSurface = Enum.SurfaceType.Smooth p14 = Instance.new("Part", m) p14.BrickColor = BrickColor.new("Bright blue") p14.Material = Enum.Material.Neon p14.FormFactor = Enum.FormFactor.Custom p14.Size = Vector3.new(0.200000048, 3.99999976, 0.200000048) p14.CFrame = CFrame.new(65.0837555, 8.11279583, -12.0633221, 0.866040885, 0.500009477, 5.5129766e-007, -0.499999583, 0.866022587, -2.09610107e-013, -8.68580742e-007, -4.3265041e-007, 1.00001478) p14.CanCollide = false p14.Locked = true p14.BottomSurface = Enum.SurfaceType.Smooth p14.TopSurface = Enum.SurfaceType.Smooth p15 = Instance.new("Part", m) p15.BrickColor = BrickColor.new("Bright blue") p15.Material = Enum.Material.Neon p15.FormFactor = Enum.FormFactor.Custom p15.Size = Vector3.new(0.200000048, 3.99999976, 0.200000048) p15.CFrame = CFrame.new(67.0844116, 8.11277008, -12.0634222, 0.866049111, -0.500013351, 4.46991237e-007, 0.49999693, 0.866022587, 1.49009658e-008, -8.91868751e-007, 6.00952262e-007, 1.00002217) p15.CanCollide = false p15.Locked = true p15.BottomSurface = Enum.SurfaceType.Smooth p15.TopSurface = Enum.SurfaceType.Smooth p16 = Instance.new("Part", m) p16.BrickColor = BrickColor.new("Bright blue") p16.Material = Enum.Material.Neon p16.FormFactor = Enum.FormFactor.Custom p16.Size = Vector3.new(0.200000048, 1.19999969, 0.200000048) p16.CFrame = CFrame.new(65.484314, 7.30655766, -14.2634888, 0.906336308, 0.422632158, 3.49386681e-007, -0.422617853, 0.906302929, 2.46360354e-008, -1.01209048e-006, -3.84037776e-007, 1.00002587) p16.CanCollide = false p16.Locked = true p16.BottomSurface = Enum.SurfaceType.Smooth p16.TopSurface = Enum.SurfaceType.Smooth p17 = Instance.new("Part", m) p17.BrickColor = BrickColor.new("Bright blue") p17.Material = Enum.Material.Neon p17.FormFactor = Enum.FormFactor.Custom p17.Size = Vector3.new(0.200000048, 1.89999986, 0.200000048) p17.CFrame = CFrame.new(67.1100159, 7.10342312, -14.2635927, 0.866056919, -0.50001812, 3.65035532e-007, 0.499996245, 0.866021872, 5.96044032e-008, -8.79435504e-007, 6.97014912e-007, 1.00002956) p17.CanCollide = false p17.Locked = true p17.BottomSurface = Enum.SurfaceType.Smooth p17.TopSurface = Enum.SurfaceType.Smooth p18 = Instance.new("Part", m) p18.BrickColor = BrickColor.new("Bright blue") p18.Material = Enum.Material.Neon p18.FormFactor = Enum.FormFactor.Custom p18.Size = Vector3.new(0.200000048, 1.19999981, 0.200000048) p18.CFrame = CFrame.new(65.6104889, 7.05342484, -14.2637053, -0.707138717, -0.707138956, 3.36865924e-007, 0.707104087, -0.707101464, 1.4901164e-007, 9.95719802e-007, 5.95316749e-007, 1.00003707) p18.CanCollide = false p18.Locked = true p18.BottomSurface = Enum.SurfaceType.Smooth p18.TopSurface = Enum.SurfaceType.Smooth p19 = Instance.new("Part", m) p19.BrickColor = BrickColor.new("Really black") p19.Material = Enum.Material.Neon p19.FormFactor = Enum.FormFactor.Custom p19.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p19.CFrame = CFrame.new(65.2110596, 6.69982004, -14.2638168, 1.00005388, -1.78813906e-007, 3.08695888e-007, -1.7285347e-006, 0.999993682, 2.38419489e-007, -1.15321473e-006, 3.72538381e-007, 1.0000447) p19.CanCollide = false p19.Locked = true p19.BottomSurface = Enum.SurfaceType.Smooth p19.TopSurface = Enum.SurfaceType.Smooth b7 = Instance.new("SpecialMesh", p19) b7.MeshType = Enum.MeshType.Sphere b7.Name = "Mesh" p20 = Instance.new("Part", m) p20.BrickColor = BrickColor.new("Really black") p20.Material = Enum.Material.Neon p20.FormFactor = Enum.FormFactor.Custom p20.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p20.CFrame = CFrame.new(66.7116928, 6.49980783, -14.2639294, 1.00006235, -2.98028993e-007, 2.80525398e-007, -1.8477574e-006, 0.999992907, 3.27827962e-007, -1.18139712e-006, 4.61949412e-007, 1.00005233) p20.CanCollide = false p20.Locked = true p20.BottomSurface = Enum.SurfaceType.Smooth p20.TopSurface = Enum.SurfaceType.Smooth b8 = Instance.new("SpecialMesh", p20) b8.MeshType = Enum.MeshType.Sphere b8.Name = "Mesh" p21 = Instance.new("Part", m) p21.BrickColor = BrickColor.new("Bright blue") p21.Material = Enum.Material.Neon p21.FormFactor = Enum.FormFactor.Custom p21.Size = Vector3.new(0.200000048, 0.799999893, 0.200000048) p21.CFrame = CFrame.new(67.0623169, 6.40337944, -14.264039, 0.258836836, -0.965994418, 2.52354425e-007, 0.965917706, 0.258818805, 4.17237061e-007, 2.19511691e-007, 1.31106742e-006, 1.00005996) p21.CanCollide = false p21.Locked = true p21.BottomSurface = Enum.SurfaceType.Smooth p21.TopSurface = Enum.SurfaceType.Smooth p22 = Instance.new("Part", m) p22.BrickColor = BrickColor.new("Really black") p22.Material = Enum.Material.Neon p22.FormFactor = Enum.FormFactor.Custom p22.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p22.CFrame = CFrame.new(67.5129166, 6.29977846, -14.2641516, 1.00007939, -5.96046448e-007, 2.24182997e-007, -2.14576721e-006, 0.999991298, 5.06646757e-007, -1.23776351e-006, 6.40773351e-007, 1.00006759) p22.CanCollide = false p22.Locked = true p22.BottomSurface = Enum.SurfaceType.Smooth p22.TopSurface = Enum.SurfaceType.Smooth b9 = Instance.new("SpecialMesh", p22) b9.MeshType = Enum.MeshType.Sphere b9.Name = "Mesh" w1 = Instance.new("Weld", p1) w1.Name = "Part_Weld" w1.Part0 = p1 w1.C0 = CFrame.new(-67.3029404, -7.60003757, 14.2623367, 1.00000453, -2.08616257e-007, -3.72529385e-008, 1.1920929e-007, 0.999999404, -1.49011452e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w1.Part1 = p2 w1.C1 = CFrame.new(-65.0029221, -7.60003757, 14.2623367, 1.00000453, -2.08616257e-007, -3.72529385e-008, 1.1920929e-007, 0.999999404, -1.49011452e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w2 = Instance.new("Weld", p2) w2.Name = "Part_Weld" w2.Part0 = p2 w2.C0 = CFrame.new(-65.0029221, -7.60003757, 14.2623367, 1.00000453, -2.08616257e-007, -3.72529385e-008, 1.1920929e-007, 0.999999404, -1.49011452e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w2.Part1 = p3 w2.C1 = CFrame.new(-35.8392487, 56.0098076, 20.1084957, 0.491483778, 0.834233105, 0.250000894, -0.868311942, 0.491481245, 0.0669875443, -0.0669877231, -0.249999821, 0.965929389) w3 = Instance.new("Weld", p3) w3.Name = "Part_Weld" w3.Part0 = p3 w3.C0 = CFrame.new(-35.8392487, 56.0098076, 20.1084957, 0.491483778, 0.834233105, 0.250000894, -0.868311942, 0.491481245, 0.0669875443, -0.0669877231, -0.249999821, 0.965929389) w3.Part1 = p4 w3.C1 = CFrame.new(-52.459343, -38.4935722, 14.2623358, 0.866029263, -0.499999881, -2.48114169e-008, 0.500002384, 0.866024733, -3.15312398e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w4 = Instance.new("Weld", p4) w4.Name = "Part_Weld" w4.Part0 = p4 w4.C0 = CFrame.new(-52.459343, -38.4935722, 14.2623358, 0.866029263, -0.499999881, -2.48114169e-008, 0.500002384, 0.866024733, -3.15312398e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w4.Part1 = p5 w4.C1 = CFrame.new(54.4780006, 39.4971619, 14.2623367, -0.866029263, 0.49999994, 2.48113796e-008, -0.500002444, -0.866024733, 3.15312398e-008, -6.70552254e-008, 2.98023224e-008, 1.0000037) w5 = Instance.new("Weld", p5) w5.Name = "Part_Weld" w5.Part0 = p5 w5.C0 = CFrame.new(54.4780006, 39.4971619, 14.2623367, -0.866029263, 0.49999994, 2.48113796e-008, -0.500002444, -0.866024733, 3.15312398e-008, -6.70552254e-008, 2.98023224e-008, 1.0000037) w5.Part1 = p6 w5.C1 = CFrame.new(60.1191711, -26.5763226, 14.2623367, -0.866029382, -0.499999493, 3.9712539e-008, 0.500002205, -0.866024911, -5.72166936e-009, -6.70552254e-008, 2.98023224e-008, 1.0000037) w6 = Instance.new("Weld", p6) w6.Name = "Part_Weld" w6.Part0 = p6 w6.C0 = CFrame.new(60.1191711, -26.5763226, 14.2623367, -0.866029382, -0.499999493, 3.9712539e-008, 0.500002205, -0.866024911, -5.72166936e-009, -6.70552254e-008, 2.98023224e-008, 1.0000037) w6.Part1 = p7 w6.C1 = CFrame.new(-68.0026093, -7.20003986, 14.2622881, 1, -1.63912006e-007, 7.4505806e-008, 1.63912006e-007, 1, 1.49011186e-008, -7.4505806e-008, -1.49011061e-008, 1) w7 = Instance.new("Weld", p7) w7.Name = "Part_Weld" w7.Part0 = p7 w7.C0 = CFrame.new(-68.0026093, -7.20003986, 14.2622881, 1, -1.63912006e-007, 7.4505806e-008, 1.63912006e-007, 1, 1.49011186e-008, -7.4505806e-008, -1.49011061e-008, 1) w7.Part1 = p8 w7.C1 = CFrame.new(-64.4025955, -6.60003376, 14.2622824, 1, -5.96043641e-008, 4.47034836e-008, 5.96043677e-008, 1, -5.9604421e-008, -4.470348e-008, 5.96044245e-008, 1) w8 = Instance.new("Weld", p8) w8.Name = "Part_Weld" w8.Part0 = p8 w8.C0 = CFrame.new(-64.4025955, -6.60003376, 14.2622824, 1, -5.96043641e-008, 4.47034836e-008, 5.96043677e-008, 1, -5.9604421e-008, -4.470348e-008, 5.96044245e-008, 1) w8.Part1 = p9 w8.C1 = CFrame.new(-67.8026123, -6.50004005, 14.2622881, 1, -1.63912006e-007, 7.4505806e-008, 1.63912006e-007, 1, 1.49011186e-008, -7.4505806e-008, -1.49011061e-008, 1) w9 = Instance.new("Weld", p9) w9.Name = "Part_Weld" w9.Part0 = p9 w9.C0 = CFrame.new(-67.8026123, -6.50004005, 14.2622881, 1, -1.63912006e-007, 7.4505806e-008, 1.63912006e-007, 1, 1.49011186e-008, -7.4505806e-008, -1.49011061e-008, 1) w9.Part1 = p10 w9.C1 = CFrame.new(19.5072937, 66.0613785, 5.0658741, -0.323143423, 0.912731171, 0.250000954, -0.93463856, -0.349243909, 0.0669875741, 0.148453087, -0.212012053, 0.965929449) w10 = Instance.new("Weld", p10) w10.Name = "Main_Weld" w10.Part0 = p10 w10.C0 = CFrame.new(19.5072937, 66.0613785, 5.0658741, -0.323143423, 0.912731171, 0.250000954, -0.93463856, -0.349243909, 0.0669875741, 0.148453087, -0.212012053, 0.965929449) w10.Part1 = p11 w10.C1 = CFrame.new(-66.1029282, -6.20003605, 13.1623268, 1.00000453, -2.38418579e-007, -3.72529456e-008, 8.94069672e-008, 0.999999344, -1.49011452e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w11 = Instance.new("Weld", p11) w11.Name = "Part_Weld" w11.Part0 = p11 w11.C0 = CFrame.new(-66.1029282, -6.20003605, 13.1623268, 1.00000453, -2.38418579e-007, -3.72529456e-008, 8.94069672e-008, 0.999999344, -1.49011452e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w11.Part1 = p12 w11.C1 = CFrame.new(-66.1026306, -6.20004368, 13.5622816, 1, -1.1920875e-007, 6.70552325e-008, 1.1920875e-007, 1, -2.98022158e-008, -6.70552325e-008, 2.98022229e-008, 1) w12 = Instance.new("Weld", p12) w12.Name = "Part_Weld" w12.Part0 = p12 w12.C0 = CFrame.new(-66.1026306, -6.20004368, 13.5622816, 1, -1.1920875e-007, 6.70552325e-008, 1.1920875e-007, 1, -2.98022158e-008, -6.70552325e-008, 2.98022229e-008, 1) w12.Part1 = p13 w12.C1 = CFrame.new(-5.82635021, 66.1279221, 12.0623207, 7.54977023e-008, 0.999999344, -1.49011434e-008, -1.00000453, 1.94707212e-007, 3.72529385e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w13 = Instance.new("Weld", p13) w13.Name = "Part_Weld" w13.Part0 = p13 w13.C0 = CFrame.new(-5.82635021, 66.1279221, 12.0623207, 7.54977023e-008, 0.999999344, -1.49011434e-008, -1.00000453, 1.94707212e-007, 3.72529385e-008, -6.70552325e-008, 2.9802333e-008, 1.0000037) w13.Part1 = p14 w13.C1 = CFrame.new(-53.3026466, -37.8329315, 12.0623188, 0.866029263, -0.499999881, -2.4811424e-008, 0.500002325, 0.866024673, -3.15312434e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w14 = Instance.new("Weld", p14) w14.Name = "Part_Weld" w14.Part0 = p14 w14.C0 = CFrame.new(-53.3026466, -37.8329315, 12.0623188, 0.866029263, -0.499999881, -2.4811424e-008, 0.500002325, 0.866024673, -3.15312434e-008, -6.70552396e-008, 2.9802333e-008, 1.0000037) w14.Part1 = p15 w14.C1 = CFrame.new(-61.1476631, 28.2449875, 12.0623198, 0.866029382, 0.499999404, -3.97125675e-008, -0.500002146, 0.866024971, 5.72170222e-009, -6.70552396e-008, 2.9802333e-008, 1.0000037) w15 = Instance.new("Weld", p15) w15.Name = "Part_Weld" w15.Part0 = p15 w15.C0 = CFrame.new(-61.1476631, 28.2449875, 12.0623198, 0.866029382, 0.499999404, -3.97125675e-008, -0.500002146, 0.866024971, 5.72170222e-009, -6.70552396e-008, 2.9802333e-008, 1.0000037) w15.Part1 = p16 w15.C1 = CFrame.new(-57.1000977, -32.4815826, 14.2622862, 0.906307578, -0.422618747, 6.51076419e-008, 0.422618747, 0.906307578, 3.17729842e-009, -6.0350331e-008, 2.46360994e-008, 1) w16 = Instance.new("Weld", p16) w16.Name = "Part_Weld" w16.Part0 = p16 w16.C0 = CFrame.new(-57.1000977, -32.4815826, 14.2622862, 0.906307578, -0.422618747, 6.51076419e-008, 0.422618747, 0.906307578, 3.17729842e-009, -6.0350331e-008, 2.46360994e-008, 1) w16.Part1 = p17 w16.C1 = CFrame.new(-60.6646385, 29.1315918, 14.2623339, 0.866029501, 0.499999583, 5.5611892e-008, -0.500002265, 0.866025209, 3.67179815e-008, -4.470348e-008, 5.96046448e-008, 1.0000037) w17 = Instance.new("Weld", p17) w17.Name = "Part_Weld" w17.Part0 = p17 w17.C0 = CFrame.new(-60.6646385, 29.1315918, 14.2623339, 0.866029501, 0.499999583, 5.5611892e-008, -0.500002265, 0.866025209, 3.67179815e-008, -4.470348e-008, 5.96046448e-008, 1.0000037) w17.Part1 = p18 w17.C1 = CFrame.new(42.8147545, 49.9616852, 14.2623405, -0.707109571, 0.707106829, 2.10734417e-008, -0.707110047, -0.707106233, -6.32202557e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w18 = Instance.new("Weld", p18) w18.Name = "Part_Weld" w18.Part0 = p18 w18.C0 = CFrame.new(42.8147545, 49.9616852, 14.2623405, -0.707109571, 0.707106829, 2.10734417e-008, -0.707110047, -0.707106233, -6.32202557e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w18.Part1 = p19 w18.C1 = CFrame.new(-65.2028809, -4.70003223, 14.2623415, 1.00000429, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999642, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w19 = Instance.new("Weld", p19) w19.Name = "Part_Weld" w19.Part0 = p19 w19.C0 = CFrame.new(-65.2028809, -4.70003223, 14.2623415, 1.00000429, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999642, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w19.Part1 = p20 w19.C1 = CFrame.new(-66.7028656, -4.50003386, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w20 = Instance.new("Weld", p20) w20.Name = "Part_Weld" w20.Part0 = p20 w20.C0 = CFrame.new(-66.7028656, -4.50003386, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w20.Part1 = p21 w20.C1 = CFrame.new(-21.6081295, 63.6283798, 14.2623405, 0.258820146, 0.965925455, 6.52870682e-008, -0.965930045, 0.258819073, -1.33600135e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w21 = Instance.new("Weld", p21) w21.Name = "Part_Weld" w21.Part0 = p21 w21.C0 = CFrame.new(-21.6081295, 63.6283798, 14.2623405, 0.258820146, 0.965925455, 6.52870682e-008, -0.965930045, 0.258819073, -1.33600135e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w21.Part1 = p22 w21.C1 = CFrame.new(-67.5028763, -4.30003405, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w22 = Instance.new("Weld", p22) w22.Name = "Wedge_Weld" w22.Part0 = p22 w22.C0 = CFrame.new(-67.5028763, -4.30003405, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) m.Parent = torso m:MakeJoints() ---------------------------------------------------- local cor5 = Instance.new("Part", torso.Torso) cor5.Name = "Thingy" cor5.Locked = true cor5.BottomSurface = 0 cor5.CanCollide = false cor5.Size = Vector3.new(2, 1, 1) cor5.Transparency = 1 cor5.TopSurface = 0 corw2 = Instance.new("Weld", cor5) corw2.Part0 = torso corw2.Part1 = cor5 corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) corw2.C1 = CFrame.new(0, 0, 0) weld2 = Instance.new("Weld", torso.Torso) weld2.Part0 = cor5 weld2.Part1 = p11 weld2.C0 = CFrame.new(0, 0, 0) ---------------------------------------------------- local m = Instance.new("Model") m.Name = "RightLeg" p1 = Instance.new("Part", m) p1.BrickColor = BrickColor.new("Really black") p1.Material = Enum.Material.Neon p1.FormFactor = Enum.FormFactor.Custom p1.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p1.CFrame = CFrame.new(67.2429962, 5.49923229, -14.269578, 1.00045943, -5.51538596e-006, -2.14306033e-006, -7.25689733e-006, 0.999951601, 3.93318305e-006, -2.55180248e-006, 4.05587616e-006, 1.00038624) p1.CanCollide = false p1.Locked = true p1.BottomSurface = Enum.SurfaceType.Smooth p1.TopSurface = Enum.SurfaceType.Smooth b1 = Instance.new("SpecialMesh", p1) b1.MeshType = Enum.MeshType.Sphere b1.Name = "Mesh" p2 = Instance.new("Part", m) p2.BrickColor = BrickColor.new("Really black") p2.Material = Enum.Material.Neon p2.FormFactor = Enum.FormFactor.Custom p2.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p2.CFrame = CFrame.new(67.6437836, 4.79925013, -14.2696915, 1.00046372, -5.51538369e-006, -2.14306829e-006, -7.37613163e-006, 0.999951243, 3.93319806e-006, -2.57999613e-006, 4.14531632e-006, 1.00039005) p2.CanCollide = false p2.Locked = true p2.BottomSurface = Enum.SurfaceType.Smooth p2.TopSurface = Enum.SurfaceType.Smooth b2 = Instance.new("SpecialMesh", p2) b2.MeshType = Enum.MeshType.Sphere b2.Name = "Mesh" p3 = Instance.new("Part", m) p3.BrickColor = BrickColor.new("Bright blue") p3.Material = Enum.Material.Neon p3.FormFactor = Enum.FormFactor.Custom p3.Size = Vector3.new(0.200000048, 0.999999762, 0.200000048) p3.CFrame = CFrame.new(66.8881302, 5.17327356, -14.2696877, -0.707441688, -0.707433701, -2.14858301e-006, 0.707077265, -0.707066894, 4.0476084e-006, 4.7538756e-006, -1.07312485e-006, 1.00039387) p3.CanCollide = false p3.Locked = true p3.BottomSurface = Enum.SurfaceType.Smooth p3.TopSurface = Enum.SurfaceType.Smooth p4 = Instance.new("Part", m) p4.BrickColor = BrickColor.new("Really black") p4.Material = Enum.Material.Neon p4.FormFactor = Enum.FormFactor.Custom p4.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p4.CFrame = CFrame.new(66.5432739, 4.7992568, -14.2696896, 1.00046802, -5.54323196e-006, -2.17126149e-006, -7.42077827e-006, 0.999950886, 4.02261594e-006, -2.58000705e-006, 4.14531496e-006, 1.00039387) p4.CanCollide = false p4.Locked = true p4.BottomSurface = Enum.SurfaceType.Smooth p4.TopSurface = Enum.SurfaceType.Smooth b3 = Instance.new("SpecialMesh", p4) b3.MeshType = Enum.MeshType.Sphere b3.Name = "Mesh" p5 = Instance.new("Part", m) p5.BrickColor = BrickColor.new("Bright blue") p5.Material = Enum.Material.Neon p5.FormFactor = Enum.FormFactor.Custom p5.Size = Vector3.new(0.200000048, 0.999999762, 0.200000048) p5.CFrame = CFrame.new(67.8495178, 4.41932487, -14.269804, -0.906733274, 0.422823101, -2.17126944e-006, -0.422590762, -0.906265974, 4.0226314e-006, 5.74146384e-007, -4.94026517e-006, 1.00039768) p5.CanCollide = false p5.Locked = true p5.BottomSurface = Enum.SurfaceType.Smooth p5.TopSurface = Enum.SurfaceType.Smooth p6 = Instance.new("Part", m) p6.BrickColor = BrickColor.new("Bright blue") p6.Material = Enum.Material.Neon p6.FormFactor = Enum.FormFactor.Custom p6.Size = Vector3.new(0.200000048, 0.799999833, 0.200000048) p6.CFrame = CFrame.new(66.5438004, 4.21363878, -14.2698011, 1.00047636, -7.68899918e-006, -2.17678416e-006, -5.51342964e-006, 0.999950111, 4.13704174e-006, -2.63088032e-006, 4.20975539e-006, 1.0004015) p6.CanCollide = false p6.Locked = true p6.BottomSurface = Enum.SurfaceType.Smooth p6.TopSurface = Enum.SurfaceType.Smooth p7 = Instance.new("Part", m) p7.BrickColor = BrickColor.new("Really black") p7.Material = Enum.Material.Metal p7.Name = "Main" p7.FormFactor = Enum.FormFactor.Custom p7.Size = Vector3.new(2.20000005, 4.19999981, 2.20000005) p7.CFrame = CFrame.new(67.2447891, 3.99926972, -13.1694622, 1.00048089, -5.69129634e-006, -2.186149e-006, -7.65911773e-006, 0.999949753, 4.1418657e-006, -2.63640663e-006, 4.32419529e-006, 1.00040531) p7.CanCollide = false p7.Locked = true p7.BottomSurface = Enum.SurfaceType.Smooth p7.TopSurface = Enum.SurfaceType.Smooth p8 = Instance.new("Part", m) p8.BrickColor = BrickColor.new("Bright blue") p8.Material = Enum.Material.Neon p8.FormFactor = Enum.FormFactor.Custom p8.Size = Vector3.new(0.200000048, 1.49999976, 0.200000048) p8.CFrame = CFrame.new(67.1560593, 4.19274044, -14.2700233, -0.766423643, -0.643097878, -2.21435107e-006, 0.642760634, -0.766000509, 4.23129995e-006, 4.88720252e-006, -1.69966381e-006, 1.00041294) p8.CanCollide = false p8.Locked = true p8.BottomSurface = Enum.SurfaceType.Smooth p8.TopSurface = Enum.SurfaceType.Smooth p9 = Instance.new("WedgePart", m) p9.BrickColor = BrickColor.new("Bright blue") p9.Material = Enum.Material.Neon p9.Name = "Wedge" p9.FormFactor = Enum.FormFactor.Custom p9.Size = Vector3.new(1, 1.19999981, 4) p9.CFrame = CFrame.new(67.3460693, 3.49928832, -10.7686377, -1.00049889, -4.27957411e-006, 4.5400966e-006, 8.07642937e-006, 0.906259179, -0.422600418, 2.61850914e-006, -0.422791958, -0.906690836) p9.CanCollide = false p9.Locked = true p9.TopSurface = Enum.SurfaceType.Smooth b4 = Instance.new("SpecialMesh", p9) b4.MeshType = Enum.MeshType.Wedge b4.Name = "Mesh" b4.Scale = Vector3.new(0.600000024, 1, 1) p10 = Instance.new("Part", m) p10.BrickColor = BrickColor.new("Really black") p10.Material = Enum.Material.Neon p10.FormFactor = Enum.FormFactor.Custom p10.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p10.CFrame = CFrame.new(68.0469971, 3.99923301, -14.2702446, 1.00050783, -6.09550762e-006, -2.27330474e-006, -8.07715332e-006, 0.999947786, 4.38094139e-006, -2.69438578e-006, 4.64916229e-006, 1.0004282) p10.CanCollide = false p10.Locked = true p10.BottomSurface = Enum.SurfaceType.Smooth p10.TopSurface = Enum.SurfaceType.Smooth b5 = Instance.new("SpecialMesh", p10) b5.MeshType = Enum.MeshType.Sphere b5.Name = "Mesh" p11 = Instance.new("Part", m) p11.BrickColor = BrickColor.new("Really black") p11.Material = Enum.Material.Neon p11.FormFactor = Enum.FormFactor.Custom p11.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p11.CFrame = CFrame.new(66.5467682, 3.59925723, -14.2703533, 1.00051641, -6.21477238e-006, -2.30150818e-006, -8.22622587e-006, 0.999947011, 4.47037792e-006, -2.72259308e-006, 4.73860473e-006, 1.00043583) p11.CanCollide = false p11.Locked = true p11.BottomSurface = Enum.SurfaceType.Smooth p11.TopSurface = Enum.SurfaceType.Smooth b6 = Instance.new("SpecialMesh", p11) b6.MeshType = Enum.MeshType.Sphere b6.Name = "Mesh" p12 = Instance.new("Part", m) p12.BrickColor = BrickColor.new("Bright blue") p12.Material = Enum.Material.Neon p12.FormFactor = Enum.FormFactor.Custom p12.Size = Vector3.new(0.200000048, 1.49999976, 0.200000048) p12.CFrame = CFrame.new(67.558609, 3.39274073, -14.2704687, -0.766450763, -0.643119991, -2.33134415e-006, 0.642759323, -0.765998006, 4.5598149e-006, 5.20550884e-006, -1.92419975e-006, 1.00044346) p12.CanCollide = false p12.Locked = true p12.BottomSurface = Enum.SurfaceType.Smooth p12.TopSurface = Enum.SurfaceType.Smooth p13 = Instance.new("Part", m) p13.BrickColor = BrickColor.new("Really black") p13.Material = Enum.Material.Neon p13.FormFactor = Enum.FormFactor.Custom p13.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p13.CFrame = CFrame.new(67.0482101, 2.79927826, -14.2705812, 1.00053358, -6.43730164e-006, -2.36118058e-006, -8.5234642e-006, 0.999945402, 4.64126742e-006, -2.78064022e-006, 4.90151251e-006, 1.00045109) p13.CanCollide = false p13.Locked = true p13.BottomSurface = Enum.SurfaceType.Smooth p13.TopSurface = Enum.SurfaceType.Smooth b7 = Instance.new("SpecialMesh", p13) b7.MeshType = Enum.MeshType.Sphere b7.Name = "Mesh" p14 = Instance.new("WedgePart", m) p14.BrickColor = BrickColor.new("Bright blue") p14.Material = Enum.Material.Neon p14.Name = "Wedge" p14.FormFactor = Enum.FormFactor.Custom p14.Size = Vector3.new(1, 0.699999809, 1.29999995) p14.CFrame = CFrame.new(66.8462448, 2.3492887, -14.7586241, 1.00054216, -6.55656913e-006, -2.38459074e-006, -8.61293847e-006, 0.999944568, 4.66311894e-006, -2.81690609e-006, 5.04259924e-006, 1.00045872) p14.CanCollide = false p14.Locked = true p14.TopSurface = Enum.SurfaceType.Smooth b8 = Instance.new("SpecialMesh", p14) b8.MeshType = Enum.MeshType.Wedge b8.Name = "Mesh" b8.Scale = Vector3.new(0.200000003, 1, 1) p15 = Instance.new("WedgePart", m) p15.BrickColor = BrickColor.new("Bright blue") p15.Material = Enum.Material.Neon p15.Name = "Wedge" p15.FormFactor = Enum.FormFactor.Custom p15.Size = Vector3.new(1, 0.699999809, 1.29999995) p15.CFrame = CFrame.new(68.0474777, 2.34926867, -14.7587423, 1.00055075, -6.67583618e-006, -2.41442808e-006, -8.73221416e-006, 0.999943614, 4.74457238e-006, -2.84674707e-006, 5.12405404e-006, 1.00046635) p15.CanCollide = false p15.Locked = true p15.TopSurface = Enum.SurfaceType.Smooth b9 = Instance.new("SpecialMesh", p15) b9.MeshType = Enum.MeshType.Wedge b9.Name = "Mesh" b9.Scale = Vector3.new(0.200000003, 1, 1) p16 = Instance.new("WedgePart", m) p16.BrickColor = BrickColor.new("Bright blue") p16.Material = Enum.Material.Neon p16.Name = "Wedge" p16.FormFactor = Enum.FormFactor.Custom p16.Size = Vector3.new(1, 0.699999809, 1.29999995) p16.CFrame = CFrame.new(67.4477234, 2.34926438, -14.7588549, 1.00055933, -6.79510413e-006, -2.44426587e-006, -8.85149075e-006, 0.99994266, 4.82602672e-006, -2.8765885e-006, 5.20550975e-006, 1.00047398) p16.CanCollide = false p16.Locked = true p16.TopSurface = Enum.SurfaceType.Smooth b10 = Instance.new("SpecialMesh", p16) b10.MeshType = Enum.MeshType.Wedge b10.Name = "Mesh" b10.Scale = Vector3.new(0.200000003, 1, 1) w1 = Instance.new("Weld", p1) w1.Name = "Part_Weld" w1.Part0 = p1 w1.C0 = CFrame.new(-67.2025909, -3.50003719, 14.2622871, 1, -8.94065977e-008, 5.79734944e-008, 8.94065977e-008, 1, -2.98022034e-008, -5.79734909e-008, 2.98022087e-008, 1) w1.Part1 = p2 w1.C1 = CFrame.new(-67.6028976, -2.80003333, 14.2623405, 1.00000429, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999642, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w2 = Instance.new("Weld", p2) w2.Name = "Part_Weld" w2.Part0 = p2 w2.C0 = CFrame.new(-67.6028976, -2.80003333, 14.2623405, 1.00000429, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999642, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w2.Part1 = p3 w2.C1 = CFrame.new(45.023777, 49.5125847, 14.2622843, -0.707106769, 0.707106769, -6.37114681e-008, -0.707106769, -0.707106769, 1.37820813e-008, -3.53054119e-008, 5.47962173e-008, 1) w3 = Instance.new("Weld", p3) w3.Name = "Part_Weld" w3.Part0 = p3 w3.C0 = CFrame.new(45.023777, 49.5125847, 14.2622843, -0.707106769, 0.707106769, -6.37114681e-008, -0.707106769, -0.707106769, 1.37820813e-008, -3.53054119e-008, 5.47962173e-008, 1) w3.Part1 = p4 w3.C1 = CFrame.new(-66.5026016, -2.80003667, 14.2622871, 1, -8.94065835e-008, 5.79734944e-008, 8.94065835e-008, 1, -2.98022034e-008, -5.79734909e-008, 2.98022087e-008, 1) w4 = Instance.new("Weld", p4) w4.Name = "Part_Weld" w4.Part0 = p4 w4.C0 = CFrame.new(-66.5026016, -2.80003667, 14.2622871, 1, -8.94065835e-008, 5.79734944e-008, 8.94065835e-008, 1, -2.98022034e-008, -5.79734909e-008, 2.98022087e-008, 1) w4.Part1 = p5 w4.C1 = CFrame.new(62.4776497, -26.4635353, 14.2623405, -0.906311512, -0.422618151, -5.2200086e-008, 0.422620177, -0.906307399, -4.14251318e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w5 = Instance.new("Weld", p5) w5.Name = "Part_Weld" w5.Part0 = p5 w5.C0 = CFrame.new(62.4776497, -26.4635353, 14.2623405, -0.906311512, -0.422618151, -5.2200086e-008, 0.422620177, -0.906307399, -4.14251318e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w5.Part1 = p6 w5.C1 = CFrame.new(-66.5025787, -2.21426678, 14.2622843, 1, 1.90734295e-006, 3.53052521e-008, -1.90734295e-006, 1, -5.47961676e-008, -3.53053551e-008, 5.47961001e-008, 1) w6 = Instance.new("Weld", p6) w6.Name = "Part_Weld" w6.Part0 = p6 w6.C0 = CFrame.new(-66.5025787, -2.21426678, 14.2622843, 1, 1.90734295e-006, 3.53052521e-008, -1.90734295e-006, 1, -5.47961676e-008, -3.53053551e-008, 5.47961001e-008, 1) w6.Part1 = p7 w6.C1 = CFrame.new(-67.202919, -2.00003123, 13.1623335, 1.00000453, -2.38418579e-007, 2.98023295e-008, 8.94069672e-008, 0.999999642, 5.96046448e-008, -4.46573551e-008, 5.96046448e-008, 1.00000381) w7 = Instance.new("Weld", p7) w7.Name = "Part_Weld" w7.Part0 = p7 w7.C0 = CFrame.new(-67.202919, -2.00003123, 13.1623335, 1.00000453, -2.38418579e-007, 2.98023295e-008, 8.94069672e-008, 0.999999642, 5.96046448e-008, -4.46573551e-008, 5.96046448e-008, 1.00000381) w7.Part1 = p8 w7.C1 = CFrame.new(50.0020561, 44.8201294, 14.2623405, -0.766047955, 0.642787397, 1.54832112e-008, -0.642790377, -0.766044199, -6.48163692e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w8 = Instance.new("Weld", p8) w8.Name = "Wedge_Weld" w8.Part0 = p8 w8.C0 = CFrame.new(50.0020561, 44.8201294, 14.2623405, -0.766047955, 0.642787397, 1.54832112e-008, -0.642790377, -0.766044199, -6.48163692e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w8.Part1 = p9 w8.C1 = CFrame.new(67.3029327, -5.90784931, -9.1200285, -1.00000453, 3.57627869e-007, -9.07683528e-008, 2.33116921e-007, 0.906307459, -0.422619879, 7.83834153e-009, -0.42261824, -0.906311214) w9 = Instance.new("Weld", p9) w9.Name = "Part_Weld" w9.Part0 = p9 w9.C0 = CFrame.new(67.3029327, -5.90784931, -9.1200285, -1.00000453, 3.57627869e-007, -9.07683528e-008, 2.33116921e-007, 0.906307459, -0.422619879, 7.83834153e-009, -0.42261824, -0.906311214) w9.Part1 = p10 w9.C1 = CFrame.new(-68.0029068, -2.00003219, 14.2623405, 1.00000441, -2.08616257e-007, 2.98023135e-008, 5.96046448e-008, 0.999999642, 5.96046412e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w10 = Instance.new("Weld", p10) w10.Name = "Part_Weld" w10.Part0 = p10 w10.C0 = CFrame.new(-68.0029068, -2.00003219, 14.2623405, 1.00000441, -2.08616257e-007, 2.98023135e-008, 5.96046448e-008, 0.999999642, 5.96046412e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w10.Part1 = p11 w10.C1 = CFrame.new(-66.5028687, -1.60003603, 14.2623405, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w11 = Instance.new("Weld", p11) w11.Name = "Part_Weld" w11.Part0 = p11 w11.C0 = CFrame.new(-66.5028687, -1.60003603, 14.2623405, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w11.Part1 = p12 w11.C1 = CFrame.new(50.8226891, 44.4644012, 14.2623415, -0.766047835, 0.642787337, 1.03502398e-008, -0.642790318, -0.76604414, -5.86991185e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w12 = Instance.new("Weld", p12) w12.Name = "Part_Weld" w12.Part0 = p12 w12.C0 = CFrame.new(50.8226891, 44.4644012, 14.2623415, -0.766047835, 0.642787337, 1.03502398e-008, -0.642790318, -0.76604414, -5.86991185e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w12.Part1 = p13 w12.C1 = CFrame.new(-67.0028915, -0.800035119, 14.2623415, 1.00000429, -2.08616257e-007, 2.980231e-008, 1.1920929e-007, 0.999999642, 5.16191463e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w13 = Instance.new("Weld", p13) w13.Name = "Wedge_Weld" w13.Part0 = p13 w13.C0 = CFrame.new(-67.0028915, -0.800035119, 14.2623415, 1.00000429, -2.08616257e-007, 2.980231e-008, 1.1920929e-007, 0.999999642, 5.16191463e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w13.Part1 = p14 w13.C1 = CFrame.new(-66.8004532, -0.350028068, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w14 = Instance.new("Weld", p14) w14.Name = "Wedge_Weld" w14.Part0 = p14 w14.C0 = CFrame.new(-66.8004532, -0.350028068, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w14.Part1 = p15 w14.C1 = CFrame.new(-68.0004578, -0.350028008, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w15 = Instance.new("Weld", p15) w15.Name = "Wedge_Weld" w15.Part0 = p15 w15.C0 = CFrame.new(-68.0004578, -0.350028008, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w15.Part1 = p16 w15.C1 = CFrame.new(-67.4004517, -0.350028008, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) m.Parent = rleg m:MakeJoints() ---------------------------------------------------- local cor6 = Instance.new("Part", rleg.RightLeg) cor6.Name = "Thingy" cor6.Locked = true cor6.BottomSurface = 0 cor6.CanCollide = false cor6.Size = Vector3.new(2, 1, 1) cor6.Transparency = 1 cor6.TopSurface = 0 corw2 = Instance.new("Weld", cor6) corw2.Part0 = rleg corw2.Part1 = cor6 corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) corw2.C1 = CFrame.new(0, 0, 0) weld2 = Instance.new("Weld", rleg.RightLeg) weld2.Part0 = cor6 weld2.Part1 = p7 weld2.C0 = CFrame.new(0, 0, 0) ---------------------------------------------------- local m = Instance.new("Model") m.Name = "LeftLeg" p1 = Instance.new("WedgePart", m) p1.BrickColor = BrickColor.new("Bright blue") p1.Material = Enum.Material.Neon p1.Name = "Wedge" p1.FormFactor = Enum.FormFactor.Custom p1.Size = Vector3.new(1, 0.699999809, 1.29999995) p1.CFrame = CFrame.new(64.3107605, 2.34980536, -14.7520046, 1.00008786, -7.1526415e-007, 2.00803143e-007, -2.2649931e-006, 0.999990404, 5.36453001e-007, -1.27237047e-006, 7.81809263e-007, 1.00007522) p1.CanCollide = false p1.Locked = true p1.TopSurface = Enum.SurfaceType.Smooth b1 = Instance.new("SpecialMesh", p1) b1.MeshType = Enum.MeshType.Wedge b1.Name = "Mesh" b1.Scale = Vector3.new(0.200000003, 1, 1) p2 = Instance.new("WedgePart", m) p2.BrickColor = BrickColor.new("Bright blue") p2.Material = Enum.Material.Neon p2.Name = "Wedge" p2.FormFactor = Enum.FormFactor.Custom p2.Size = Vector3.new(1, 1.19999981, 4) p2.CFrame = CFrame.new(64.9138336, 3.49979234, -10.7640553, -1.00009644, -6.38643314e-007, 1.81689501e-007, 2.53323037e-006, 0.906298041, -0.422614515, 1.23479219e-006, -0.422652602, -0.906383216) p2.CanCollide = false p2.Locked = true p2.TopSurface = Enum.SurfaceType.Smooth b2 = Instance.new("SpecialMesh", p2) b2.MeshType = Enum.MeshType.Wedge b2.Name = "Mesh" b2.Scale = Vector3.new(0.600000024, 1, 1) p3 = Instance.new("Part", m) p3.BrickColor = BrickColor.new("Really black") p3.Material = Enum.Material.Metal p3.Name = "Main" p3.FormFactor = Enum.FormFactor.Custom p3.Size = Vector3.new(2.20000005, 4.19999981, 2.20000005) p3.CFrame = CFrame.new(65.0144501, 3.99976897, -13.1643734, 1.00010526, -9.43461771e-007, 1.5135204e-007, -2.48442234e-006, 0.999988973, 7.74860382e-007, -1.32394814e-006, 8.94069672e-007, 1.00009048) p3.CanCollide = false p3.Locked = true p3.BottomSurface = Enum.SurfaceType.Smooth p3.TopSurface = Enum.SurfaceType.Smooth p4 = Instance.new("Part", m) p4.BrickColor = BrickColor.new("Really black") p4.Material = Enum.Material.Neon p4.FormFactor = Enum.FormFactor.Custom p4.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p4.CFrame = CFrame.new(64.8149185, 4.09976244, -14.2645903, 1.00011396, -1.07351866e-006, 1.23178822e-007, -2.62327239e-006, 0.999988258, 8.64272579e-007, -1.33881622e-006, 1.01328953e-006, 1.00009811) p4.CanCollide = false p4.Locked = true p4.BottomSurface = Enum.SurfaceType.Smooth p4.TopSurface = Enum.SurfaceType.Smooth b3 = Instance.new("SpecialMesh", p4) b3.MeshType = Enum.MeshType.Sphere b3.Name = "Mesh" p5 = Instance.new("WedgePart", m) p5.BrickColor = BrickColor.new("Bright blue") p5.Material = Enum.Material.Neon p5.Name = "Wedge" p5.FormFactor = Enum.FormFactor.Custom p5.Size = Vector3.new(1, 0.699999809, 1.29999995) p5.CFrame = CFrame.new(64.9130707, 2.34976578, -14.7524614, 1.00012243, -1.19274011e-006, 9.97973828e-008, -2.74250215e-006, 0.999987364, 8.94081438e-007, -1.37342522e-006, 1.15432931e-006, 1.00010574) p5.CanCollide = false p5.Locked = true p5.TopSurface = Enum.SurfaceType.Smooth b4 = Instance.new("SpecialMesh", p5) b4.MeshType = Enum.MeshType.Wedge b4.Name = "Mesh" b4.Scale = Vector3.new(0.200000003, 1, 1) p6 = Instance.new("Part", m) p6.BrickColor = BrickColor.new("Bright blue") p6.Material = Enum.Material.Neon p6.FormFactor = Enum.FormFactor.Custom p6.Size = Vector3.new(0.200000048, 1.29999971, 0.200000048) p6.CFrame = CFrame.new(65.1539307, 3.56787443, -14.2648125, -0.81925869, 0.573652625, 6.3568308e-008, -0.573566198, -0.819142461, 1.03511331e-006, 4.69596898e-007, -1.7646264e-006, 1.00011337) p6.CanCollide = false p6.Locked = true p6.BottomSurface = Enum.SurfaceType.Smooth p6.TopSurface = Enum.SurfaceType.Smooth p7 = Instance.new("Part", m) p7.BrickColor = BrickColor.new("Bright blue") p7.Material = Enum.Material.Neon p7.FormFactor = Enum.FormFactor.Custom p7.Size = Vector3.new(0.200000048, 0.999999642, 0.200000048) p7.CFrame = CFrame.new(64.9899063, 4.4266243, -14.2649202, 0.86614728, 0.500068843, 4.87115699e-008, -0.499995351, 0.866011381, 1.14634361e-006, -1.86828663e-006, 3.82691809e-007, 1.000121) p7.CanCollide = false p7.Locked = true p7.BottomSurface = Enum.SurfaceType.Smooth p7.TopSurface = Enum.SurfaceType.Smooth p8 = Instance.new("Part", m) p8.BrickColor = BrickColor.new("Really black") p8.Material = Enum.Material.Neon p8.FormFactor = Enum.FormFactor.Custom p8.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p8.CFrame = CFrame.new(65.2172623, 4.89969873, -14.2650318, 1.00014877, -1.43051147e-006, 2.05365609e-008, -3.09944153e-006, 0.99998486, 1.2357583e-006, -1.44150738e-006, 1.38478742e-006, 1.00012863) p8.CanCollide = false p8.Locked = true p8.BottomSurface = Enum.SurfaceType.Smooth p8.TopSurface = Enum.SurfaceType.Smooth b5 = Instance.new("SpecialMesh", p8) b5.MeshType = Enum.MeshType.Sphere b5.Name = "Mesh" p9 = Instance.new("Part", m) p9.BrickColor = BrickColor.new("Really black") p9.Material = Enum.Material.Neon p9.FormFactor = Enum.FormFactor.Custom p9.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p9.CFrame = CFrame.new(65.517868, 2.99971151, -14.2651463, 1.00015736, -1.5520751e-006, -9.27031252e-009, -3.21633729e-006, 0.999984026, 1.32517368e-006, -1.46969478e-006, 1.46621869e-006, 1.00013626) p9.CanCollide = false p9.Locked = true p9.BottomSurface = Enum.SurfaceType.Smooth p9.TopSurface = Enum.SurfaceType.Smooth b6 = Instance.new("SpecialMesh", p9) b6.MeshType = Enum.MeshType.Sphere b6.Name = "Mesh" p10 = Instance.new("Part", m) p10.BrickColor = BrickColor.new("Bright blue") p10.Material = Enum.Material.Neon p10.FormFactor = Enum.FormFactor.Custom p10.Size = Vector3.new(0.200000048, 1.09999967, 0.200000048) p10.CFrame = CFrame.new(64.79879, 5.1497221, -14.2652512, -0.642893076, 0.766172707, -3.7446263e-008, -0.766029418, -0.64277941, 1.40660427e-006, -2.27817864e-007, -2.14863894e-006, 1.00014389) p10.CanCollide = false p10.Locked = true p10.BottomSurface = Enum.SurfaceType.Smooth p10.TopSurface = Enum.SurfaceType.Smooth p11 = Instance.new("Part", m) p11.BrickColor = BrickColor.new("Bright blue") p11.Material = Enum.Material.Neon p11.FormFactor = Enum.FormFactor.Custom p11.Size = Vector3.new(0.200000048, 0.699999809, 0.200000048) p11.CFrame = CFrame.new(65.2189484, 5.30325174, -14.2653618, 1.00017476, -1.78813934e-006, -6.56227002e-008, -3.4570694e-006, 0.999982595, 1.49602079e-006, -1.52770292e-006, 1.64505627e-006, 1.00015152) p11.CanCollide = false p11.Locked = true p11.BottomSurface = Enum.SurfaceType.Smooth p11.TopSurface = Enum.SurfaceType.Smooth p12 = Instance.new("WedgePart", m) p12.BrickColor = BrickColor.new("Bright blue") p12.Material = Enum.Material.Neon p12.Name = "Wedge" p12.FormFactor = Enum.FormFactor.Custom p12.Size = Vector3.new(1, 0.699999809, 1.29999995) p12.CFrame = CFrame.new(65.5171509, 2.34969687, -14.7532635, 1.00018334, -1.89246384e-006, -8.90070169e-008, -3.54650388e-006, 0.999981821, 1.52583425e-006, -1.56231545e-006, 1.78610321e-006, 1.00015914) p12.CanCollide = false p12.Locked = true p12.TopSurface = Enum.SurfaceType.Smooth b7 = Instance.new("SpecialMesh", p12) b7.MeshType = Enum.MeshType.Wedge b7.Name = "Mesh" b7.Scale = Vector3.new(0.200000003, 1, 1) p13 = Instance.new("Part", m) p13.BrickColor = BrickColor.new("Really black") p13.Material = Enum.Material.Neon p13.FormFactor = Enum.FormFactor.Custom p13.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p13.CFrame = CFrame.new(64.3198929, 5.59963703, -14.2655821, 1.00019193, -1.97098893e-006, -1.23608402e-007, -3.67657594e-006, 0.999981046, 1.66687016e-006, -1.58571254e-006, 1.81590929e-006, 1.00016677) p13.CanCollide = false p13.Locked = true p13.BottomSurface = Enum.SurfaceType.Smooth p13.TopSurface = Enum.SurfaceType.Smooth b8 = Instance.new("SpecialMesh", p13) b8.MeshType = Enum.MeshType.Sphere b8.Name = "Mesh" p14 = Instance.new("Part", m) p14.BrickColor = BrickColor.new("Really black") p14.Material = Enum.Material.Neon p14.FormFactor = Enum.FormFactor.Custom p14.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) p14.CFrame = CFrame.new(65.2206192, 5.79961872, -14.2656937, 1.00020039, -2.10105645e-006, -1.51786239e-007, -3.75511786e-006, 0.99998033, 1.7562885e-006, -1.6139021e-006, 1.90533035e-006, 1.0001744) p14.CanCollide = false p14.Locked = true p14.BottomSurface = Enum.SurfaceType.Smooth p14.TopSurface = Enum.SurfaceType.Smooth b9 = Instance.new("SpecialMesh", p14) b9.MeshType = Enum.MeshType.Sphere b9.Name = "Mesh" w1 = Instance.new("Weld", p1) w1.Name = "Wedge_Weld" w1.Part0 = p1 w1.C0 = CFrame.new(-64.3004303, -0.350028396, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w1.Part1 = p2 w1.C1 = CFrame.new(64.9028854, -5.90785694, -9.12002754, -1.00000429, 3.57627869e-007, -9.07683386e-008, 2.9341092e-007, 0.906307459, -0.422619879, -5.58450353e-009, -0.42261821, -0.906311214) w2 = Instance.new("Weld", p2) w2.Name = "Part_Weld" w2.Part0 = p2 w2.C0 = CFrame.new(64.9028854, -5.90785694, -9.12002754, -1.00000429, 3.57627869e-007, -9.07683386e-008, 2.9341092e-007, 0.906307459, -0.422619879, -5.58450353e-009, -0.42261821, -0.906311214) w2.Part1 = p3 w2.C1 = CFrame.new(-65.0029144, -2.00002885, 13.1623335, 1.00000453, -2.19451294e-007, 2.98023295e-008, 6.97858056e-008, 0.999999702, 5.96046448e-008, -4.46573551e-008, 5.96046448e-008, 1.00000381) w3 = Instance.new("Weld", p3) w3.Name = "Part_Weld" w3.Part0 = p3 w3.C0 = CFrame.new(-65.0029144, -2.00002885, 13.1623335, 1.00000453, -2.19451294e-007, 2.98023295e-008, 6.97858056e-008, 0.999999702, 5.96046448e-008, -4.46573551e-008, 5.96046448e-008, 1.00000381) w3.Part1 = p4 w3.C1 = CFrame.new(-64.8028488, -2.10003614, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w4 = Instance.new("Weld", p4) w4.Name = "Wedge_Weld" w4.Part0 = p4 w4.C0 = CFrame.new(-64.8028488, -2.10003614, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w4.Part1 = p5 w4.C1 = CFrame.new(-64.9004364, -0.350028336, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w5 = Instance.new("Weld", p5) w5.Name = "Part_Weld" w5.Part0 = p5 w5.C0 = CFrame.new(-64.9004364, -0.350028336, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w5.Part1 = p6 w5.C1 = CFrame.new(54.2596054, -36.0786095, 14.2623415, -0.819155633, -0.573575974, -5.40201484e-008, 0.573578835, -0.819151759, -2.51900261e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w6 = Instance.new("Weld", p6) w6.Name = "Part_Weld" w6.Part0 = p6 w6.C0 = CFrame.new(54.2596054, -36.0786095, 14.2623415, -0.819155633, -0.573575974, -5.40201484e-008, 0.573578835, -0.819151759, -2.51900261e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w6.Part1 = p7 w6.C1 = CFrame.new(-55.0575066, -34.589859, 14.2623396, 0.866029263, -0.50000006, -3.99274924e-009, 0.500002325, 0.866025031, 6.65203004e-008, -4.46573551e-008, 5.96046448e-008, 1.00000381) w7 = Instance.new("Weld", p7) w7.Name = "Part_Weld" w7.Part0 = p7 w7.C0 = CFrame.new(-55.0575066, -34.589859, 14.2623396, 0.866029263, -0.50000006, -3.99274924e-009, 0.500002325, 0.866025031, 6.65203004e-008, -4.46573551e-008, 5.96046448e-008, 1.00000381) w7.Part1 = p8 w7.C1 = CFrame.new(-65.2028809, -2.90003395, 14.2623415, 1.00000429, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999642, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w8 = Instance.new("Weld", p8) w8.Name = "Part_Weld" w8.Part0 = p8 w8.C0 = CFrame.new(-65.2028809, -2.90003395, 14.2623415, 1.00000429, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999642, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w8.Part1 = p9 w8.C1 = CFrame.new(-65.5028763, -1.00002885, 14.2623425, 1.00000429, -2.06278372e-007, 2.98023135e-008, 8.70690755e-008, 0.999999523, 5.16191463e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w9 = Instance.new("Weld", p9) w9.Name = "Part_Weld" w9.Part0 = p9 w9.C0 = CFrame.new(-65.5028763, -1.00002885, 14.2623425, 1.00000429, -2.06278372e-007, 2.98023135e-008, 8.70690755e-008, 0.999999523, 5.16191463e-008, -5.96046341e-008, 2.98023224e-008, 1.00000381) w9.Part1 = p10 w9.C1 = CFrame.new(44.0550385, -47.6020889, 14.2623405, -0.642790556, -0.766044021, -6.48163621e-008, 0.766047776, -0.642787576, -1.54832289e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w10 = Instance.new("Weld", p10) w10.Name = "Part_Weld" w10.Part0 = p10 w10.C0 = CFrame.new(44.0550385, -47.6020889, 14.2623405, -0.642790556, -0.766044021, -6.48163621e-008, 0.766047776, -0.642787576, -1.54832289e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w10.Part1 = p11 w10.C1 = CFrame.new(-65.2028656, -3.3036263, 14.2623405, 1.00000429, -1.93715096e-007, 2.98023153e-008, 1.1920929e-007, 0.999999702, 5.96046412e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w11 = Instance.new("Weld", p11) w11.Name = "Wedge_Weld" w11.Part0 = p11 w11.C0 = CFrame.new(-65.2028656, -3.3036263, 14.2623405, 1.00000429, -1.93715096e-007, 2.98023153e-008, 1.1920929e-007, 0.999999702, 5.96046412e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w11.Part1 = p12 w11.C1 = CFrame.new(-65.5004425, -0.350028276, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w12 = Instance.new("Weld", p12) w12.Name = "Part_Weld" w12.Part0 = p12 w12.C0 = CFrame.new(-65.5004425, -0.350028276, 14.7500486, 1.00000429, -2.08616257e-007, 2.33795703e-008, 8.94069672e-008, 0.999999523, 1.11224018e-007, -5.31818927e-008, -2.9802294e-008, 1.00000381) w12.Part1 = p13 w12.C1 = CFrame.new(-64.3028641, -3.60003614, 14.2623415, 1.00000429, -2.19451294e-007, 2.98023153e-008, 1.30103487e-007, 0.999999702, 5.96046448e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w13 = Instance.new("Weld", p13) w13.Name = "Part_Weld" w13.Part0 = p13 w13.C0 = CFrame.new(-64.3028641, -3.60003614, 14.2623415, 1.00000429, -2.19451294e-007, 2.98023153e-008, 1.30103487e-007, 0.999999702, 5.96046448e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w13.Part1 = p14 w13.C1 = CFrame.new(-65.202858, -3.80003428, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) w14 = Instance.new("Weld", p14) w14.Name = "Wedge_Weld" w14.Part0 = p14 w14.C0 = CFrame.new(-65.202858, -3.80003428, 14.2623415, 1.00000417, -2.08616257e-007, 2.98023117e-008, 8.94069672e-008, 0.999999583, 5.96046377e-008, -5.79734909e-008, 2.98023224e-008, 1.00000381) m.Parent = lleg m:MakeJoints() ---------------------------------------------------- local cor7 = Instance.new("Part", lleg.LeftLeg) cor7.Name = "Thingy" cor7.Locked = true cor7.BottomSurface = 0 cor7.CanCollide = false cor7.Size = Vector3.new(2, 1, 1) cor7.Transparency = 1 cor7.TopSurface = 0 corw2 = Instance.new("Weld", cor7) corw2.Part0 = lleg corw2.Part1 = cor7 corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) corw2.C1 = CFrame.new(0, 0, 0) weld2 = Instance.new("Weld", lleg.LeftLeg) weld2.Part0 = cor7 weld2.Part1 = p3 weld2.C0 = CFrame.new(0, 0, 0) ---------------------------------------------------- function weld5(part0, part1, c0, c1) weeld=Instance.new("Weld", part0) weeld.Part0=part0 weeld.Part1=part1 weeld.C0=c0 weeld.C1=c1 return weeld end ---------------------------------------------------- function newRay(start,face,range,wat) local rey=Ray.new(start.p,(face.p-start.p).Unit*range) hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) return rey,hit,pos end ---------------------------------------------------- mod5 = Instance.new("Model",char) function FindNearestTorso(Position,Distance,SinglePlayer) if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end local List = {} for i,v in pairs(workspace:GetChildren())do if v:IsA("Model")then if v:findFirstChild("Torso")then if v ~= char then if(v.Torso.Position -Position).magnitude <= Distance then table.insert(List,v) end end end end end return List end function Landing() part=Instance.new('Part',mod5) part.Anchored=true part.CanCollide=false part.FormFactor='Custom' part.Size=Vector3.new(.2,.2,.2) part.CFrame=root.CFrame*CFrame.new(0,-2,0) part.Transparency=.7 part.BrickColor=BrickColor.new('Really black') part2=part:clone() part2.Parent = mod5 part2.BrickColor=BrickColor.new('Bright blue') mesh=Instance.new('SpecialMesh',part) mesh.MeshId='http://www.roblox.com/asset/?id=20329976' mesh.Scale=Vector3.new(10,5,10) mesh2=mesh:clone() mesh2.Parent=part2 mesh2.Scale=Vector3.new(12, 6, 12) for i,v in pairs(FindNearestTorso(torso.CFrame.p,30))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(20,30)) v.Humanoid.PlatformStand = true v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 30 end end coroutine.resume(coroutine.create(function() for i=0,3.8,0.05 do wait() part.CFrame=part.CFrame part.Transparency=i part2.CFrame=part2.CFrame part2.Transparency=i mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1) mesh2.Scale=mesh2.Scale+Vector3.new(1.2,0.3,1.2) end part.Parent = nil end)) end ---------------------------------------------------- mod4 = Instance.new("Model",char) ptez = {0.7, 0.8, 0.9, 1} function FindNearestTorso(Position,Distance,SinglePlayer) if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end local List = {} for i,v in pairs(workspace:GetChildren())do if v:IsA("Model")then if v:findFirstChild("Torso")then if v ~= char then if(v.Torso.Position -Position).magnitude <= Distance then table.insert(List,v) end end end end end return List end function GroundPound() part=Instance.new('Part',mod4) part.Anchored=true part.CanCollide=false part.FormFactor='Custom' part.Size=Vector3.new(.2,.2,.2) part.CFrame=root.CFrame*CFrame.new(0,-5.8,-2.4)*CFrame.Angles(math.rad(90),0,0) part.Transparency=.7 part.BrickColor=BrickColor.new('Really black') mesh=Instance.new('SpecialMesh',part) mesh.MeshId='http://www.roblox.com/asset/?id=3270017' mesh.Scale=Vector3.new(3,3,3) part2=Instance.new('Part',mod4) part2.Anchored=true part2.CanCollide=false part2.FormFactor='Custom' part2.Size=Vector3.new(.2,.2,.2) part2.CFrame=root.CFrame*CFrame.new(0,-5,-2.6) part2.Transparency=.7 part2.BrickColor=BrickColor.new('Really red') mesh2=Instance.new('SpecialMesh',part2) mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' mesh2.Scale=Vector3.new(3,1.5,3) x = Instance.new("Sound",char) x.SoundId = "http://www.roblox.com/asset/?id=142070127" x.Pitch = ptez[math.random(1,#ptez)] x.Volume = 1 wait(.1) x:Play() for i,v in pairs(FindNearestTorso(torso.CFrame.p,12))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(8,15)) end end coroutine.resume(coroutine.create(function() for i=0,0.62,0.13 do wait() part.CFrame=part.CFrame part.Transparency=i mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) part2.CFrame=part2.CFrame part2.Transparency=i mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) end part.Parent=nil part2.Parent=nil x:Destroy() end)) end ---------------------------------------------------- mod=Instance.new('Model',char) function charge() hed.Velocity=hed.CFrame.lookVector*200 part=Instance.new('Part',mod) part.Anchored=true part.CanCollide=false part.FormFactor='Custom' part.Size=Vector3.new(.2,.2,.2) part.CFrame=hed.CFrame*CFrame.Angles(math.rad(90),0,0) part.Transparency=.7 part.BrickColor=BrickColor.new('Black') mesh=Instance.new('SpecialMesh',part) mesh.MeshId='http://www.roblox.com/asset/?id=20329976' mesh.Scale=Vector3.new(10,5,10) part2=part:clone() part2.Parent=mod part2.BrickColor=BrickColor.new('Bright red') mesh2=mesh:clone() mesh2.Parent=part2 mesh2.Scale=Vector3.new(20,10,20) part3=part2:clone() part3.Parent = mod part3.BrickColor=BrickColor.new('Really black') mesh3=mesh2:clone() mesh2.Parent=part3 mesh3.Scale=Vector3.new(30,15,30) coroutine.resume(coroutine.create(function() for i=0,1,0.1 do wait() part.CFrame=part.CFrame part.Transparency=i mesh.Scale=mesh.Scale+Vector3.new(1,1,1) part2.CFrame=part2.CFrame part2.Transparency=i mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) part3.CFrame=part3.CFrame part3.Transparency=i mesh3.Scale=mesh3.Scale+Vector3.new(1,1,1) end part.Parent=nil part2.Parent=nil part3.Parent = nil end)) end ---------------------------------------------------- function FindNearestTorso(Position,Distance,SinglePlayer) if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end local List = {} for i,v in pairs(workspace:GetChildren())do if v:IsA("Model")then if v:findFirstChild("Torso")then if v ~= char then if(v.Torso.Position -Position).magnitude <= Distance then table.insert(List,v) end end end end end return List end mod3 = Instance.new("Model",rleg) function Stomp() part=Instance.new('Part',mod3) part.Anchored=true part.CanCollide=false part.FormFactor='Custom' part.Size=Vector3.new(.2,.2,.2) part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0) part.Transparency=.7 part.BrickColor=BrickColor.new('Bright green') mesh=Instance.new('SpecialMesh',part) mesh.MeshId='http://www.roblox.com/asset/?id=3270017' mesh.Scale=Vector3.new(25,25,25) part2=part:clone() part2.Parent=mod3 part2.BrickColor=BrickColor.new('Bright green') mesh2=mesh:clone() mesh2.Parent=part2 mesh2.Scale=Vector3.new(15,15,15) part3=part:clone() part3.Parent=mod3 part3.TopSurface=0 part3.BottomSurface=0 part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0) mesh3=Instance.new('SpecialMesh',part3) mesh3.MeshType = 3 mesh3.Scale=Vector3.new(12,12,12) for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(20,60)) v.Humanoid.PlatformStand = true v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 end end coroutine.resume(coroutine.create(function() for i=0,3.8,0.05 do wait() part.CFrame=part.CFrame part.Transparency=i mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8) part2.CFrame=part2.CFrame part2.Transparency=i mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) part3.CFrame=part3.CFrame part3.Transparency=i mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5) end end)) end ---------------------------------------------------- local acos = math.acos local sqrt = math.sqrt local Vec3 = Vector3.new local fromAxisAngle = CFrame.fromAxisAngle local function toAxisAngle(CFr) local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() local Angle = math.acos((R00+R11+R22-1)/2) local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 A = A == 0 and 0.00001 or A local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 B = B == 0 and 0.00001 or B local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 C = C == 0 and 0.00001 or C local x = (R21-R12)/sqrt(A) local y = (R02-R20)/sqrt(B) local z = (R10-R01)/sqrt(C) return Vec3(x,y,z),Angle end function ApplyTrig(Num,Func) local Min,Max = Func(0),Func(1) local i = Func(Num) return (i-Min)/(Max-Min) --[[if Func == "sin" then return (math.sin((1-Num)*math.pi)+1)/2 elseif Func == "cos" then return (math.cos((1-Num)*math.pi)+1)/2 end]] end function LerpCFrame(CFrame1,CFrame2,Num) local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num end function Crater(Torso,Radius) Spawn(function() local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) local Ignore = {} for i,v in pairs(game:GetService("Players"):GetPlayers()) do if v.Character ~= nil then Ignore[#Ignore+1] = v.Character end end local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) if Hit == nil then return end local Parts = {} for i = 1,360,10 do local P = Instance.new("Part",Torso.Parent) P.Anchored = true P.FormFactor = "Custom" P.BrickColor = Hit.BrickColor P.Material = Hit.Material P.TopSurface = "Smooth" P.BottomSurface = "Smooth" P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} if math.random(0,5) == 0 then -- rubble local P = Instance.new("Part",Torso.Parent) P.Anchored = true P.FormFactor = "Custom" P.BrickColor = Hit.BrickColor P.Material = Hit.Material P.TopSurface = "Smooth" P.BottomSurface = "Smooth" P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} end end for i = 0,1,0.05 do for i2,v in pairs(Parts) do v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) end wait(0.02) end for i,v in pairs(Parts) do if v[1].Size.X > 2.1 then v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) end v[1].Anchored = false end for i = 0,1,0.05 do for i2,v in pairs(Parts) do v[1].Transparency = i if i == 1 then v[1]:Destroy() elseif i >= 0.25 then v[1].CanCollide = false end end wait(0.02) end Parts = nil end) end ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "r" then larm.BrickColor = BrickColor.new("Bright red") rarm.BrickColor = BrickColor.new("Bright red") if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true to = char.Absolution.Thingy2.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit:FindFirstChild("Humanoid"):TakeDamage(10) wait(1) --Debounces.Slashed = false --end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then --[[ if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10) wait(1) --Debounces.Slashed = false end end end end) q = Instance.new("Sound",hed) q.SoundId = "http://www.roblox.com/asset/?id=134012322" q.Pitch = 0.85 q.Looped = false q1 = Instance.new("Sound",hed) q1.SoundId = "http://www.roblox.com/asset/?id=134012322" q1.Pitch = 0.85 q1.Looped = false q:Play() q1:Play() for i = 1,20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 4, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 1) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.2, -3) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(0)), 0.25) if Debounces.on == false then break end rs:wait(.6) end n = Instance.new("Sound",hed) n.SoundId = "http://www.roblox.com/asset/?id=168514932" n.Pitch = 0.94 n.Looped = false n1 = Instance.new("Sound",hed) n1.SoundId = "http://www.roblox.com/asset/?id=168514932" n1.Pitch = 0.94 n1.Looped = false n:Play() n1:Play() b = Instance.new("Sound",hed) b.SoundId = "http://www.roblox.com/asset/?id=168586586" b.Pitch = 0.94 b.Looped = false b1 = Instance.new("Sound",hed) b1.SoundId = "http://www.roblox.com/asset/?id=168586586" b1.Pitch = 0.94 b1.Looped = false b:Play() b1:Play() for i = 1,26 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.25) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.25) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.25) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), 0), 0.25) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -1) * CFrame.Angles(math.rad(50), 0, math.rad(0)), 0.25) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .4) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.25) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 0.25) if Debounces.on == false then break end rs:wait(1) end wait(.5) to:disconnect() q:Destroy() q1:Destroy() n:Destroy() n1:Destroy() larm.BrickColor = BrickColor.new("Really black") rarm.BrickColor = BrickColor.new("Really black") if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "q" then larm.BrickColor = BrickColor.new("Bright red") rarm.BrickColor = BrickColor.new("Bright red") if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true to = char.Absolution.Thingy2.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit:FindFirstChild("Humanoid"):TakeDamage(4) wait(1) --Debounces.Slashed = false --end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then --[[ if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(4) wait(1) --Debounces.Slashed = false end end end end) for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(21), math.rad(75), math.rad(50)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-18)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-60),0), 0.5) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(70), 0), 0.5) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(2) end z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://160069154" z.Looped = false z.Pitch = .9 z1 = Instance.new("Sound",hed) z1.SoundId = "rbxassetid://160069154" z1.Looped = false z1.Pitch = .9 wait(0.01) z:Play() z1:Play() for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2,.9,-1) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(20)), 0.5) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(30),0), 0.5) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10), 0, 0), 0.5) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, .6) * CFrame.Angles(math.rad(-65), 0, 0), 0.5) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(2) end for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(50)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-18)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(10),0), 0.5) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-10), 0), 0.5) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(2) end z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://168586621" z.Looped = false z.Pitch = 1 z1 = Instance.new("Sound",hed) z1.SoundId = "rbxassetid://168586621" z1.Looped = false z1.Pitch = 1 wait(0.01) z:Play() z1:Play() for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(40), math.rad(-20), math.rad(10)), 0.5) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-18)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-40),0), 0.5) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(40), 0), 0.5) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.5) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(20), 0, math.rad(10)), 0.5) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(-110), math.rad(-90), math.rad(20)), 1) if Debounces.on == false then break end rs:wait(2) end to:disconnect() larm.BrickColor = BrickColor.new("Really black") rarm.BrickColor = BrickColor.new("Really black") if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false end end end end) ---------------------------------------------------- Sit = false mouse.KeyDown:connect(function(key) if key == "v" then if Sit == false then Sit = true hum.WalkSpeed = 0.001 stanceToggle = "Sitting" elseif Sit == true then Sit = false hum.WalkSpeed = 7 stanceToggle = "Normal" end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "t" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .6) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.2) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) if Debounces.on == false then break end rs:wait(2.6) end Spawn(function() local Parts = {} for Y = -5,5 do local P = Instance.new("Part",char) P.Anchored = true P.FormFactor = "Custom" P.CanCollide = false P.Size = Vector3.new(1,2,1) P.TopSurface = "SmoothNoOutlines" P.BottomSurface = "SmoothNoOutlines" P.BrickColor = BrickColor.new("Really black") P.Name = tostring(Y) local i = (Y+5)/(10) i = 1-math.cos(math.pi*i-(math.pi/2)) P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0) --[[P.Touched:connect(function(ht) local hit = ht.Parent if hit:FindFirstChild("Humanoid") then hit.Humanoid:TakeDamage(math.random(20,50)) end end)]]-- s = Instance.new("Sound",P) s.SoundId = "rbxassetid://228343271" s.Volume = .7 s.Pitch = 0.9 s:Play() P.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3)) hit:FindFirstChild("Humanoid").PlatformStand = true wait(1) --Debounces.Slashed = false --end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3)) hit:FindFirstChild("Humanoid").PlatformStand = true wait(1) --Debounces.Slashed = false --end end end end end) Parts[#Parts+1] = P end local BREAKIT = false local CParts = {} local Rocks = {} local LastPos = nil for i = 1,70 do for i2,v in pairs(Parts) do v.CFrame = v.CFrame*CFrame.new(0,0,-4) local cf = v.CFrame v.Size = v.Size+Vector3.new(0.4,0.35,0) v.CFrame = cf v.Transparency = v.Transparency+0.02 if v.Transparency >= 0.975 then BREAKIT = true end if v.Name == "0" then local Ignore = {} for i,v in pairs(game:GetService("Players"):GetPlayers()) do if v.Character ~= nil then Ignore[#Ignore+1] = v.Character end end local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0)) local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) if Hit ~= nil then if #Rocks == 0 then for i = 1,5 do local P = Instance.new("Part",char) Rocks[#Rocks+1] = P P.Anchored = true P.FormFactor = "Custom" P.BrickColor = Hit.BrickColor P.Material = Hit.Material P.TopSurface = "Smooth" P.BottomSurface = "Smooth" P.Size = Vector3.new(1,1,1)*(math.random(500,900)/100) end end for i,P in pairs(Rocks) do P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) end local P = Instance.new("Part",char) CParts[#CParts+1] = {P,tick()} P.Anchored = true P.FormFactor = "Custom" P.BrickColor = Hit.BrickColor P.Material = Hit.Material P.TopSurface = "Smooth" P.BottomSurface = "Smooth" P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100) Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) Pos = Pos.p P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) local P = P:Clone() CParts[#CParts+1] = {P,tick()} P.Parent = char Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) Pos = Pos.p P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) if LastPos ~= nil then local P = P:Clone() CParts[#CParts+1] = {P,tick()} P.Parent = char P.BrickColor = BrickColor.new("Really black") Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) Pos = Pos.p local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) --P.Velocity = Vector3.new(0,-1000,0) P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) end LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) end end end if BREAKIT then break end wait(0.002) end for i,v in pairs(Rocks) do CParts[#CParts+1] = {v,tick()} end for i,v in pairs(Parts) do v:Destroy() end Parts = nil while true do local t = tick() local p = nil for i,v in pairs(CParts) do if t-v[2] > 4 then v[1].Transparency = v[1].Transparency+0.05 if v[1].Transparency >= 1 then v[1]:Destroy() CParts[i] = nil end end p = v end if p == nil then break end wait(0.002) end for i,v in pairs(CParts) do v:Destroy() end CParts = {} end) for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.6, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -1.4) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1.6, -.9) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) if Debounces.on == false then break end rs:wait(2) end if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "e" then larm.BrickColor = BrickColor.new("Bright red") rarm.BrickColor = BrickColor.new("Bright red") if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true for i = 1, 18 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.7, 0) * CFrame.Angles(math.rad(90),math.rad(50),math.rad(90)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(4) end local HandCF = CFrame.new(char.Absolution.Handle.Position - Vector3.new(0,8.8,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) local rng = Instance.new("Part", char.Absolution.Handle) rng.Anchored = true rng.BrickColor = BrickColor.new("Really black") rng.CanCollide = true rng.FormFactor = 3 rng.Name = "Ring" rng.Size = Vector3.new(1, 1, 1) rng.CanCollide = false rng.Transparency = 0.35 rng.TopSurface = 0 rng.BottomSurface = 0 rng.CFrame = HandCF local rngm = Instance.new("SpecialMesh", rng) rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" rngm.Scale = Vector3.new(1, 1, 2) x = Instance.new("Sound", hed) x.SoundId = "http://www.roblox.com/asset/?id=169445602" x.Looped = false x.Pitch = .7 x.Volume = 1 x1 = Instance.new("Sound", hed) x1.SoundId = "http://www.roblox.com/asset/?id=169445602" x1.Looped = false x1.Pitch = .7 x1.Volume = 1 x:Play() x1:Play() rngto = rng.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit:FindFirstChild("Humanoid"):TakeDamage(4) hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120 --Debounces.Slashed = false --end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then --[[ if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(4) hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120 --Debounces.Slashed = false end end end end) coroutine.wrap(function() for i = 1, 60, 2 do rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) rng.Size = rngm.Scale rng.CFrame = HandCF rng.Transparency = i/60 wait() end wait() rng:Destroy() end)() for i = 1, 18 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, 0.2) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(2.4) end larm.BrickColor = BrickColor.new("Really black") rarm.BrickColor = BrickColor.new("Really black") x:Destroy() x1:Destroy() if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "y" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true for i = 1, 15 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-89)), 0.6) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(2.7) end x = Instance.new("Sound",char) x.SoundId = "rbxassetid://228343271" x.Pitch = 1 x.Volume = .8 wait(.1) x:Play() Debounces.on = false Debounces.Here = false shot = shot + 1 local rng = Instance.new("Part", char) rng.Anchored = true rng.BrickColor = BrickColor.new("Bright blue") rng.CanCollide = false rng.FormFactor = 3 rng.Name = "Ring" rng.Size = Vector3.new(1, 1, 1) rng.Transparency = 0.35 rng.TopSurface = 0 rng.BottomSurface = 0 rng2 = rng:clone() rng3 = rng2:clone() rng4 = rng2:clone() local rngm = Instance.new("SpecialMesh", rng) rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" rngm.Scale = Vector3.new(10, 10, 1) rngm2 = rngm:clone() rngm2.Scale = Vector3.new(5, 5, 3) rngm3=rngm2:clone() rngm3.Parent = rng3 rngm3.Scale = Vector3.new(8, 8, 1) rngm4 = rngm2:clone() rngm4.Parent = rng4 rngm4.Scale = Vector3.new(6, 6, 1) local bem = Instance.new("Part", char) bem.Anchored = true bem.BrickColor = BrickColor.new("Really black") bem.CanCollide = false bem.FormFactor = 3 bem.Name = "Beam" .. shot bem.Size = Vector3.new(1, 1, 1) bem.Transparency = 0.35 bem.TopSurface = 0 bem.BottomSurface = 0 local bemm = Instance.new("SpecialMesh", bem) bemm.MeshType = 4 bemm.Scale = Vector3.new(1, 4, 4) local out = Instance.new("Part", char) out.Anchored = true out.BrickColor = BrickColor.new("Really black") out.CanCollide = false out.FormFactor = 3 out.Name = "Out" out.Size = Vector3.new(4, 4, 4) out.Transparency = 0.35 out.TopSurface = 0 out.BottomSurface = 0 local outm = Instance.new("SpecialMesh", out) outm.MeshId = "http://www.roblox.com/asset/?id=1033714" outm.Scale = Vector3.new(4, 4, 4) local bnd = Instance.new("Part", char) bnd.Anchored = true bnd.BrickColor = BrickColor.new("Bright blue") bnd.CanCollide = false bnd.FormFactor = 3 bnd.Name = "Bend" bnd.Size = Vector3.new(1, 1, 1) bnd.Transparency = 1 bnd.TopSurface = 0 bnd.BottomSurface = 0 local bndm = Instance.new("SpecialMesh", bnd) bndm.MeshType = 3 bndm.Scale = Vector3.new(8, 8, 8) out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) Debounces.Shewt = true coroutine.wrap(function() for i = 1, 20, 0.2 do rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) rng.Transparency = i/20 rng3.Transparency = 1/24 rng4.Transparency = i/26 wait() end wait() rng:Destroy() end)() if Debounces.Shewt == true then char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) hit = ht.Parent if hit:IsA("Model") and hit:findFirstChild("Humanoid") then if HasntTouched(hit.Name) == true and deb == false then deb = true coroutine.wrap(function() hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) end)() table.insert(Touche, hit.Name) deb = false end elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then if HasntTouched(hit.Parent.Name) == true and deb == false then deb = true coroutine.wrap(function() hit.Parent:FindFirstChild("Humanoid").PlatformStand = true hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 wait(1) hit.Parent:FindFirstChild("Humanoid").PlatformStand = false end)() table.insert(Touche, hit.Parent.Name) deb = false for i, v in pairs(Touche) do print(v) end end end end) end for i = 0, 260, 8 do bem.Size = Vector3.new(i, 2, 2) bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) bnd.Size = Vector3.new(1,1,1) bndm.Scale = Vector3.new(8,8,8) if i % 10 == 0 then local newRng = rng2:Clone() newRng.Parent = char newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) local newRngm = rngm2:clone() newRngm.Parent=newRng coroutine.wrap(function() for i = 1, 10, 0.2 do newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) newRng.Transparency = i/10 wait() end wait() newRng:Destroy() end)() end wait() end wait() Debounces.Shewt = false bem:Destroy() out:Destroy() bnd:Destroy() Debounces.Ready = false for i, v in pairs(Touche) do table.remove(Touche, i) end wait() table.insert(Touche, char.Name) Debounces.NoIdl = false if Debounces.CanAttack == false then Debounces.CanAttack = true end end end end) ---------------------------------------------------- sidz = {"231917888", "231917845", "231917806"} ptz = {0.65, 0.7, 0.75, 0.8, 0.95, 1} mouse.KeyDown:connect(function(key) if key == "f" then larm.BrickColor = BrickColor.new("Bright red") rarm.BrickColor = BrickColor.new("Bright red") if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(6) end z = Instance.new("Sound",char) z.SoundId = "rbxassetid://"..sidz[math.random(1,#sidz)] z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z1 = Instance.new("Sound",char) z1.SoundId = z.SoundId z1.Pitch = z.Pitch z1.Volume = 1 z:Play() z1:Play() Stomp() for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.3) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.3) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, -.6) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, -1.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(2.5) end if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false larm.BrickColor = BrickColor.new("Really black") rarm.BrickColor = BrickColor.new("Really black") end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "g" then larm.BrickColor = BrickColor.new("Bright red") rarm.BrickColor = BrickColor.new("Bright red") if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true chrg = lleg.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit:FindFirstChild("Humanoid"):TakeDamage(2) hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 --Debounces.Slashed = false --end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then --[[ if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2) hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 --Debounces.Slashed = false end end end end) for i = 1, 14 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.8, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9) if Debounces.on == false then break end rs:wait(3) end charge() z = Instance.new("Sound",char) z.SoundId = "rbxassetid://200632875" z.Volume = 1 z.Pitch = .8 z1 = Instance.new("Sound",char) z1.SoundId = "rbxassetid://200632875" z1.Volume = 1 z1.Pitch = .9 z:Play() z1:Play() wait(1) z:Destroy() z1:Destroy() chrg:disconnect() if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false larm.BrickColor = BrickColor.new("Really black") rarm.BrickColor = BrickColor.new("Really black") end end end end) ---------------------------------------------------- pt = {0.7, 0.8, 0.9} mouse.KeyDown:connect(function(key) if key == "h" then if Debounces.CanJoke == true then Debounces.CanJoke = false u = Instance.new("Sound") u.SoundId = "http://www.roblox.com/asset/?id=138199573" u.Parent = char u.Looped = false u.Pitch = pt[math.random(1,#pt)] u.Volume = 1 u2 = Instance.new("Sound") u2.SoundId = "http://www.roblox.com/asset/?id=138199573" u2.Parent = char u2.Looped = false u2.Pitch = u.Pitch u2.Volume = 1 wait(.01) u:Play() u2:Play() wait(6) u:Destroy() u2:Destroy() if Debounces.CanJoke == false then Debounces.CanJoke = true end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "j" then if Debounces.CanJoke == true then Debounces.CanJoke = false z = Instance.new("Sound",char) z.SoundId = "rbxassetid://135017755" z.Pitch = .76 z.Volume = 1 wait() z:Play() wait(6) z:Destroy() if Debounces.CanJoke == false then Debounces.CanJoke = true end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "k" then if Debounces.CanJoke == true then Debounces.CanJoke = false z = Instance.new("Sound",char) z.SoundId = "rbxassetid://135017578" z.Pitch = .76 z.Volume = 1 wait() z:Play() wait(4) z:Destroy() if Debounces.CanJoke == false then Debounces.CanJoke = true end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "x" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true Debounces.ks = true for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.7,.9,-.5)*CFrame.Angles(math.rad(40),math.rad(0),math.rad(20)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.7, .6) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(1) end z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169445092" z.Volume = 1 wait(0.1) z:Play() kik = rleg.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- if Debounces.ks==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Volume = 1 z:Play() Debounces.ks=false end hit:FindFirstChild("Humanoid"):TakeDamage(2) hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 --Debounces.Slashed = false --end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2) hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 --Debounces.Slashed = false --end end end end end) for i = 1, 8 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.3) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.3) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,.2)*CFrame.Angles(math.rad(8),math.rad(0),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(16), math.rad(0), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.6, -1.4) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(.7) end kik:disconnect() if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "c" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true SIDZ = {"231917744", "231917742"} PTZ = {0.7, 0.8, 0.9, 1} for i = 1, 20 do wait() for i,v in pairs(char.Absolution:children()) do if v:IsA("Part") or v:IsA("WedgePart") then v.Transparency = v.Transparency + 0.05 end end end function FindNearestTorso(Position,Distance,SinglePlayer) if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end local List = {} for i,v in pairs(workspace:GetChildren())do if v:IsA("Model")then if v:findFirstChild("Torso")then if v ~= char then if(v.Torso.Position -Position).magnitude <= Distance then table.insert(List,v) end end end end end return List end GroundPound() for i = 1, 11 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(1.4) end GroundPound() for i = 1, 11 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(1.4) end GroundPound() for i = 1, 11 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(1.4) end GroundPound() for i = 1, 11 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(1.4) end GroundPound() for i = 1, 11 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(1.4) end GroundPound() for i = 1, 11 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.3) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then break end rs:wait(1.4) end for i = 1, 24 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(3) end for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(20,60)) v.Humanoid.PlatformStand = true v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 end end x = Instance.new("Sound",char) x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)] x.Pitch = PTZ[math.random(1,#PTZ)] x.Volume = 1 wait(0.1) x:Play() Crater(hed,20) for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(2) end if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false for i = 1, 20 do wait() for i,v in pairs(char.Absolution:children()) do if v:IsA("Part") or v:IsA("WedgePart") then v.Transparency = v.Transparency - 0.05 end end end end end end end) ----------------------------------------------------176349813 mouse.KeyDown:connect(function(key) if key == "b" then hum.WalkSpeed = 0.01 if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true for i = 1, 30 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end rs:wait(6) end v = Instance.new("Sound") v.SoundId = "rbxassetid://181384451" v.Parent = char v.Looped = false v.Pitch = .94 v.Volume = 1 wait(.01) v:Play() if Daytime == true then Daytime = false l.TimeOfDay = 24 else Daytime = true l.TimeOfDay = 12 l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) end local Shockwave = function() local rng1 = Instance.new("Part", char) rng1.Anchored = true rng1.BrickColor = BrickColor.new("Really black") rng1.CanCollide = false rng1.FormFactor = 3 rng1.Name = "Ring" rng1.Size = Vector3.new(1, 1, 1) rng1.Transparency = 0.35 rng1.TopSurface = 0 rng1.BottomSurface = 0 local rngm1 = Instance.new("SpecialMesh", rng) rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" rngm1.Scale = Vector3.new(10, 10, 1) rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) local Wave = Instance.new("Part", game.Workspace--[[?]]) Wave.Name = "Shockwave" Wave.BrickColor = BrickColor.new("Really black") Wave.Size = Vector3.new(1, 1, 1) Wave.Shape = "Ball" Wave.CanCollide = false Wave.Anchored = true Wave.TopSurface = 0 Wave.BottomSurface = 0 Wave.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then local Occlude = true local NotOccludes = { char.Name; "Wings"; "Scythe"; "Thingy"; "Thingy2"; -- put all of the names in a table pls } for i,v in pairs(NotOccludes) do if hit.Parent.Name == v then Occlude = false end end --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then if Occlude then hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 end end end) Instance.new("SpecialMesh", Wave).MeshType = "Sphere" coroutine.wrap(function() for i = 1, 20, 0.2 do rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) rng1.Transparency = i/20 wait() end wait() rng1:Destroy() end)() Delay(0, function() if Daytime == false then for i = 1, 50, 1 do Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) Wave.CFrame = char.Torso.CFrame local t = i / 50 Wave.Transparency = t wait() end else for i = 1, 50, 1 do Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) Wave.CFrame = char.Torso.CFrame local t = i / 50 Wave.Transparency = t wait() end end Wave:Destroy() end) Delay(0, function() while wait() do if Wave ~= nil then Wave.CFrame = char.Torso.CFrame else break end end end) end Shockwave() for i = 1, 30 do hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.3) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3.2, .3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) if Debounces.on == false then break end rs:wait() end wait(2.4) Debounces.NoIdl = false hum.WalkSpeed = 5 Debounces.on = false wait() if Debounces.CanAttack == false then Debounces.CanAttack = true v:Destroy() end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "l" then for i = 1, 20 do wait() for i,v in pairs(char.Absolution:children()) do if v:IsA("Part") or v:IsA("WedgePart") then v.Transparency = v.Transparency + 0.05 end end end if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true bv = Instance.new("BodyVelocity",torso) bv.maxForce = Vector3.new(0,200000,0) bv.P = 100000 bv.velocity = Vector3.new(0,500,0) wait(2) bv:Destroy() if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then for i = 1, 20 do hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.5, .9, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(40)), 0.3) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.5, .9, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-40)), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1.5, -1) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1.5, -1) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end wait() end for i = 1, 360, 20 do wait() torso.Weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(i),0,0) end end torso.Weld.C1 = CFrame.new(0,-1.2,0) local ry,ht,ps=nil,nil,nil while ht==nil do ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char}) wait() end z = Instance.new("Sound",char) z.SoundId = "rbxassetid://245537790" z.Pitch = 1 z.Volume = 1 wait(0.1) z:Play() local sp = Instance.new("Part", char) sp.Name = "Energy" sp.BrickColor = BrickColor.new("Really black") sp.Size = Vector3.new(1, 1, 1) sp.Shape = "Ball" sp.CanCollide = false sp.Anchored = true sp.TopSurface = 0 sp.BottomSurface = 0 local spm = Instance.new("SpecialMesh",sp) spm.MeshId = "rbxassetid://9982590" spm.Scale = Vector3.new(3,3,3) local sp2 = Instance.new("Part", char) sp2.Name = "Energy2" sp2.BrickColor = BrickColor.new("Really black") sp2.Size = Vector3.new(1, 1, 1) sp2.Shape = "Ball" sp2.CanCollide = false sp2.Anchored = true sp2.TopSurface = 0 sp2.BottomSurface = 0 local spm2 = Instance.new("SpecialMesh",sp2) spm2.MeshId = "rbxassetid://9982590" spm2.Scale = Vector3.new(3,3,3) sp.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then local Occlude = true local NotOccludes = { char.Name; "Wings"; "Scythe"; "Thingy"; "Thingy2"; -- put all of the names in a table pls } for i,v in pairs(NotOccludes) do if hit.Parent.Name == v then Occlude = false end end --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then if Occlude then hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 80 hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 end end end) sp2.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then local Occlude = true local NotOccludes = { char.Name; "Wings"; "Scythe"; "Thingy"; "Thingy2"; -- put all of the names in a table pls } for i,v in pairs(NotOccludes) do if hit.Parent.Name == v then Occlude = false end end --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then if Occlude then hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 end end end) for i = 1, 100, 1 do sp.Size = Vector3.new(1 + i, 1 + i, 1 + i) sp2.Size = Vector3.new(1 + i, 1 + i, 1 + i) sp.CFrame = root.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(i), math.rad(i), math.rad(-i)) sp2.CFrame = root.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) spm.Scale = sp.Size spm2.Scale = sp2.Size local t = i / 100 sp.Transparency = t sp2.Transparency = t wait() end sp:Destroy() sp2:Destroy() z:Destroy() for i = 1, 20 do wait() for i,v in pairs(char.Absolution:children()) do if v:IsA("Part") or v:IsA("WedgePart") then v.Transparency = v.Transparency - 0.05 end end end if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.NoIdl = false Debounces.on = false end end end end) ---------------------------------------------------- local orbt={} local stlt={} local chot={} local cfxt={} local pfxt={} local cns=0 local cnOrb=nil mouse.KeyDown:connect(function(key) if key == "u" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true orbt={} stlt={} chot={} cfxt={} for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1.4,0)*CFrame.Angles(math.rad(170),math.rad(-20),math.rad(-30)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(0),math.rad(-40),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(40), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0.4) * CFrame.Angles(math.rad(-20), math.rad(20), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, -0.4) * CFrame.Angles(math.rad(20), math.rad(-10), math.rad(10)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then end rs:wait() end z = Instance.new("Sound",char) z.SoundId = "rbxassetid://170053944" z.Pitch = 1.07 z.Volume = 1 wait(0.1) z:Play() cnOrb=nwPrt(char,Vector3.new(1,1,1),larm.CFrame*CFrame.new(0,-3.4,-0.1),"Really black") debris:AddItem(cnOrb,50) cnOrb.Mesh.MeshType=3 table.insert(orbt,cnOrb) table.insert(stlt,cnOrb) local nt=0 for i=0,5,0.02 do nt=nt+1 cns=i if nt>=2 then nt=0 local cho=nwPrt(mod3,Vector3.new(2,2,2),cnOrb.CFrame*CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))*CFrame.new(0,5+cns,0),"Really black") debris:AddItem(cho,1) cho.Mesh.MeshType=3 table.insert(chot,cho) end cnOrb.CFrame=larm.CFrame*CFrame.new(0,-3.4-(cns/2),-0.1) cnOrb.Mesh.Scale=Vector3.new(i,i,i) wait() end for i = 1, 14 do larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1.4,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) if Debounces.on == false then end rs:wait() end coroutine.wrap(function() for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.45) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2,.8,-.3)*CFrame.Angles(math.rad(70),math.rad(20),math.rad(50)), 0.6) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.5) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-40), math.rad(-20), 0), 0.5) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, -0.4) * CFrame.Angles(math.rad(60), math.rad(20), math.rad(-10)), 0.5) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0.4) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(10)), 0.5) if Debounces.on == false then end rs:wait() end end)() wait(0.1) stlt={} local ry,ht,ps=newRay(root.CFrame*CFrame.new(0,0,-4),root.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(math.rad(-5),0,0)*CFrame.new(0,0,-2),160,{char}) cnOrb.CFrame=root.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(math.rad(-5),0,0) local nt=0 for i=0,160,3 do cnOrb.CFrame=cnOrb.CFrame*CFrame.new(0,0,-3) nt=nt+1 if nt>=6 then nt=0 local cfx=nwPrt(mod3,Vector3.new(1,1,1),cnOrb.CFrame*CFrame.new(0,0,2)*CFrame.Angles(math.rad(90),0,0),"Really black") cfx.Mesh.MeshId="rbxassetid://20329976" cfx.Transparency=0.4 table.insert(cfxt,cfx) debris:AddItem(cfx,1) end if (cnOrb.Position-ps).magnitude<6 then break end wait() end orbt={} for i=0,1,0.1 do local cs=cnOrb.Mesh.Scale cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,10,i),Tween(cs.Y,10,i),Tween(cs.Z,10,i)) wait() end local ofx=nwPrt(cnOrb,Vector3.new(1,1,1),cnOrb.CFrame,"Really black") ofx.Transparency=0.5 ofx.Mesh.MeshType=3 ofx.Mesh.Scale=Vector3.new(30,30,30) for _,v in pairs(game:service"Players":GetChildren()) do pcall(function() for _,c in pairs(v.Character:GetChildren()) do if v~=p and c:IsA("Part") and (cnOrb.CFrame.p-c.CFrame.p).magnitude<60 and (cnOrb.CFrame.p-c.CFrame.p).magnitude>15 then local hrp=v.Character:FindFirstChild("HumanoidRootPart") hrp.Velocity=CFrame.new(hrp.CFrame.p,(cnOrb.CFrame*CFrame.new(0,10,0)).p).lookVector*150 end end end) end for i=0,1,0.05 do local cs=cnOrb.Mesh.Scale cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,0.1,i),Tween(cs.Y,0.1,i),Tween(cs.Z,0.1,i)) local ofs=ofx.Mesh.Scale ofx.Mesh.Scale=Vector3.new(Tween(ofs.X,0.1,i),Tween(ofs.Y,0.1,i),Tween(ofs.Z,0.1,i)) ofx.Transparency=Tween(ofx.Transparency,1,i) wait() end ofx:Destroy() cnOrb.CFrame=CFrame.new(cnOrb.Position)*CFrame.new(0,10,0) local cnfx=nwPrt(cnOrb,Vector3.new(1,1,1),cnOrb.CFrame,"Really black") cnfx.Mesh.MeshType=3 cnOrb.Transparency=0.05 local cnr=nwPrt(cnOrb,Vector3.new(1,1,1),cnOrb.CFrame,"Really black") cnr.Mesh.MeshType=3 local rn1=nwPrt(cnOrb,Vector3.new(1,1,1),cnOrb.CFrame*CFrame.Angles(math.rad(90),0,0),"Really black") rn1.Transparency=1 rn1.Mesh.MeshId="rbxassetid://3270017" local rn2=nwPrt(cnOrb,Vector3.new(1,1,1),cnOrb.CFrame,"Really black") rn2.Transparency=1 rn2.Mesh.MeshId="rbxassetid://3270017" local nt=0 local cs=nil for i=0,1,0.05 do cs=cnOrb.Mesh.Scale cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,100,i),Tween(cs.Y,100,i),Tween(cs.Z,100,i)) local fs=cnfx.Mesh.Scale cnfx.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,120,i)) cnfx.Transparency=cnfx.Transparency+0.05 rn1.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,60,i)) rn2.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,60,i)) rn1.CFrame=rn1.CFrame*CFrame.Angles(math.rad(10),math.rad(6),math.rad(3)) rn2.CFrame=rn2.CFrame*CFrame.Angles(math.rad(10),math.rad(6),math.rad(3)) rn1.Transparency=Tween(rn1.Transparency,0.8,i) rn2.Transparency=Tween(rn2.Transparency,0.8,i) local rs=cnr.Mesh.Scale cnr.Mesh.Scale=Vector3.new(Tween(rs.X,10,i),Tween(rs.Y,10,i),Tween(rs.Z,10,i)) nt=nt+1 if nt>=6 then local pls={} for _,v in pairs(game.Players:GetChildren()) do table.insert(pls,v) end local ry2,ht2,ps2=newRay(cnOrb.CFrame,cnOrb.CFrame*CFrame.new(0,-1,0),1000,pls) local pffx=nwPrt(mod3,Vector3.new(1,1,1),CFrame.new(ps2)*CFrame.new(0,10,-12),"Really black") pffx.Mesh.MeshId="rbxassetid://20329976" pffx.Mesh.Scale=Vector3.new(cs.X,cs.Y/5,cs.Z) debris:AddItem(pffx,2) table.insert(pfxt,pffx) nt=0 end wait() end local int=0 coroutine.wrap(function() for i=1,500 do rn1.CFrame=rn1.CFrame*CFrame.Angles(math.rad(10),math.rad(5),math.rad(5)) rn2.CFrame=rn2.CFrame*CFrame.Angles(math.rad(10),math.rad(5),math.rad(5)) nt=nt+1 int=int+1 local htd={p} for _,v in pairs(game:service"Players":GetChildren()) do pcall(function() for _,c in pairs(v.Character:GetChildren()) do if c:IsA("Part") and not inT(v,htd) and (cnOrb.CFrame.p-c.CFrame.p).magnitude<50 then v.Character:FindFirstChild("Humanoid").Health=v.Character:FindFirstChild("Humanoid").Health-2 v.Character:FindFirstChild("HumanoidRootPart").Velocity=Vector3.new(0,0,0) table.insert(htd,v) end end end) end htd={p} if int>=6 then for _,v in pairs(game:service"Players":GetChildren()) do pcall(function() for _,c in pairs(v.Character:GetChildren()) do if c:IsA("Part") and not inT(v,htd) and (cnOrb.CFrame.p-c.CFrame.p).magnitude<50 then table.insert(htd,v) local hfx=nwPrt(mod3,Vector3.new(1,1,1),c.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)),"Really black") hfx.Mesh.Scale=Vector3.new(2,2,2) hfx.Mesh.MeshType=3 debris:AddItem(hfx,2) coroutine.wrap(function() pcall(function() for i=0,1,0.05 do pcall(function() local hs=hfx.Mesh.Scale hfx.CFrame=Lerp(hfx.CFrame,cnOrb.CFrame,i) hfx.Mesh.Scale=Vector3.new(Tween(hs.X,0.1,i),Tween(hs.Y,0.1,i),Tween(hs.Z,0.1,i)) end) wait() end hfx:Destroy() end) end)() end end end) end int=0 end if nt>=4 then local pls={} for _,v in pairs(game.Players:GetChildren()) do table.insert(pls,v) end local ry2,ht2,ps2=newRay(cnOrb.CFrame,cnOrb.CFrame*CFrame.new(0,-1,0),1000,pls) local pffx=nwPrt(mod3,Vector3.new(1,1,1),CFrame.new(ps2)*CFrame.new(0,10,-12),"Really black") pffx.Transparency=0.4 pffx.Mesh.MeshId="rbxassetid://20329976" pffx.Mesh.Scale=Vector3.new(cs.X-10,cs.Y/5,cs.Z-10) debris:AddItem(pffx,2) table.insert(pfxt,pffx) nt=0 end wait() end cnOrb:Destroy() cnfx:Destroy() for _,v in pairs(mod3:GetChildren()) do v:Destroy() end orbt={} stlt={} chot={} cfxt={} pfxt={} end)() if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.NoIdl = false Debounces.on = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "m" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true --[[x = Instance.new("Sound",char) x.SoundId = "http://www.roblox.com/asset/?id=169445572" x.Looped = false x.Pitch = 1.1 x.Volume = 1 x:Play() x2 = Instance.new("Sound",char) x2.SoundId = "http://www.roblox.com/asset/?id=169380495" x2.Looped = false x2.Pitch = .7 x2.Volume = 1 wait(.1) x:Play() x2:Play() for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.4) if Debounces.on == false then break end wait() x:Destroy() x2:Destroy() end wait(1)]]-- local rng = Instance.new("Part", char) rng.Anchored = true rng.BrickColor = BrickColor.new("Really black") rng.CanCollide = false rng.FormFactor = 3 rng.Name = "Ring" rng.Size = Vector3.new(1, 1, 1) rng.Transparency = 0.35 rng.TopSurface = 0 rng.BottomSurface = 0 rng.Position = torso.Position - Vector3.new(0,5,0) rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) local rngm = Instance.new("SpecialMesh", rng) rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" rngm.Scale = Vector3.new(1, 1, 2) x = Instance.new("Sound",char) x.SoundId = "http://www.roblox.com/asset/?id=169445602" x.Looped = false x.Pitch = .7 x.Volume = 1 x:Play() coroutine.wrap(function() for i = 1, 60, 2 do rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) rng.Transparency = i/60 wait() end wait() rng:Destroy() end)() hum.WalkSpeed = 100 BV = Instance.new("BodyVelocity", torso) BV.maxForce = Vector3.new(0,200000,0) BV.P = 240000 BV.velocity = Vector3.new(0,700,0) for i = 1, 20 do hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1.8, .2) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1.5, -2) * CFrame.Angles(math.rad(0), 0, 0), 0.7) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end wait() end x:Destroy() BV:Destroy() --[[for i = 1, 30 do hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) if Debounces.on == false then break end wait() end]]-- if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then for i = 1, 30 do hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-120)), 0.3) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(120)), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) if Debounces.on == false then break end wait() end end Debounces.on = false Debounces.NoIdl = false local ry,ht,ps=nil,nil,nil while ht==nil do ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char}) wait() end z = Instance.new("Sound",char) z.SoundId = "rbxassetid://142070127" z.Volume = 1 wait(.1) z:Play() Landing() hum.WalkSpeed = 8 if Debounces.CanAttack == false then Debounces.CanAttack = true end end end end) ---------------------------------------------------- Grab = false mouse.KeyDown:connect(function(key) if key == "z" then Debounces.on = true Debounces.NoIdl = true if Grab == false then gp = nil con1=larm.Touched:connect(function(hit) -- this is grab ht = hit.Parent hum1=ht:FindFirstChild('Humanoid') if hum1 ~= nil then hum1.PlatformStand=true gp = ht Grab = true asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-3.3,0),CFrame.new(0,0,0)) asd.Parent = larm asd.Name = "asd" asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0) con1:disconnect() elseif hum1 ~= nil then con1:disconnect() wait() return end end) for i = 1, 18 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9) if Debounces.on == false then break end wait() end con1:disconnect() Debounces.on = false Debounces.NoIdl = false elseif Grab == true then Grab = false for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) if Debounces.on == false then end wait() end if gp ~= nil then for i,v in pairs(larm:GetChildren()) do if v.Name == "asd" and v:IsA("Weld") then v:Remove() end end bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) bv.maxForce = Vector3.new(400000, 400000, 400000) bv.P = 125000 bv.velocity = char.Head.CFrame.lookVector * 200 for i = 1, 12 do larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5) if Debounces.on == false then end wait() end-- ht=nil Spawn(function() wait(0.5) bv:Destroy() end) Debounces.on = false Debounces.NoIdl = false elseif ht == nil then wait() Grab = false Debounces.on = false Debounces.NoIdl = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if string.byte(key) == 52 then char.Humanoid.WalkSpeed = 21 end end) mouse.KeyUp:connect(function(key) if string.byte(key) == 52 then char.Humanoid.WalkSpeed = 5 end end) ---------------------------------------------------- Change = false mouse.KeyDown:connect(function(key) if key == "n" then if Change == false then Change = true stanceToggle = "Normal2" elseif Change == true then Change = false stanceToggle = "Normal" end end end) ---------------------------------------------------- local animpose = "Idle" local lastanimpose = "Idle" local sine = 0 local change = 1 local val = 0 local ffing = false local och = 0 ---------------------------------------------------- game:GetService("RunService").RenderStepped:connect(function() --[[if char.Humanoid.Jump == true then jump = true else jump = false end]] char.Humanoid.FreeFalling:connect(function(f) if f then ffing = true else ffing = false end end) sine = sine + change if jumpn == true then animpose = "Jumping" elseif ffing == true then animpose = "Freefalling" elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then animpose = "Idle" elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then animpose = "Walking" elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then animpose = "Running" end if animpose ~= lastanimpose then sine = 0 if Debounces.NoIdl == false then if animpose == "Idle" then for i = 1, 2 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) end elseif animpose == "Walking" then for i = 1, 2 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) end elseif animpose == "Running" then for i = 1, 2 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) end rs:wait(2) end else end end lastanimpose = animpose if Debounces.NoIdl == false then if animpose == "Idle" then if stanceToggle == "Normal" then change = 0.5 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(0),math.rad(20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) elseif stanceToggle == "Sitting" then rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(math.rad(-36+1*math.cos(sine/14)), math.rad(0), math.rad(-30)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.8, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) elseif stanceToggle == "Normal2" then rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(30+2*math.cos(sine/14)),math.rad(40),math.rad(40)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(30),math.rad(-40-2*math.cos(sine/14))), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(-40),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(40), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-16), math.rad(-20), math.rad(-14)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(10), math.rad(-30), math.rad(18)), 0.2) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.9, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) end elseif animpose == "Walking" then if stanceToggle == "Normal" then change = 1 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(90+2*math.cos(sine/7)), math.rad(0), math.rad(20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, math.rad(1) + -math.sin(sine/14)/2, math.rad(-30)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0-8*math.cos(sine/14)), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), math.rad(0+8*math.cos(sine/14)), math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-12) + -math.sin(sine/14)/2, math.rad(0-8*math.cos(sine/14)), 0), .4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-12) + math.sin(sine/14)/2, math.rad(0-8*math.cos(sine/14)), 0), .4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) elseif stanceToggle == "Normal2" then rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), math.sin(sine/14)/2)*CFrame.Angles(-math.sin(sine/14)/4, -math.sin(sine/14)/2, math.rad(20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, -math.sin(sine/14)/2, math.rad(-20)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), 0, math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.9, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) end elseif animpose == "Running" then change = 1 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10-20*math.cos(sine/4)/2), math.rad(-40+10*math.cos(sine/4)/2), math.rad(50-10*math.cos(sine/4)/2)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .5)*CFrame.Angles(math.rad(10+20*math.cos(sine/4)/2), math.rad(40-10*math.cos(sine/4)/2), math.rad(-50+10*math.cos(sine/4)/2)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4) cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) end end och=och+1 for _,v in pairs(orbt) do pcall(function() v.Mesh.Scale=Vector3.new(cns+(0.2*math.cos(och/12)),cns+(0.2*math.cos(och/10)),cns+(0.2*math.cos(och/8))) end) end for _,v in pairs(stlt) do pcall(function() v.CFrame=larm.CFrame*CFrame.new(0,-3.5-(cns/2),-0.1) end) end for _,v in pairs(chot) do pcall(function() v.CFrame=Lerp(v.CFrame,cnOrb.CFrame,0.1) v.Mesh.Scale=Vector3.new(Tween(v.Mesh.Scale.X,0,0.1),Tween(v.Mesh.Scale.Y,0,0.1),Tween(v.Mesh.Scale.Z,0,0.1)) end) end for _,v in pairs(cfxt) do pcall(function() local vs=v.Mesh.Scale v.Mesh.Scale=Vector3.new(vs.x+0.5,vs.y+0.1,vs.z+0.5) v.Transparency=v.Transparency+0.05 end) end for _,v in pairs(pfxt) do pcall(function() local vs=v.Mesh.Scale v.Mesh.Scale=Vector3.new(vs.x+2,vs.y+0.5,vs.z+2) v.Transparency=v.Transparency+0.025 end) end end)
52.313337
301
0.625649
bd0ae0bab2709826468ff05788d2dfb277d3e55c
317
rb
Ruby
app/controllers/verifications_controller.rb
kddnewton/wm-memories
644ad535da0ed1ace0c7adfc988b4b075d7c844b
[ "MIT" ]
1
2017-04-04T23:38:31.000Z
2017-04-04T23:38:31.000Z
app/controllers/verifications_controller.rb
kddeisz/wm-memories
3e465fc9530a333166186a89d785d9b60a7e9cda
[ "MIT" ]
279
2016-03-26T21:10:23.000Z
2021-03-29T12:47:38.000Z
app/controllers/verifications_controller.rb
kddnewton/wm-memories
644ad535da0ed1ace0c7adfc988b4b075d7c844b
[ "MIT" ]
null
null
null
# frozen_string_literal: true class VerificationsController < ApplicationController # GET /subscriptions/:subscription_id/verification # This needs to be a GET action as it's being linked from emails. def show @subscription = Subscription.find(params[:subscription_id]) @subscription.verify! end end
28.818182
67
0.776025
128fc4a900a7b158491c7e331005da7d55e6a029
182
cs
C#
Assets/Scripts/Platformer/Components/ScaleComponent.cs
tanis2000/binocle-unity-seed
17b5bc51b777b1734fcdc8fd07d5f73f4952f3bf
[ "MIT", "Unlicense" ]
6
2016-12-20T14:02:44.000Z
2021-02-06T03:55:43.000Z
Assets/Scripts/Platformer/Components/ScaleComponent.cs
tanis2000/binocle-unity-seed
17b5bc51b777b1734fcdc8fd07d5f73f4952f3bf
[ "MIT", "Unlicense" ]
null
null
null
Assets/Scripts/Platformer/Components/ScaleComponent.cs
tanis2000/binocle-unity-seed
17b5bc51b777b1734fcdc8fd07d5f73f4952f3bf
[ "MIT", "Unlicense" ]
null
null
null
using Binocle.Components; using UnityEngine; namespace App.Platformer { public class ScaleComponent : BaseMonoBehaviour { public Vector2 Scale = Vector2.one; } }
18.2
51
0.714286
14613994f6d8899321e5650ce7b22039bc96fc86
767
ts
TypeScript
Webclient/src/app/module/account/module.ts
Geigerkind/Jaylapp
1dbdb65da201cc1a093899600dc333b5775165b9
[ "MIT" ]
3
2020-03-24T17:01:10.000Z
2020-09-20T14:48:29.000Z
Webclient/src/app/module/account/module.ts
Geigerkind/Jaylapp
1dbdb65da201cc1a093899600dc333b5775165b9
[ "MIT" ]
1
2021-06-04T12:33:00.000Z
2021-06-04T12:33:00.000Z
Webclient/src/app/module/account/module.ts
Geigerkind/Jaylapp
1dbdb65da201cc1a093899600dc333b5775165b9
[ "MIT" ]
1
2020-01-05T23:28:44.000Z
2020-01-05T23:28:44.000Z
import {NgModule} from "@angular/core"; import {TranslateModule} from "@ngx-translate/core"; import {AccountComponent} from "./component/account/account"; import {NavigationBarComponent} from "./component/navigation_bar/navigation_bar"; import {AccountRouting} from "./routing"; import {CommonModule} from "@angular/common"; import {CaretButtonModule} from "../../template/button/caret_button/module"; import {AccountService} from "./service/account"; @NgModule({ declarations: [ AccountComponent, NavigationBarComponent ], imports: [ CommonModule, TranslateModule, AccountRouting, CaretButtonModule ], exports: [AccountComponent], providers: [AccountService] }) export class AccountModule { }
29.5
81
0.709257
88b05b740302be8ccfd63b4392ab77e223729a10
3,488
swift
Swift
final/PandemicReport/Services/ReportService.swift
grahamConnolly/TestingCoreDataRwSample
dddd200f4aeb20ebc6d2f10d3412f3aaf8144ab6
[ "Unlicense" ]
1
2021-02-20T12:30:46.000Z
2021-02-20T12:30:46.000Z
final/PandemicReport/Services/ReportService.swift
grahamConnolly/TestingCoreDataRwSample
dddd200f4aeb20ebc6d2f10d3412f3aaf8144ab6
[ "Unlicense" ]
null
null
null
final/PandemicReport/Services/ReportService.swift
grahamConnolly/TestingCoreDataRwSample
dddd200f4aeb20ebc6d2f10d3412f3aaf8144ab6
[ "Unlicense" ]
null
null
null
/// Copyright (c) 2020 Razeware LLC /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Software without restriction, including without limitation the rights /// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell /// copies of the Software, and to permit persons to whom the Software is /// furnished to do so, subject to the following conditions: /// /// The above copyright notice and this permission notice shall be included in /// all copies or substantial portions of the Software. /// /// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish, /// distribute, sublicense, create a derivative work, and/or sell copies of the /// Software in any work that is designed, intended, or marketed for pedagogical or /// instructional purposes related to programming, coding, application development, /// or information technology. Permission for such use, copying, modification, /// merger, publication, distribution, sublicensing, creation of derivative works, /// or sale is expressly withheld. /// /// This project and source code may use libraries or frameworks that are /// released under various Open-Source licenses. Use of those libraries and /// frameworks are governed by their own individual licenses. /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. import Foundation import CoreData public final class ReportService { // MARK: - Properties let managedObjectContext: NSManagedObjectContext let coreDataStack: CoreDataStack // MARK: - Initializers public init(managedObjectContext: NSManagedObjectContext, coreDataStack: CoreDataStack) { self.managedObjectContext = managedObjectContext self.coreDataStack = coreDataStack } } // MARK: - Public extension ReportService { @discardableResult public func add(_ location: String, numberTested: Int32, numberPositive: Int32, numberNegative: Int32) -> PandemicReport { let report = PandemicReport(context: managedObjectContext) report.id = UUID() report.dateReported = Date() report.numberTested = numberTested report.numberNegative = numberNegative report.numberPositive = numberPositive report.location = location coreDataStack.saveContext(managedObjectContext) return report } public func getReports() -> [PandemicReport]? { let reportFetch: NSFetchRequest<PandemicReport> = PandemicReport.fetchRequest() do { let results = try managedObjectContext.fetch(reportFetch) return results } catch let error as NSError { print("Fetch error: \(error) description: \(error.userInfo)") } return nil } @discardableResult public func update(_ report: PandemicReport) -> PandemicReport { coreDataStack.saveContext(managedObjectContext) return report } public func delete(_ report: PandemicReport) { managedObjectContext.delete(report) coreDataStack.saveContext(managedObjectContext) } }
40.55814
124
0.752867
f1385c1254f93e118b7e55d019992214218a6e67
97
rb
Ruby
lib/postgres_ext/arel/nodes.rb
bithium/postgres_ext
41e3a8e84185239314e9c0bb47901a879f5e240e
[ "MIT" ]
113
2015-01-02T22:17:38.000Z
2016-02-04T10:55:51.000Z
lib/postgres_ext/arel/nodes.rb
bithium/postgres_ext
41e3a8e84185239314e9c0bb47901a879f5e240e
[ "MIT" ]
31
2015-01-02T18:34:13.000Z
2016-02-02T23:51:31.000Z
lib/postgres_ext/arel/nodes.rb
bithium/postgres_ext
41e3a8e84185239314e9c0bb47901a879f5e240e
[ "MIT" ]
32
2017-09-11T08:02:58.000Z
2022-03-15T16:45:30.000Z
require 'postgres_ext/arel/nodes/array_nodes' require 'postgres_ext/arel/nodes/contained_within'
32.333333
50
0.85567
a3dcda836308f65b71208cabb95e918890c99ec5
4,784
java
Java
src/main/java/tv/dyndns/kishibe/qmaclone/client/statistics/PanelStatisticsRatingDistribution.java
nodchip/QMAClone
6f8ac083b069d233f0c9bcb722431117128a9cf1
[ "MIT" ]
13
2015-03-06T10:57:51.000Z
2022-03-19T13:14:45.000Z
src/main/java/tv/dyndns/kishibe/qmaclone/client/statistics/PanelStatisticsRatingDistribution.java
nodchip/QMAClone
6f8ac083b069d233f0c9bcb722431117128a9cf1
[ "MIT" ]
1,093
2020-04-26T05:30:36.000Z
2022-02-07T01:33:40.000Z
src/main/java/tv/dyndns/kishibe/qmaclone/client/statistics/PanelStatisticsRatingDistribution.java
nodchip/QMAClone
6f8ac083b069d233f0c9bcb722431117128a9cf1
[ "MIT" ]
4
2015-03-20T03:44:05.000Z
2020-12-31T13:31:10.000Z
//The MIT License // //Copyright (c) 2009 nodchip // //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell //copies of the Software, and to permit persons to whom the Software is //furnished to do so, subject to the following conditions: // //The above copyright notice and this permission notice shall be included in //all copies or substantial portions of the Software. // //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN //THE SOFTWARE. package tv.dyndns.kishibe.qmaclone.client.statistics; import java.util.Collections; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import tv.dyndns.kishibe.qmaclone.client.Service; import tv.dyndns.kishibe.qmaclone.client.packet.PacketRatingDistribution; import com.google.common.collect.Lists; import com.google.gwt.core.client.GWT; import com.google.gwt.safehtml.client.SafeHtmlTemplates; import com.google.gwt.safehtml.shared.SafeHtml; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.visualization.client.AbstractDataTable; import com.google.gwt.visualization.client.AbstractDataTable.ColumnType; import com.google.gwt.visualization.client.DataTable; import com.google.gwt.visualization.client.visualizations.corechart.AreaChart; import com.google.gwt.visualization.client.visualizations.corechart.Options; public class PanelStatisticsRatingDistribution extends VerticalPanel { private static final Logger logger = Logger.getLogger(PanelStatisticsRatingDistribution.class .getName()); public interface MyTemplate extends SafeHtmlTemplates { @Template("個人レーティングの計算式は<a href='http://apps.topcoder.com/wiki/display/tc/Algorithm+Competition+Rating+System' target='_blank'>Algorithm Competition Rating System - TopCoder Wiki</a><br>" + "最低レーティング…{0}<br>" + "最高レーティング…{1}") SafeHtml description(int min, int max); } private static final MyTemplate TEMPLATE = GWT.create(MyTemplate.class); private boolean first = true; private final AsyncCallback<PacketRatingDistribution> callbackGetRatingDistribution = new AsyncCallback<PacketRatingDistribution>() { public void onSuccess(PacketRatingDistribution result) { show(result); } public void onFailure(Throwable caught) { logger.log(Level.WARNING, "レーティング分布の取得に失敗しました", caught); } }; private void show(PacketRatingDistribution ratingDistribution) { int[] distribution = ratingDistribution.distribution; int min = ratingDistribution.min; int max = ratingDistribution.max; add(new RatingDistributionChart(distribution, min, max)); add(new HTML(TEMPLATE.description(min, max))); } protected void onLoad() { super.onLoad(); if (!first) { return; } first = false; Service.Util.getInstance().getRatingDistribution(callbackGetRatingDistribution); } private static class RatingDistributionChart extends AreaChart { public RatingDistributionChart(int[] distribution, int min, int max) { super(table(distribution, min, max), options()); } private static AbstractDataTable table(int[] distribution, int min, int max) { DataTable data = DataTable.create(); data.addRows(distribution.length); int saturateThreshold; if (distribution.length == 1) { saturateThreshold = distribution[0]; } else { List<Integer> sorted = Lists.newArrayList(); for (int rating : distribution) { sorted.add(rating); } Collections.sort(sorted); saturateThreshold = (int) (sorted.get(sorted.size() - 2) * 1.5); } data.addColumn(ColumnType.NUMBER, "レーティング"); data.addColumn(ColumnType.NUMBER, "人数"); for (int row = 0; row < distribution.length; ++row) { data.setValue(row, 0, (double) row / distribution.length * (max - min) + min); data.setValue(row, 1, Math.min(saturateThreshold, distribution[row])); } return data; } private static Options options() { Options options = Options.create(); options.setCurveType("function"); options.setWidth(600); options.setHeight(400); options.setTitle("レーティング分布"); return options; } } }
37.375
189
0.760242
b76dcf1ae86150c7d6fbe200281b2d2d37c82711
526
cpp
C++
Source/UTagsEd/Private/UTreeViewItem.cpp
SysOverdrive/UUtils
c6fde6b1ef9988c662b21c4135a3d3af42176fe1
[ "BSD-3-Clause" ]
null
null
null
Source/UTagsEd/Private/UTreeViewItem.cpp
SysOverdrive/UUtils
c6fde6b1ef9988c662b21c4135a3d3af42176fe1
[ "BSD-3-Clause" ]
null
null
null
Source/UTagsEd/Private/UTreeViewItem.cpp
SysOverdrive/UUtils
c6fde6b1ef9988c662b21c4135a3d3af42176fe1
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2018, Institute for Artificial Intelligence - University of Bremen // Author: Chifor Tudor #pragma once #include "UTreeViewItem.h" void FTreeViewItemData::AddChild(FTreeViewItemDataPtrType InChildNodePtr) { //Ensure the node is not already parented elsewhere //Todo: This should not be a problem though but you nerver know. //Add to the list of children the In Node Children.Add(InChildNodePtr); // Add the given node as a child and link its parent InChildNodePtr->ParentItemPtr = MakeShareable(this); }
30.941176
79
0.779468
d62177d3dbff759f6d2113e84b666e6815ed5fc4
2,927
cs
C#
aiof.messaging.data/AutoMappingProfile.cs
kamacharovs/aiof-messaging
75cb3d605f981c3be4353e7990537c77c25e8862
[ "MIT" ]
2
2021-01-28T00:39:15.000Z
2021-02-22T12:01:31.000Z
aiof.messaging.data/AutoMappingProfile.cs
kamacharovs/aiof-messaging
75cb3d605f981c3be4353e7990537c77c25e8862
[ "MIT" ]
1
2021-01-27T03:31:03.000Z
2021-01-27T03:31:03.000Z
aiof.messaging.data/AutoMappingProfile.cs
kamacharovs/aiof-messaging
75cb3d605f981c3be4353e7990537c77c25e8862
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Text; using AutoMapper; using Newtonsoft.Json; namespace aiof.messaging.data { public class AutoMappingProfile : Profile { public AutoMappingProfile() { CreateMap<IMessage, IEmailMessage>() .ForMember(x => x.PublicKey, o => o.MapFrom(s => s.PublicKey)) .ForMember(x => x.From, o => o.MapFrom(s => s.From)) .ForMember(x => x.To, o => o.MapFrom(s => s.To)) .ForMember(x => x.Subject, o => o.MapFrom(s => s.Subject)) .ForMember(x => x.Cc, o => o.MapFrom(s => string.Join(",", s.Cc))) .ForMember(x => x.Bcc, o => o.MapFrom(s => string.Join(",", s.Bcc))) .ForMember(x => x.IsBodyHtml, o => o.MapFrom(s => s.IsBodyHtml)) .ForMember(x => x.Body, o => o.MapFrom(s => s.Body)); CreateMap<IMessage, MessageEntity>() .ForMember(x => x.PartitionKey, o => o.MapFrom(s => s.Type.ToLowerInvariant())) .ForMember(x => x.RowKey, o => o.MapFrom(s => s.PublicKey.ToString())) .ForMember(x => x.PublicKey, o => o.MapFrom(s => s.PublicKey)) .ForMember(x => x.Type, o => o.MapFrom(s => s.Type)) .ForMember(x => x.UserId, o => o.MapFrom(s => s.UserId)) .ForMember(x => x.Created, o => o.MapFrom(s => s.Created)) .ForMember(x => x.Raw, o => o.MapFrom(s => JsonConvert.SerializeObject(s))) .ForAllOtherMembers(x => x.Ignore()); CreateMap<IMessage, MessageDeadLetterEntity>() .ForMember(x => x.RowKey, o => o.MapFrom(s => s.PublicKey.ToString().ToLowerInvariant())) .ForMember(x => x.PublicKey, o => o.MapFrom(s => s.PublicKey)) .ForMember(x => x.Type, o => o.MapFrom(s => s.Type)) .ForMember(x => x.UserId, o => o.MapFrom(s => s.UserId)) .ForMember(x => x.Created, o => o.MapFrom(s => s.Created)) .ForMember(x => x.IsTest, o => o.MapFrom(s => s.TestConfig != null)) .ForMember(x => x.Raw, o => o.MapFrom(s => JsonConvert.SerializeObject(s))) .ForAllOtherMembers(x => x.Ignore()); CreateMap<IEmailMessage, EmailMessageEntity>() .ForMember(x => x.From, o => o.MapFrom(s => s.From)) .ForMember(x => x.To, o => o.MapFrom(s => s.To)) .ForMember(x => x.Subject, o => o.MapFrom(s => s.Subject)) .ForMember(x => x.Cc, o => o.MapFrom(s => s.Cc)) .ForMember(x => x.Bcc, o => o.MapFrom(s => s.Bcc)) .ForMember(x => x.IsBodyHtml, o => o.MapFrom(s => s.IsBodyHtml)) .ForMember(x => x.Body, o => o.MapFrom(s => s.Body)) .ForMember(x => x.Raw, o => o.MapFrom(s => JsonConvert.SerializeObject(s))); } } }
52.267857
105
0.511787
441c113733e1aeb832085b14729dc40ccaa8e221
1,783
py
Python
fractals/pytorch/loss_train_data.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
1
2019-10-11T21:36:06.000Z
2019-10-11T21:36:06.000Z
fractals/pytorch/loss_train_data.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
null
null
null
fractals/pytorch/loss_train_data.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
null
null
null
import os import random import numpy as np from PIL import Image def get_loss_train_data(): if not os.path.exists('.data/DIV2K'): # DIV2K Home Page: https://data.vision.ee.ethz.ch/cvl/DIV2K/ # DIV2K Training Set: http://data.vision.ee.ethz.ch/cvl/DIV2K/DIV2K_train_HR.zip raise os.error('No DIV2K Training set found in .data/DIV2K directory. Download http://data.vision.ee.ethz.ch/cvl/DIV2K/DIV2K_train_HR.zip') def format_loss_train_input_image(img): """ Crops any image larger than 1920x1080 and formats the pixels to numpy array of shape [batches, channels, height, width] """ data = np.asarray(img, dtype=np.uint8) img.close() data = data.astype(dtype=np.float32) / 255.0 height, width, channels = data.shape if height > width: data = np.transpose(data, (1, 0, 2)) x = height height = width width = x if height > 1080: starty = height // 2 - 540 endy = starty + 1080 data = data[starty:endy, :, :] if width > 1920: startx = width // 2 - 960 endx = startx + 1920 data = data[:, startx:endx, :] return np.transpose(np.reshape(data, [1, 1080, 1920, 3]), (0, 3, 1, 2)) img_names = os.listdir('.data/DIV2K') def get_rand(): i = random.randint(0, len(img_names) - 1) filename = f'.data/DIV2K/{img_names[i]}' img = Image.open(filename) img.load() if img.height < 1080 or img.width < 1080 or (img.height < 1920 and img.width < 1920): img.close() return None return img x = get_rand() while x == None: x = get_rand() return format_loss_train_input_image(x)
33.018519
147
0.581604
653f5fe53feddd38d5633e3b0003905eef43a309
15,775
css
CSS
public/assets/css/preloader_miabartAfrik.min.css
Richejoy/miabartafrik-website-v2
47ea25b70eb97b9562a5597afcc7b126cc891a0b
[ "MIT" ]
null
null
null
public/assets/css/preloader_miabartAfrik.min.css
Richejoy/miabartafrik-website-v2
47ea25b70eb97b9562a5597afcc7b126cc891a0b
[ "MIT" ]
null
null
null
public/assets/css/preloader_miabartAfrik.min.css
Richejoy/miabartafrik-website-v2
47ea25b70eb97b9562a5597afcc7b126cc891a0b
[ "MIT" ]
null
null
null
.miabartafrik_preloader_page{top:0;left:0;z-index:99999;position:fixed;height:100%;width:100%;text-align:center;background-image:linear-gradient(161deg,rgba(121,121,121,.02) 0,rgba(121,121,121,.02) 16.667%,rgba(193,193,193,.02) 16.667%,rgba(193,193,193,.02) 33.334%,rgba(177,177,177,.02) 33.334%,rgba(177,177,177,.02) 50.001000000000005%,rgba(5,5,5,.02) 50.001%,rgba(5,5,5,.02) 66.668%,rgba(229,229,229,.02) 66.668%,rgba(229,229,229,.02) 83.33500000000001%,rgba(211,211,211,.02) 83.335%,rgba(211,211,211,.02) 100.002%),linear-gradient(45deg,rgba(223,223,223,.02) 0,rgba(223,223,223,.02) 14.286%,rgba(70,70,70,.02) 14.286%,rgba(70,70,70,.02) 28.572%,rgba(109,109,109,.02) 28.572%,rgba(109,109,109,.02) 42.858%,rgba(19,19,19,.02) 42.858%,rgba(19,19,19,.02) 57.144%,rgba(180,180,180,.02) 57.144%,rgba(180,180,180,.02) 71.42999999999999%,rgba(63,63,63,.02) 71.43%,rgba(63,63,63,.02) 85.71600000000001%,rgba(87,87,87,.02) 85.716%,rgba(87,87,87,.02) 100.002%),linear-gradient(337deg,rgba(142,142,142,.02) 0,rgba(142,142,142,.02) 20%,rgba(164,164,164,.02) 20%,rgba(164,164,164,.02) 40%,rgba(203,203,203,.02) 40%,rgba(203,203,203,.02) 60%,rgba(228,228,228,.02) 60%,rgba(228,228,228,.02) 80%,rgba(54,54,54,.02) 80%,rgba(54,54,54,.02) 100%),linear-gradient(314deg,rgba(187,187,187,.02) 0,rgba(187,187,187,.02) 12.5%,rgba(170,170,170,.02) 12.5%,rgba(170,170,170,.02) 25%,rgba(214,214,214,.02) 25%,rgba(214,214,214,.02) 37.5%,rgba(187,187,187,.02) 37.5%,rgba(187,187,187,.02) 50%,rgba(190,190,190,.02) 50%,rgba(190,190,190,.02) 62.5%,rgba(6,6,6,.02) 62.5%,rgba(6,6,6,.02) 75%,rgba(206,206,206,.02) 75%,rgba(206,206,206,.02) 87.5%,rgba(171,171,171,.02) 87.5%,rgba(171,171,171,.02) 100%),linear-gradient(300deg,rgba(243,243,243,.01) 0,rgba(243,243,243,.01) 12.5%,rgba(209,209,209,.01) 12.5%,rgba(209,209,209,.01) 25%,rgba(179,179,179,.01) 25%,rgba(179,179,179,.01) 37.5%,rgba(3,3,3,.01) 37.5%,rgba(3,3,3,.01) 50%,rgba(211,211,211,.01) 50%,rgba(211,211,211,.01) 62.5%,rgba(151,151,151,.01) 62.5%,rgba(151,151,151,.01) 75%,rgba(16,16,16,.01) 75%,rgba(16,16,16,.01) 87.5%,rgba(242,242,242,.01) 87.5%,rgba(242,242,242,.01) 100%),linear-gradient(6deg,rgba(31,31,31,.02) 0,rgba(31,31,31,.02) 20%,rgba(193,193,193,.02) 20%,rgba(193,193,193,.02) 40%,rgba(139,139,139,.02) 40%,rgba(139,139,139,.02) 60%,rgba(14,14,14,.02) 60%,rgba(14,14,14,.02) 80%,rgba(122,122,122,.02) 80%,rgba(122,122,122,.02) 100%),linear-gradient(279deg,rgba(190,190,190,.02) 0,rgba(190,190,190,.02) 14.286%,rgba(160,160,160,.02) 14.286%,rgba(160,160,160,.02) 28.572%,rgba(23,23,23,.02) 28.572%,rgba(23,23,23,.02) 42.858%,rgba(60,60,60,.02) 42.858%,rgba(60,60,60,.02) 57.144%,rgba(149,149,149,.02) 57.144%,rgba(149,149,149,.02) 71.42999999999999%,rgba(4,4,4,.02) 71.43%,rgba(4,4,4,.02) 85.71600000000001%,rgba(50,50,50,.02) 85.716%,rgba(50,50,50,.02) 100.002%),linear-gradient(109deg,rgba(124,124,124,.03) 0,rgba(124,124,124,.03) 12.5%,rgba(61,61,61,.03) 12.5%,rgba(61,61,61,.03) 25%,rgba(187,187,187,.03) 25%,rgba(187,187,187,.03) 37.5%,rgba(207,207,207,.03) 37.5%,rgba(207,207,207,.03) 50%,rgba(206,206,206,.03) 50%,rgba(206,206,206,.03) 62.5%,rgba(118,118,118,.03) 62.5%,rgba(118,118,118,.03) 75%,rgba(89,89,89,.03) 75%,rgba(89,89,89,.03) 87.5%,rgba(96,96,96,.03) 87.5%,rgba(96,96,96,.03) 100%),linear-gradient(329deg,rgba(35,35,35,.02) 0,rgba(35,35,35,.02) 20%,rgba(246,246,246,.02) 20%,rgba(246,246,246,.02) 40%,rgba(118,118,118,.02) 40%,rgba(118,118,118,.02) 60%,rgba(245,245,245,.02) 60%,rgba(245,245,245,.02) 80%,rgba(140,140,140,.02) 80%,rgba(140,140,140,.02) 100%),linear-gradient(90deg,#4f4f4f,#4f4f4f)}.miabartafrik_preloader_logo{width:100px;height:100px;object-fit:cover;object-position:top}.miabartafrik_preloader_logo,.miabartafrik_preloader_previewArea{top:60%}.miabartafrik_preloader_previewArea{-webkit-animation-delay:-.2s;animation-delay:-.2s;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);margin-top:10px;width:100%;text-align:center;position:absolute}.miabartafrik_preloader_logo{max-width:90%;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%);margin:-10px auto 0;position:relative;border-radius:50%}.ball-scale>div,.line-scale>div,.miabartafrik_preloader_ballPulse>div{margin:2px;display:inline-block;background:#fff}.miabartafrik_preloader_ballPulse>div{width:15px;height:15px;border-radius:100%;-webkit-animation:miabartafrik_preloader_ballPulse .75s infinite cubic-bezier(.2,.68,.18,1.08);animation:miabartafrik_preloader_ballPulse .75s infinite cubic-bezier(.2,.68,.18,1.08)}.miabartafrik_preloader_ballPulse>div:nth-child(1){-webkit-animation-delay:-.36s;animation-delay:-.36s}.miabartafrik_preloader_ballPulse>div:nth-child(2){-webkit-animation-delay:-.24s;animation-delay:-.24s}.miabartafrik_preloader_ballPulse>div:nth-child(3){-webkit-animation-delay:-.12s;animation-delay:-.12s}@-webkit-keyframes miabartafrik_preloader_ballPulse{0%,80%{-webkit-transform:scale(1);transform:scale(1);opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);opacity:.7}}@keyframes miabartafrik_preloader_ballPulse{0%,80%{-webkit-transform:scale(1);transform:scale(1);opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);opacity:.7}}.ball-clip-rotate-pulse{position:relative;-webkit-transform:translateY(-15px);-ms-transform:translateY(-15px);transform:translateY(-15px);display:inline-block}.ball-clip-rotate-pulse>div{-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute;top:0;left:0;border-radius:100%}.ball-clip-rotate-pulse>div:first-child{height:36px;width:36px;top:7px;left:-7px;-webkit-animation:ball-clip-rotate-pulse-scale 1s 0s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-scale 1s 0s cubic-bezier(.09,.57,.49,.9) infinite}.ball-clip-rotate-pulse>div:last-child{position:absolute;width:50px;height:50px;left:-16px;top:-2px;background:0 0;border:2px solid;-webkit-animation:ball-clip-rotate-pulse-rotate 1s 0s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-rotate 1s 0s cubic-bezier(.09,.57,.49,.9) infinite;-webkit-animation-duration:1s;animation-duration:1s}@-webkit-keyframes ball-clip-rotate-pulse-rotate{0%{-webkit-transform:rotate(0) scale(1);transform:rotate(0) scale(1)}50%{-webkit-transform:rotate(180deg) scale(.6);transform:rotate(180deg) scale(.6)}100%{-webkit-transform:rotate(360deg) scale(1);transform:rotate(360deg) scale(1)}}@keyframes ball-clip-rotate-pulse-rotate{0%{-webkit-transform:rotate(0) scale(1);transform:rotate(0) scale(1)}50%{-webkit-transform:rotate(180deg) scale(.6);transform:rotate(180deg) scale(.6)}100%{-webkit-transform:rotate(360deg) scale(1);transform:rotate(360deg) scale(1)}}@-webkit-keyframes ball-clip-rotate-pulse-scale{30%{-webkit-transform:scale(.3);transform:scale(.3)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes ball-clip-rotate-pulse-scale{30%{-webkit-transform:scale(.3);transform:scale(.3)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes square-spin{25%{-webkit-transform:perspective(100px) rotateX(180deg) rotateY(0);transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{-webkit-transform:perspective(100px) rotateX(180deg) rotateY(180deg);transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{-webkit-transform:perspective(100px) rotateX(0) rotateY(180deg);transform:perspective(100px) rotateX(0) rotateY(180deg)}100%{-webkit-transform:perspective(100px) rotateX(0) rotateY(0);transform:perspective(100px) rotateX(0) rotateY(0)}}@keyframes square-spin{25%{-webkit-transform:perspective(100px) rotateX(180deg) rotateY(0);transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{-webkit-transform:perspective(100px) rotateX(180deg) rotateY(180deg);transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{-webkit-transform:perspective(100px) rotateX(0) rotateY(180deg);transform:perspective(100px) rotateX(0) rotateY(180deg)}100%{-webkit-transform:perspective(100px) rotateX(0) rotateY(0);transform:perspective(100px) rotateX(0) rotateY(0)}}.square-spin{display:inline-block}.square-spin>div{width:50px;height:50px;-webkit-animation:square-spin 3s 0s cubic-bezier(.09,.57,.49,.9) infinite;animation:square-spin 3s 0s cubic-bezier(.09,.57,.49,.9) infinite}.cube-transition{position:relative;-webkit-transform:translate(-25px,-25px);-ms-transform:translate(-25px,-25px);transform:translate(-25px,-25px);display:inline-block}.cube-transition>div{width:15px;height:15px;position:absolute;top:-5px;left:-5px;-webkit-animation:cube-transition 1.6s 0s infinite ease-in-out;animation:cube-transition 1.6s 0s infinite ease-in-out}.cube-transition>div:last-child{-webkit-animation-delay:-.8s;animation-delay:-.8s}@-webkit-keyframes cube-transition{25%{-webkit-transform:translateX(50px) scale(.5) rotate(-90deg);transform:translateX(50px) scale(.5) rotate(-90deg)}50%{-webkit-transform:translate(50px,50px) rotate(-180deg);transform:translate(50px,50px) rotate(-180deg)}75%{-webkit-transform:translateY(50px) scale(.5) rotate(-270deg);transform:translateY(50px) scale(.5) rotate(-270deg)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes cube-transition{25%{-webkit-transform:translateX(50px) scale(.5) rotate(-90deg);transform:translateX(50px) scale(.5) rotate(-90deg)}50%{-webkit-transform:translate(50px,50px) rotate(-180deg);transform:translate(50px,50px) rotate(-180deg)}75%{-webkit-transform:translateY(50px) scale(.5) rotate(-270deg);transform:translateY(50px) scale(.5) rotate(-270deg)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.ball-scale>div{border-radius:100%;height:60px;width:60px;-webkit-animation:ball-scale 1s 0s ease-in-out infinite;animation:ball-scale 1s 0s ease-in-out infinite}@-webkit-keyframes ball-scale{0%{-webkit-transform:scale(0);transform:scale(0)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}@keyframes ball-scale{0%{-webkit-transform:scale(0);transform:scale(0)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.line-scale>div{-webkit-animation-fill-mode:both;animation-fill-mode:both;width:5px;height:50px;border-radius:2px}.line-scale>div:nth-child(1){-webkit-animation:line-scale 1s -.5s infinite cubic-bezier(.2,.68,.18,1.08);animation:line-scale 1s -.5s infinite cubic-bezier(.2,.68,.18,1.08)}.line-scale>div:nth-child(2){-webkit-animation:line-scale 1s -.4s infinite cubic-bezier(.2,.68,.18,1.08);animation:line-scale 1s -.4s infinite cubic-bezier(.2,.68,.18,1.08)}.line-scale>div:nth-child(3){-webkit-animation:line-scale 1s -.3s infinite cubic-bezier(.2,.68,.18,1.08);animation:line-scale 1s -.3s infinite cubic-bezier(.2,.68,.18,1.08)}.line-scale>div:nth-child(4){-webkit-animation:line-scale 1s -.2s infinite cubic-bezier(.2,.68,.18,1.08);animation:line-scale 1s -.2s infinite cubic-bezier(.2,.68,.18,1.08)}.line-scale>div:nth-child(5){-webkit-animation:line-scale 1s -.1s infinite cubic-bezier(.2,.68,.18,1.08);animation:line-scale 1s -.1s infinite cubic-bezier(.2,.68,.18,1.08)}@-webkit-keyframes line-scale{0%,100%{-webkit-transform:scaley(1);transform:scaley(1)}50%{-webkit-transform:scaley(.4);transform:scaley(.4)}}@keyframes line-scale{0%,100%{-webkit-transform:scaley(1);transform:scaley(1)}50%{-webkit-transform:scaley(.4);transform:scaley(.4)}}.ball-scale-multiple{position:relative;-webkit-transform:translateY(30px);-ms-transform:translateY(30px);transform:translateY(30px);display:inline-block}.ball-scale-multiple>div{border-radius:100%;position:absolute;left:-30px;top:0;opacity:0;margin:0;width:50px;height:50px;-webkit-animation:ball-scale-multiple 1s 0s linear infinite;animation:ball-scale-multiple 1s 0s linear infinite}.ball-scale-multiple>div:nth-child(2),.ball-scale-multiple>div:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}@-webkit-keyframes ball-scale-multiple{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}5%{opacity:1}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}@keyframes ball-scale-multiple{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}5%{opacity:1}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.miabartafrik_preloader_ballPulse-sync{display:inline-block}.miabartafrik_preloader_ballPulse-sync>div{width:15px;height:15px;border-radius:100%;margin:2px;-webkit-animation-fill-mode:both;animation-fill-mode:both;display:inline-block}.miabartafrik_preloader_ballPulse-sync>div:nth-child(1){-webkit-animation:miabartafrik_preloader_ballPulse-sync .6s -.21s infinite ease-in-out;animation:miabartafrik_preloader_ballPulse-sync .6s -.21s infinite ease-in-out}.miabartafrik_preloader_ballPulse-sync>div:nth-child(2){-webkit-animation:miabartafrik_preloader_ballPulse-sync .6s -.14s infinite ease-in-out;animation:miabartafrik_preloader_ballPulse-sync .6s -.14s infinite ease-in-out}.miabartafrik_preloader_ballPulse-sync>div:nth-child(3){-webkit-animation:miabartafrik_preloader_ballPulse-sync .6s -70ms infinite ease-in-out;animation:miabartafrik_preloader_ballPulse-sync .6s -70ms infinite ease-in-out}@-webkit-keyframes miabartafrik_preloader_ballPulse-sync{33%{-webkit-transform:translateY(10px);transform:translateY(10px)}66%{-webkit-transform:translateY(-10px);transform:translateY(-10px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes miabartafrik_preloader_ballPulse-sync{33%{-webkit-transform:translateY(10px);transform:translateY(10px)}66%{-webkit-transform:translateY(-10px);transform:translateY(-10px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.transparent-circle{display:inline-block;border-top:.5em solid rgba(255,255,255,.2);border-right:.5em solid rgba(255,255,255,.2);border-bottom:.5em solid rgba(255,255,255,.2);border-left:.5em solid #fff;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:transparent-circle 1.1s infinite linear;animation:transparent-circle 1.1s infinite linear;width:50px;height:50px;border-radius:50%}.transparent-circle:after{border-radius:50%;width:10em;height:10em}@-webkit-keyframes transparent-circle{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes transparent-circle{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ball-spin-fade-loader{position:relative;top:-10px;left:-10px;display:inline-block}.ball-spin-fade-loader>div{width:15px;height:15px;border-radius:100%;margin:2px;position:absolute;-webkit-animation:ball-spin-fade-loader 1s infinite linear;animation:ball-spin-fade-loader 1s infinite linear}.ball-spin-fade-loader>div:nth-child(1){top:25px;left:0;animation-delay:-.84s;-webkit-animation-delay:-.84s}.ball-spin-fade-loader>div:nth-child(2){top:17.05px;left:17.05px;animation-delay:-.72s;-webkit-animation-delay:-.72s}.ball-spin-fade-loader>div:nth-child(3){top:0;left:25px;animation-delay:-.6s;-webkit-animation-delay:-.6s}.ball-spin-fade-loader>div:nth-child(4){top:-17.05px;left:17.05px;animation-delay:-.48s;-webkit-animation-delay:-.48s}.ball-spin-fade-loader>div:nth-child(5){top:-25px;left:0;animation-delay:-.36s;-webkit-animation-delay:-.36s}.ball-spin-fade-loader>div:nth-child(6){top:-17.05px;left:-17.05px;animation-delay:-.24s;-webkit-animation-delay:-.24s}.ball-spin-fade-loader>div:nth-child(7){top:0;left:-25px;animation-delay:-.12s;-webkit-animation-delay:-.12s}.ball-spin-fade-loader>div:nth-child(8){top:17.05px;left:-17.05px;animation-delay:0s;-webkit-animation-delay:0s}@-webkit-keyframes ball-spin-fade-loader{50%{opacity:.3;-webkit-transform:scale(.4);transform:scale(.4)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes ball-spin-fade-loader{50%{opacity:.3;-webkit-transform:scale(.4);transform:scale(.4)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}
15,775
15,775
0.763423
ff73f9177c9f2dd2b1e19e713669fdd3ecf27baf
316
py
Python
Aulas/Mundo 1/030.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
2
2021-07-29T18:58:02.000Z
2021-10-29T21:11:22.000Z
Aulas/Mundo 1/030.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
null
null
null
Aulas/Mundo 1/030.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
null
null
null
num = int(input('\033[1;31mMe diga um número \033[m')) resultado = num % 2 par = (0) impar = (1) if resultado == impar: print('\033[1;32mO número\033[m \033[1;31m{}\033[m \033[1;34mé impar\033[m'.format(num)) else: print('\033[1;33mO número\033[m \033[1;31m{}\033[m \033[1;34mé par\033[m'.format(num))
39.5
93
0.623418
8c87014a913dc2a5357e0f4707a0106d782d36a8
4,118
go
Go
pkg/azure/cli.go
martyni/rovergo
15519f05fd424be1d69ed00613a8517ec5d1347b
[ "MIT" ]
12
2021-05-28T22:39:07.000Z
2022-03-17T23:31:25.000Z
pkg/azure/cli.go
martyni/rovergo
15519f05fd424be1d69ed00613a8517ec5d1347b
[ "MIT" ]
80
2021-05-27T15:43:57.000Z
2022-02-08T14:31:05.000Z
pkg/azure/cli.go
martyni/rovergo
15519f05fd424be1d69ed00613a8517ec5d1347b
[ "MIT" ]
6
2021-06-17T04:59:36.000Z
2022-03-09T12:45:47.000Z
// // Rover - Azure CLI // * Interactions with the Azure CLI // * Ben C, May 2021 // package azure import ( "encoding/json" "fmt" "strings" "github.com/aztfmod/rover/pkg/command" "github.com/aztfmod/rover/pkg/console" ) // AccountUser holds details of the signed in user, might be a managed identity // populated with values from 'az account show' type AccountUser struct { AssignedIdentityInfo string `json:"assignedIdentityInfo,omitempty"` Name string `json:"name,omitempty"` Usertype string `json:"type,omitempty"` } // Subscription holds details fetched from `az account show` command type Subscription struct { EnvironmentName string TenantID string Name string ID string User AccountUser } // Identity holds an Azure AD identity; user type signedInUserIdentity struct { UserPrincipalName string ObjectType string ObjectID string Mail string MailNickname string DisplayName string } type signedInServicePrincipalIdentity struct { DisplayName string `json:"displayName"` ObjectID string `json:"objectId"` ObjectType string `json:"objectType"` ClientID string `json:"appId"` } // VMIdentity is the output of 'az vm identity show' type VMIdentity struct { PrincipalID string `json:"principalID,omitempty"` TenantID string `json:"tenantID,omitempty"` IdentityType string `json:"type,omitempty"` UserAssignedIdentities map[string]json.RawMessage `json:"userAssignedIdentities,omitempty"` } type Identity struct { DisplayName string ObjectID string ObjectType string ClientID string } // GetSubscription gets the current logged in details from the Azure CLI // Will fail and exit if they aren't found func GetSubscription() (*Subscription, error) { err := command.CheckCommand("az") if err != nil { return nil, err } cmdRes, err := command.QuickRun("az", "account", "show", "-o=json") if err != nil { return nil, err } sub := &Subscription{} err = json.Unmarshal([]byte(cmdRes), sub) if err != nil { return nil, err } console.Successf("Azure subscription is: %s (%s)\n", sub.Name, sub.ID) return sub, nil } // GetSignedInIdentity gets the current logged in user from the Azure CLI // Will fail and exit if they aren't found // Will Fail if az is authenticated with a service principal. Use the GetSignedInIdentityServicePrincipal function instead func GetSignedInIdentity() (*Identity, error) { err := command.CheckCommand("az") if err != nil { return nil, err } cmdRes, err := command.QuickRun("az", "ad", "signed-in-user", "show", "-o=json") if err != nil { return nil, err } ident := &signedInUserIdentity{} err = json.Unmarshal([]byte(cmdRes), ident) if err != nil { return nil, err } basicIdent := &Identity{ DisplayName: ident.DisplayName, ObjectID: ident.ObjectID, ObjectType: ident.ObjectType, } return basicIdent, nil } // GetSignedInIdentity gets the current logged in service principal from the Azure CLI // note az ad signed-in-user show does not work for sp's. see https://github.com/Azure/azure-cli/issues/10439 func GetSignedInIdentityServicePrincipal() (*Identity, error) { account, err := GetSubscription() if err != nil { return nil, err } if !strings.EqualFold(account.User.Usertype, "servicePrincipal") { return nil, fmt.Errorf("Currently signed in user is not a Service Principal") } // When signed in as an SP, the client id of the Service Principal is populated into the user.name property clientID := account.User.Name cmdRes, err := command.QuickRun("az", "ad", "sp", "show", fmt.Sprintf("--id=%s", clientID)) if err != nil { return nil, err } ident := &signedInServicePrincipalIdentity{} err = json.Unmarshal([]byte(cmdRes), ident) if err != nil { return nil, err } basicIdent := &Identity{ DisplayName: ident.DisplayName, ObjectID: ident.ObjectID, ObjectType: ident.ObjectType, ClientID: ident.ClientID, } return basicIdent, nil }
26.915033
122
0.687712
0d500192fe5d34813d49c8fa9bd1680e85963c36
2,206
cs
C#
C05/NET6/Data Transfer Object/Controllers/CustomersController.cs
wagnerhsu/packt-An-Atypical-ASP.NET-Core-6-Design-Patterns-Guide
4d9b2402bd0b58635a9c6cd15bcc7bcb9c01aa45
[ "MIT" ]
null
null
null
C05/NET6/Data Transfer Object/Controllers/CustomersController.cs
wagnerhsu/packt-An-Atypical-ASP.NET-Core-6-Design-Patterns-Guide
4d9b2402bd0b58635a9c6cd15bcc7bcb9c01aa45
[ "MIT" ]
null
null
null
C05/NET6/Data Transfer Object/Controllers/CustomersController.cs
wagnerhsu/packt-An-Atypical-ASP.NET-Core-6-Design-Patterns-Guide
4d9b2402bd0b58635a9c6cd15bcc7bcb9c01aa45
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebApi.Models; using WebApi.Services; using Microsoft.AspNetCore.Mvc; namespace WebApi.Controllers { [Route("[controller]")] [ApiController] public class CustomersController : ControllerBase { private readonly CustomerRepository _customerService = new CustomerRepository(); // GET api/customers [HttpGet] public ActionResult<IEnumerable<CustomerSummaryDto>> Get() { var customers = _customerService.ReadAll(); var dto = customers.Select(customer => new CustomerSummaryDto { Id = customer.Id, Name = customer.Name, TotalNumberOfContracts = customer.Contracts.Count, NumberOfOpenContracts = customer.Contracts.Count(x => x.Work.State != WorkState.Completed) }).ToArray(); return dto; } // GET api/customers/1 [HttpGet("{id}")] public ActionResult<CustomerDetailsDto> Get(int id) { var customer = _customerService.ReadOne(id); if (customer == default(Customer)) { return NotFound(); } var dto = new CustomerDetailsDto { Id = customer.Id, Name = customer.Name, Contracts = customer.Contracts.Select(contract => new ContractDetailsDto { Id = contract.Id, Name = contract.Name, Description = contract.Description, // Flattening PrimaryContact PrimaryContactEmail = contract.PrimaryContact.Email, PrimaryContactFirstname = contract.PrimaryContact.Firstname, PrimaryContactLastname = contract.PrimaryContact.Lastname, // Flattening Work WorkDone = contract.Work.Done, WorkState = contract.Work.State, WorkTotal = contract.Work.Total }) }; return Ok(dto); } } }
33.424242
106
0.554397
e28300e9cd13a25594ef218075078f5d00374093
10,856
py
Python
model/metric.py
NLP-Discourse-SoochowU/sota_end2end_parser
fc3fde603b12fb41eb1cc40df79495569318bd88
[ "Apache-2.0" ]
1
2021-12-20T07:56:13.000Z
2021-12-20T07:56:13.000Z
model/metric.py
NLP-Discourse-SoochowU/sota_end2end_parser
fc3fde603b12fb41eb1cc40df79495569318bd88
[ "Apache-2.0" ]
null
null
null
model/metric.py
NLP-Discourse-SoochowU/sota_end2end_parser
fc3fde603b12fb41eb1cc40df79495569318bd88
[ "Apache-2.0" ]
1
2021-08-16T07:27:02.000Z
2021-08-16T07:27:02.000Z
# -*- coding: utf-8 -*- """ @Author: Lyzhang @Date: 2019.7.16 @Description: micro + standard parseval """ import numpy as np import torch from config import * from path_config import MODELS2SAVE class Metrics(object): def __init__(self, log_file=None): self.log_file = log_file self.true_all = [0., 0., 0., 0.] self.span_all = 0. self.dev_f_max, self.test_f_max = 0., 0. self.dev_s_max, self.test_s_max = 0., 0. self.dev_n_max, self.test_n_max = 0., 0. self.dev_r_max, self.test_r_max = 0., 0. self.dev_f_m_scores = [0., 0., 0., 0.] self.test_f_m_scores, self.test_s_m_scores = [0., 0., 0., 0.], [0., 0., 0., 0.] self.test_n_m_scores, self.test_r_m_scores = [0., 0., 0., 0.], [0., 0., 0., 0.] self.ns_pre, self.ns_gold = [0., 0., 0.], [0., 0., 0.] self.rel_pre_true, self.rel_gold, self.rel_pre_all = [0. for _ in range(18)], [0. for _ in range(18)], \ [0. for _ in range(18)] self.ns_scores = [0., 0., 0.] self.rel_scores_p, self.rel_scores_r, self.rel_scores_f = [0. for _ in range(18)], [0. for _ in range(18)], \ [0. for _ in range(18)] def init_all(self): self.true_all, self.span_all = [0., 0., 0., 0.], 0. self.ns_pre, self.ns_gold = [0., 0., 0.], [0., 0., 0.] self.rel_pre_true, self.rel_gold, self.rel_pre_all = [0. for _ in range(18)], [0. for _ in range(18)], \ [0. for _ in range(18)] def eval_(self, goldtrees, predtrees, model=None, type_="dev"): self.init_all() for idx in range(len(goldtrees)): gold_ids = self.get_all_span_info(goldtrees[idx]) pred_ids = self.get_all_span_info(predtrees[idx]) self.eval_all(gold_ids, pred_ids) better = self.report(model=model, type_=type_, predtrees=predtrees) return better def eval_all(self, gold_ids, pred_ids): gold_s_ids, gold_ns_ids, gold_rel_ids = gold_ids pred_s_ids, pred_ns_ids, pred_rel_ids = pred_ids allspan = [span for span in gold_s_ids if span in pred_s_ids] allspan_gold_idx = [gold_s_ids.index(span) for span in allspan] allspan_pred_idx = [pred_s_ids.index(span) for span in allspan] all_gold_ns = [gold_ns_ids[idx] for idx in allspan_gold_idx] all_pred_ns = [pred_ns_ids[idx] for idx in allspan_pred_idx] all_gold_rel = [gold_rel_ids[idx] for idx in allspan_gold_idx] all_pred_rel = [pred_rel_ids[idx] for idx in allspan_pred_idx] span_len = float(len(gold_s_ids)) self.compute_parseval_back((allspan, span_len), (all_gold_ns, all_pred_ns), (all_gold_rel, all_pred_rel), gold_ns_ids, gold_rel_ids, pred_rel_ids) def compute_parseval_back(self, span_, ns_, rel_, all_ns, all_rel, all_rel_pre): """ standard parseval: macro & micro Get a full computation version. """ ns_equal = np.equal(ns_[0], ns_[1]) rel_equal = np.equal(rel_[0], rel_[1]) f_equal = [ns_equal[idx] and rel_equal[idx] for idx in range(len(ns_equal))] s_pred, ns_pred, rel_pred, f_pred = len(span_[0]), sum(ns_equal), sum(rel_equal), sum(f_equal) self.true_all[0] += s_pred self.true_all[1] += ns_pred self.true_all[2] += rel_pred self.true_all[3] += f_pred self.span_all += span_[1] for rel_one_ in all_rel_pre: self.rel_pre_all[rel_one_] += 1. for ns_one, rel_one in zip(all_ns, all_rel): self.ns_gold[ns_one] += 1. self.rel_gold[rel_one] += 1. for idx in range(len(ns_[0])): tmp_ns_gold, tmp_ns_pre = ns_[0][idx], ns_[1][idx] if tmp_ns_pre == tmp_ns_gold: self.ns_pre[tmp_ns_pre] += 1. tmp_rel_gold, tmp_rel_pre = rel_[0][idx], rel_[1][idx] if tmp_rel_pre == tmp_rel_gold: self.rel_pre_true[tmp_rel_pre] += 1. @staticmethod def get_all_span_info(tree_): span_ids, ns_ids, rel_ids = [], [], [] for node in tree_.nodes: if node.left_child is not None and node.right_child is not None: span_ids.append(node.temp_edu_span) ns_ids.append(nucl2ids[node.child_NS_rel]) rel_ids.append(coarse2ids[node.child_rel]) return span_ids, ns_ids, rel_ids def report(self, model, type_="dev", predtrees=None): p_span, p_ns, p_rel, p_f = (self.true_all[idx] / self.span_all for idx in range(4)) # micro f_max = self.test_f_max if type_ == "test" else self.dev_f_max s_max = self.test_s_max if type_ == "test" else self.dev_s_max n_max = self.test_n_max if type_ == "test" else self.dev_n_max r_max = self.test_r_max if type_ == "test" else self.dev_r_max better = self.update_all_max(p_span, p_ns, p_rel, p_f, f_max, s_max, n_max, r_max, type_) self.save_best_models(p_f, f_max, p_span, s_max, p_ns, n_max, p_rel, r_max, model, type_, predtrees) return better def update_all_max(self, span_pre, nucl_pre, rel_pre, f_pre, f_max, s_max, n_max, r_max, type_): better = False modes = [(span_pre > s_max), (nucl_pre > n_max), (rel_pre > r_max), (f_pre > f_max)] if modes[0] or modes[1] or modes[2] or modes[3]: if type_ == "test": if modes[0]: self.test_s_max = span_pre self.test_s_m_scores = [span_pre, nucl_pre, rel_pre, f_pre] if modes[1]: self.test_n_max = nucl_pre self.test_n_m_scores = [span_pre, nucl_pre, rel_pre, f_pre] if modes[2]: self.test_r_max = rel_pre self.test_r_m_scores = [span_pre, nucl_pre, rel_pre, f_pre] if modes[3]: self.test_f_max = f_pre self.test_f_m_scores = [span_pre, nucl_pre, rel_pre, f_pre] self.ns_scores = [self.ns_pre[idx] / self.ns_gold[idx] for idx in range(3)] for rel_idx in range(18): c_ = self.rel_pre_true[rel_idx] g_ = self.rel_gold[rel_idx] h_ = self.rel_pre_all[rel_idx] p_b = 0. if h_ == 0 else c_ / h_ r_b = 0. if g_ == 0 else c_ / g_ f_b = 0. if (g_ + h_) == 0 else (2 * c_) / (g_ + h_) self.rel_scores_p[rel_idx] = p_b self.rel_scores_r[rel_idx] = r_b self.rel_scores_f[rel_idx] = f_b else: better = True self.dev_f_max = f_pre self.dev_f_m_scores = [span_pre, nucl_pre, rel_pre, f_pre] return better def save_best_models(self, f_pre, f_max, p_span, s_max, p_ns, n_max, p_rel, r_max, model, type_, predtrees): if SAVE_MODEL: f_file_name = "/test_f_max_model.pth" if type_ == "test" else "/dev_f_max_model.pth" f_best_trees_parsed = "/test_f_trees.pkl" if type_ == "test" else "/dev_f_trees.pkl" if f_pre > f_max: self.save_model(file_name=f_file_name, model=model) self.save_trees(file_name=f_best_trees_parsed, trees=predtrees) s_file_name = "/test_s_max_model.pth" if type_ == "test" else "/dev_s_max_model.pth" s_best_trees_parsed = "/test_s_trees.pkl" if type_ == "test" else "/dev_s_trees.pkl" if p_span > s_max: self.save_model(file_name=s_file_name, model=model) self.save_trees(file_name=s_best_trees_parsed, trees=predtrees) n_file_name = "/test_n_max_model.pth" if type_ == "test" else "/dev_n_max_model.pth" n_best_trees_parsed = "/test_n_trees.pkl" if type_ == "test" else "/dev_n_trees.pkl" if p_ns > n_max: self.save_model(file_name=n_file_name, model=model) self.save_trees(file_name=n_best_trees_parsed, trees=predtrees) r_file_name = "/test_r_max_model.pth" if type_ == "test" else "/dev_r_max_model.pth" r_best_trees_parsed = "/test_r_trees.pkl" if type_ == "test" else "/dev_r_trees.pkl" if p_rel > r_max: self.save_model(file_name=r_file_name, model=model) self.save_trees(file_name=r_best_trees_parsed, trees=predtrees) @staticmethod def save_model(file_name, model): dir2save = MODELS2SAVE + "/v" + str(VERSION) + "_set" + str(SET) safe_mkdir(MODELS2SAVE) safe_mkdir(dir2save) save_path = dir2save + file_name torch.save(model, save_path) @staticmethod def save_trees(file_name, trees): dir2save = MODELS2SAVE + "/v" + str(VERSION) + "_set" + str(SET) safe_mkdir(MODELS2SAVE) safe_mkdir(dir2save) save_path = dir2save + file_name save_data(trees, save_path) def output_report(self, report_info=None): for info in report_info: print_(info, self.log_file) def get_scores(self): """ (mi, inner_mi, ma, inner_ma) """ test_out = [self.test_s_m_scores, self.test_n_m_scores, self.test_r_m_scores, self.test_f_m_scores] report_info = ["==============================================", "(VAL_) [" + str(self.dev_f_m_scores[0]) + ", " + str(self.dev_f_m_scores[1]) + ", " + str(self.dev_f_m_scores[2]) + ", " + str(self.dev_f_m_scores[3]) + "]", "(TEST Bare) [" + str(test_out[0][0]) + ", " + str(test_out[0][1]) + ", " + str(test_out[0][2]) + ", " + str(test_out[0][3]) + "]", "(TEST N) [" + str(test_out[1][0]) + ", " + str(test_out[1][1]) + ", " + str(test_out[1][2]) + ", " + str(test_out[1][3]) + "]", "(TEST R) [" + str(test_out[2][0]) + ", " + str(test_out[2][1]) + ", " + str(test_out[2][2]) + ", " + str(test_out[2][3]) + "]", "(TEST F) [" + str(test_out[3][0]) + ", " + str(test_out[3][1]) + ", " + str(test_out[3][2]) + ", " + str(test_out[3][3]) + "]" , "(NN, NS, SN): ", " ".join([str(item) for item in self.ns_scores]), "(18 RELs P): ", " ".join([str(item) for item in self.rel_scores_p]), "(18 RELs R): ", " ".join([str(item) for item in self.rel_scores_r]), "(18 RELs F): ", " ".join([str(item) for item in self.rel_scores_f])] return report_info
52.699029
117
0.558401
ef4e746a0517e2ca7acfa2852db342f2694edb9d
2,514
js
JavaScript
packages/zoe/test/unitTests/test-rightsConservation.js
TerryvanWalen/agoric-sdk
c655939a268417ba49ab68e603eb5b02faf202d3
[ "Apache-2.0" ]
null
null
null
packages/zoe/test/unitTests/test-rightsConservation.js
TerryvanWalen/agoric-sdk
c655939a268417ba49ab68e603eb5b02faf202d3
[ "Apache-2.0" ]
null
null
null
packages/zoe/test/unitTests/test-rightsConservation.js
TerryvanWalen/agoric-sdk
c655939a268417ba49ab68e603eb5b02faf202d3
[ "Apache-2.0" ]
null
null
null
// eslint-disable-next-line import/no-extraneous-dependencies import { test } from 'tape-promise/tape'; import produceIssuer from '@agoric/ertp'; import { areRightsConserved, transpose } from '../../src/rightsConservation'; const setupAmountMaths = () => { const moolaIssuerResults = produceIssuer('moola'); const simoleanIssuerResults = produceIssuer('simoleans'); const bucksIssuerResults = produceIssuer('bucks'); const all = [moolaIssuerResults, simoleanIssuerResults, bucksIssuerResults]; return all.map(objs => objs.amountMath); }; const makeAmountMatrix = (amountMathArray, extentMatrix) => extentMatrix.map(row => row.map((extent, i) => amountMathArray[i].make(extent)), ); test('transpose', t => { t.plan(1); try { t.deepEquals( transpose([ [1, 2, 3], [4, 5, 6], ]), [ [1, 4], [2, 5], [3, 6], ], ); } catch (e) { t.assert(false, e); } }); // rights are conserved for amount with Nat extents test(`areRightsConserved - true for amount with nat extents`, t => { t.plan(1); try { const amountMaths = setupAmountMaths(); const oldExtents = [ [0, 1, 0], [4, 1, 0], [6, 3, 0], ]; const newExtents = [ [1, 2, 0], [3, 1, 0], [6, 2, 0], ]; const oldAmounts = makeAmountMatrix(amountMaths, oldExtents); const newAmounts = makeAmountMatrix(amountMaths, newExtents); t.ok(areRightsConserved(amountMaths, oldAmounts, newAmounts)); } catch (e) { t.assert(false, e); } }); // rights are *not* conserved for amount with Nat extents test(`areRightsConserved - false for amount with Nat extents`, t => { t.plan(1); try { const amountMaths = setupAmountMaths(); const oldExtents = [ [0, 1, 4], [4, 1, 0], [6, 3, 0], ]; const newExtents = [ [1, 2, 0], [3, 1, 0], [6, 2, 0], ]; const oldAmounts = makeAmountMatrix(amountMaths, oldExtents); const newAmounts = makeAmountMatrix(amountMaths, newExtents); t.notOk(areRightsConserved(amountMaths, oldAmounts, newAmounts)); } catch (e) { t.assert(false, e); } }); test(`areRightsConserved - empty arrays`, t => { t.plan(1); try { const amountMaths = setupAmountMaths(); const oldAmounts = [[], [], []]; const newAmounts = [[], [], []]; t.ok(areRightsConserved(amountMaths, oldAmounts, newAmounts)); } catch (e) { t.assert(false, e); } }); // TODO: add tests for non-Nat extents
24.173077
78
0.603421
456ad6c0a5b44e0f401c7be08cd12c4630cec348
6,355
lua
Lua
model/GRU.lua
yoosan/deepmind_qa
d28172b29f85a82371cfd7d9103a507e8ebd5d85
[ "MIT" ]
5
2016-03-26T05:51:56.000Z
2016-05-14T16:19:11.000Z
model/GRU.lua
yoosan/deepmind_qa
d28172b29f85a82371cfd7d9103a507e8ebd5d85
[ "MIT" ]
null
null
null
model/GRU.lua
yoosan/deepmind_qa
d28172b29f85a82371cfd7d9103a507e8ebd5d85
[ "MIT" ]
null
null
null
--[[ - Author: yoosan, SYSUDNLP Group - Date: 16/3/22, 2016. - Licence MIT --]] --[[ Gated Recurrent Unit. (http://arxiv.org/pdf/1412.3555v1.pdf) --]] local GRU, parent = torch.class('nn.GRU', 'nn.Module') function GRU:__init(config) parent.__init(self) self.in_dim = config.in_dim or 300 self.mem_dim = config.mem_dim or 150 self.num_layers = config.num_layers or 1 self.master_cell = self:new_cell() self.depth = 0 self.cells = {} local htable_init, htable_grad if self.num_layers == 1 then htable_init = torch.zeros(self.mem_dim) htable_grad = torch.zeros(self.mem_dim) else htable_init, htable_grad = {}, {} for i = 1, self.num_layers do htable_init[i] = torch.zeros(self.mem_dim) htable_grad[i] = torch.zeros(self.mem_dim) end end self.initial_values = htable_init self.gradInput = { torch.zeros(self.in_dim), htable_grad } self.params, self.grad_params = self.master_cell:getParameters() end -- Instantiate a new GRU cell. -- Each cell shares the same parameters, but the activations of their constituent -- layers differ. function GRU:new_cell() local input = nn.Identity()() local htable_p = nn.Identity()() -- output = W^{(x)}xv + U^{(h)}hv + b local function new_gate(indim, xv, hv) local i2h = nn.Linear(indim, self.mem_dim)(xv) local h2h = nn.Linear(self.mem_dim, self.mem_dim)(hv) return nn.CAddTable()({ i2h, h2h }) end -- multilayer GRU local htable = {} for layer = 1, self.num_layers do local h_p = (self.num_layers == 1) and htable_p or nn.SelectTable(layer)(htable_p) -- update and reset gates local z = (layer == 1) and nn.Sigmoid()(new_gate(self.in_dim, input, h_p)) or nn.Sigmoid()(new_gate(self.mem_dim, htable[layer - 1], h_p)) local r = (layer == 1) and nn.Sigmoid()(new_gate(self.in_dim, input, h_p)) or nn.Sigmoid()(new_gate(self.mem_dim, htable[layer - 1], h_p)) local g = nn.CMulTable()({ r, h_p }) local h_c = (layer == 1) and nn.Tanh()(new_gate(self.in_dim, input, g)) or nn.Tanh()(new_gate(self.mem_dim, htable[layer - 1], g)) local z_d = nn.AddConstant(1, false)(nn.MulConstant(-1, false)(z)) local p1 = nn.CMulTable()({ z_d, h_c }) local p2 = nn.CMulTable()({ z, h_p }) local next_h = nn.CAddTable()({ p1, p2 }) htable[layer] = next_h end -- if GRU is single-layered, this makes htable/ctable Tensors (instead of tables). -- this avoids some quirks with nngraph involving tables of size 1. -- htable = nn.Identity()(htable) local cell = nn.gModule({ input, htable_p }, htable) -- share parameters if self.master_cell then utils.share_params(cell, self.master_cell) end return cell end -- Forward propagate. -- inputs: T x in_dim tensor, where T is the number of time steps. -- reverse: if true, read the input from right to left (useful for bidirectional GRUS). -- Returns the final hidden state of the GRU. function GRU:forward(inputs, reverse) local size = inputs:size(1) for t = 1, size do local input = reverse and inputs[size - t + 1] or inputs[t] self.depth = self.depth + 1 local cell = self.cells[self.depth] if cell == nil then cell = self:new_cell() self.cells[self.depth] = cell end local prev_output if self.depth > 1 then prev_output = self.cells[self.depth - 1].output else prev_output = self.initial_values end local outputs = cell:forward({ input, prev_output }) local htable = outputs if self.num_layers == 1 then self.output = htable else self.output = {} for i = 1, self.num_layers do self.output[i] = htable[i] end end end return self.output end -- Backpropagate. forward() must have been called previously on the same input. -- inputs: T x in_dim tensor, where T is the number of time steps. -- grad_outputs: T x num_layers x mem_dim tensor. -- reverse: if true, read the input from right to left. -- Returns the gradients with respect to the inputs (in the same order as the inputs). function GRU:backward(inputs, grad_outputs, reverse) local size = inputs:size(1) if self.depth == 0 then error("No cells to backpropagate through") end local input_grads = torch.Tensor(inputs:size()) for t = size, 1, -1 do local input = reverse and inputs[size - t + 1] or inputs[t] local grad_output = reverse and grad_outputs[size - t + 1] or grad_outputs[t] local cell = self.cells[self.depth] local grads = self.gradInput[2] if self.num_layers == 1 then grads:add(grad_output) else for i = 1, self.num_layers do grads[i]:add(grad_output[i]) end end local prev_output = (self.depth > 1) and self.cells[self.depth - 1].output or self.initial_values self.gradInput = cell:backward({ input, prev_output }, grads) if reverse then input_grads[size - t + 1] = self.gradInput[1] else input_grads[t] = self.gradInput[1] end self.depth = self.depth - 1 end self:forget() -- important to clear out state return input_grads end function GRU:share(gru, ...) if self.in_dim ~= gru.in_dim then error("GRU input dimension mismatch") end if self.mem_dim ~= gru.mem_dim then error("GRU memory dimension mismatch") end if self.num_layers ~= gru.num_layers then error("GRU layer count mismatch") end utils.share_params(self.master_cell, gru.master_cell, ...) end function GRU:zeroGradParameters() self.master_cell:zeroGradParameters() end function GRU:parameters() return self.master_cell:parameters() end -- Clear saved gradients function GRU:forget() self.depth = 0 for i = 1, #self.gradInput do local gradInput = self.gradInput[i] if type(gradInput) == 'table' then for _, t in pairs(gradInput) do t:zero() end else self.gradInput[i]:zero() end end end
32.927461
90
0.618883
7ae75dfc14e8813c67119521f61dbb83ddb16b12
259
swift
Swift
iChat/User.swift
likhitgarimella/iChat-App
ffa256e017fb016ceb0b9419d3214624cafb39b6
[ "MIT" ]
1
2021-07-28T17:26:18.000Z
2021-07-28T17:26:18.000Z
iChat/User.swift
likhitgarimella/iChat-App
ffa256e017fb016ceb0b9419d3214624cafb39b6
[ "MIT" ]
null
null
null
iChat/User.swift
likhitgarimella/iChat-App
ffa256e017fb016ceb0b9419d3214624cafb39b6
[ "MIT" ]
null
null
null
// // User.swift // iChat // // Created by Likhit Garimella on 24/05/20. // Copyright © 2020 Likhit Garimella. All rights reserved. // import UIKit import Firebase class User: NSObject { var name: String? var email: String? } // #18
14.388889
59
0.625483
051bcbd3c65e1d48f32e95f5fed2e8c7efb6ee4b
3,205
rb
Ruby
lib/ass_maintainer/info_base/interfaces.rb
leoniv/ass_maintainer-info_base
1cc9212fc240dafb058faae1e122eb9c8ece1cf7
[ "MIT" ]
3
2017-07-10T16:23:46.000Z
2018-11-12T20:52:00.000Z
lib/ass_maintainer/info_base/interfaces.rb
leoniv/ass_maintainer-info_base
1cc9212fc240dafb058faae1e122eb9c8ece1cf7
[ "MIT" ]
3
2016-12-02T09:56:26.000Z
2017-12-21T07:18:23.000Z
lib/ass_maintainer/info_base/interfaces.rb
leoniv/ass_maintainer-info_base
1cc9212fc240dafb058faae1e122eb9c8ece1cf7
[ "MIT" ]
1
2018-11-12T20:52:02.000Z
2018-11-12T20:52:02.000Z
module AssMaintainer class InfoBase # Riseses when infobase already locked and +InfoBase#unlock_code+ # does not macth +PermissionCode+ on server class UnlockError < StandardError; end # Raises when +InfoBase#unlock_code+ not setted class LockError < StandardError; end # Define absract Interfaces # for worker classes module Interfaces # Interface for class which make new InfoBase # Class must implement +#entry_point+ methodmodule Fixtures module IbMaker attr_reader :infobase def execute(infobase) @infobase = infobase entry_point end def entry_point fail NotImplementedError end end # Interface for class which destroy InfoBase # Class must implement +#entry_point+ methodmodule Fixtures module IbDestroyer attr_reader :infobase def execute(infobase) @infobase = infobase entry_point end def entry_point fail NotImplementedError end end # Common interface for different infobase types # Interface must be implemented in {InfoBase::FileIb} and # {InfoBase::ServerIb} modules module InfoBase require 'date' # @note For {InfoBase::FileIb} must returns empty array # Returns array of infobase sessions exclude # {InfoBase::Session::EXCLUDE_APP_IDS} application types # @return [Array <InfoBase::Session>] def sessions fail NotImplementedError end # @note It must work for {InfoBase::ServerIb} only. # For {InfoBase::FileIb} it must do nothing # Locking infobase if it possible. Be careful it terminate all # sessions! Before do it should set +InfoBase#unlock_code+! # Schedule jobs will be locked to! # @raise [LockError] unless +InfoBase#unlock_code+ setted # @raise [UnlockError] unless soft {#unlock} possible. If catched # it, shold do force unlock {unlock!} and try againe def lock(from: Time.now, to: Time.now + 3600, message: '') fail NotImplementedError end # @note (see #lock) # Soft unlocking infobase if it possible. # For force unlocking exec #{unlock!} # @raise [UnlockError] unless unlocking possible def unlock fail NotImplementedError end # @note (see #lock) # Force unlock infobase. def unlock! fail NotImplementedError end # @note (see #lock) # Lock schedule jobs def lock_schjobs fail NotImplementedError end # @note (see #lock) # Unlock schedule jobs def unlock_schjobs fail NotImplementedError end # @note For {InfoBase::FileIb} it must always return +false+ # It work for {InfoBase::ServerIb} only. # Return +true+ if on server flag +SessionsDenied == true+ def locked? fail NotImplementedError end # True if infobase exists def exists? fail NotImplementedError end end end end end
29.675926
73
0.615289
f206c47f392e55176ed6e6d6daa1da23e72fe2ee
67,074
cpp
C++
Object_Recognition/src/pnp/signature.cpp
EricCJoyce/The-Recognitions
05aafbcd124988d58b1cc60070b9ad17d49322d7
[ "MIT" ]
1
2021-06-29T20:53:18.000Z
2021-06-29T20:53:18.000Z
Object_Recognition/src/pnp/signature.cpp
EricCJoyce/The-Recognitions
05aafbcd124988d58b1cc60070b9ad17d49322d7
[ "MIT" ]
null
null
null
Object_Recognition/src/pnp/signature.cpp
EricCJoyce/The-Recognitions
05aafbcd124988d58b1cc60070b9ad17d49322d7
[ "MIT" ]
1
2021-09-26T03:14:49.000Z
2021-09-26T03:14:49.000Z
#ifndef __SIGNATURE_CPP #define __SIGNATURE_CPP #include "signature.h" /************************************************************************************************** Constructors */ /* Signature constructor, no data given */ Signature::Signature() { unsigned int i; #ifdef __SIGNATURE_DEBUG cout << "Signature::Signature()" << endl; #endif _numPoints = 0; _numMutex = 0; filenameLen = 0; if((descriptorCtr = (unsigned int*)malloc(_DESCRIPTOR_TOTAL * sizeof(int))) == NULL) { cout << "ERROR: Unable to allocate signature descriptor-count vector." << endl; exit(1); } _index = -1; bboxminX = 0.0; bboxminY = 0.0; bboxminZ = 0.0; bboxmaxX = 0.0; bboxmaxY = 0.0; bboxmaxZ = 0.0; for(i = 0; i < _DESCRIPTOR_TOTAL; i++) // Blank out descriptor counters descriptorCtr[i] = 0; for(i = 0; i < 512; i++) // Blank out header hdr[i] = 0; } /************************************************************************************************** Destructor */ Signature::~Signature() { if(filenameLen > 0) free(_filename); free(descriptorCtr); if(_numPoints > 0) free(d); } /************************************************************************************************** Load from file */ /* Read the given file into a presently allocated Signature. */ bool Signature::load(char* filepath) { FILE* fp; // .3df file unsigned char totalDesc; unsigned char flagArray; float x, y, z; // Temp storage unsigned char desc; unsigned char descLen; float size, angle, response; signed int octave; unsigned char* ucharBuffer; float* floatBuffer; unsigned int i; bool good; #ifdef __SIGNATURE_DEBUG cout << "Signature::load(" << filepath << ")" << endl; #endif if(filenameLen > 0) // Did we have a file name stored already? free(_filename); if(_numPoints > 0) // Did we have Descriptors stored already? free(d); for(i = 0; i < _DESCRIPTOR_TOTAL; i++) // Reset descriptor counters descriptorCtr[i] = 0; filenameLen = strlen(filepath); // Save the length of the string if((_filename = (char*)malloc((filenameLen + 1) * sizeof(char))) == NULL) { cout << "ERROR: Unable to allocate signature file name buffer." << endl; return false; } for(i = 0; i < filenameLen; i++) // Copy file name _filename[i] = filepath[i]; _filename[i] = '\0'; // NULL-cap the string if((fp = fopen(_filename, "rb")) == NULL) // Open file for reading { cout << "ERROR: Unable to open \"" << _filename << "\"." << endl; return false; } fseek(fp, 0, SEEK_SET); // Start at the beginning good = ((fread(hdr, sizeof(char), 512, fp)) == 512); // Read the 512-byte header good = ((fread(&_numPoints, sizeof(int), 1, fp)) == 1); // unsigned int: Total number of feature-points good = ((fread(&_numMutex, sizeof(int), 1, fp)) == 1); // unsigned int: Total number of exclusivity-constraints good = ((fread(&totalDesc, sizeof(char), 1, fp)) == 1); // unsigned char: Total number of descriptors good = ((fread(&flagArray, sizeof(char), 1, fp)) == 1); // unsigned char: descriptor boolean array good = ((fread(&bboxminX, sizeof(float), 1, fp)) == 1); // Read bounding box min-min-min good = ((fread(&bboxminY, sizeof(float), 1, fp)) == 1); good = ((fread(&bboxminZ, sizeof(float), 1, fp)) == 1); good = ((fread(&bboxmaxX, sizeof(float), 1, fp)) == 1); // Read bounding box max-max-max good = ((fread(&bboxmaxY, sizeof(float), 1, fp)) == 1); good = ((fread(&bboxmaxZ, sizeof(float), 1, fp)) == 1); #ifdef __SIGNATURE_DEBUG cout << " header: " << hdr << endl; cout << " numPoints: " << +_numPoints << endl; cout << " numMutex: " << +_numMutex << endl; cout << " totalDesc: " << +totalDesc << endl; // Total number of descriptors possible cout << " flagArray: "; if((flagArray & 8) == 8) // SURF cout << "1"; else cout << "0"; if((flagArray & 4) == 4) // SIFT cout << "1"; else cout << "0"; if((flagArray & 2) == 2) // ORB cout << "1"; else cout << "0"; if((flagArray & 1) == 1) // BRISK cout << "1"; else cout << "0"; cout << endl; cout << " bbox min (" << bboxminX << ", " << bboxminY << ", " << bboxminZ << "), bbox max (" << bboxmaxX << ", " << bboxmaxY << ", " << bboxmaxZ << ")" << endl; #endif if(!good) { cout << "ERROR: Unable to read from \"" << _filename << "\"." << endl; return false; } if((d = (Descriptor**)malloc(_numPoints * sizeof(Descriptor*))) == NULL) { cout << "ERROR: Unable to allocate descriptor-pointer buffer for \"" << _filename << "\"." << endl; return false; } i = 0; while(!feof(fp) && i < _numPoints) // Continue reading feature-points and feature-vectors { good = ((fread(&desc, sizeof(char), 1, fp)) == 1); // Read descriptor flag good = ((fread(&x, sizeof(float), 1, fp)) == 1); // Read feature-point coordinates good = ((fread(&y, sizeof(float), 1, fp)) == 1); good = ((fread(&z, sizeof(float), 1, fp)) == 1); good = ((fread(&size, sizeof(float), 1, fp)) == 1); // Read feature-point details good = ((fread(&angle, sizeof(float), 1, fp)) == 1); good = ((fread(&response, sizeof(float), 1, fp)) == 1); good = ((fread(&octave, sizeof(int), 1, fp)) == 1); good = ((fread(&descLen, sizeof(char), 1, fp)) == 1); // Read feature-point vector length if(good) { switch(desc) { case _BRISK: if((ucharBuffer = (unsigned char*)malloc(_BRISK_DESCLEN * sizeof(char))) == NULL) { cout << "ERROR: Unable to allocate BRISK descriptor vector buffer." << endl; return false; } // Read in a descriptor-length's worth of chars fread(ucharBuffer, sizeof(char), _BRISK_DESCLEN, fp); d[i] = new BRISKDesc(ucharBuffer); // Create a new (BRISK) descriptor d[i]->XYZ(x, y, z); // Save its 3D location d[i]->setSize(size); // Save its details d[i]->setAngle(angle); d[i]->setResponse(response); d[i]->setOctave(octave); descriptorCtr[_BRISK]++; // Increment the count for this type of descriptor free(ucharBuffer); i++; break; case _ORB: if((ucharBuffer = (unsigned char*)malloc(_ORB_DESCLEN * sizeof(char))) == NULL) { cout << "ERROR: Unable to allocate ORB descriptor vector buffer." << endl; return false; } // Read in a descriptor-length's worth of chars fread(ucharBuffer, sizeof(char), _ORB_DESCLEN, fp); d[i] = new ORBDesc(ucharBuffer); // Create a new (ORB) descriptor d[i]->XYZ(x, y, z); // Save its 3D location d[i]->setSize(size); // Save its details d[i]->setAngle(angle); d[i]->setResponse(response); d[i]->setOctave(octave); descriptorCtr[_ORB]++; // Increment the count for this type of descriptor free(ucharBuffer); i++; break; case _SIFT: if((floatBuffer = (float*)malloc(_SIFT_DESCLEN * sizeof(float))) == NULL) { cout << "ERROR: Unable to allocate SIFT descriptor vector buffer." << endl; return false; } // Read in a descriptor-length's worth of floats fread(floatBuffer, sizeof(float), _SIFT_DESCLEN, fp); d[i] = new SIFTDesc(floatBuffer); // Create a new (SIFT) descriptor d[i]->XYZ(x, y, z); // Save its 3D location d[i]->setSize(size); // Save its details d[i]->setAngle(angle); d[i]->setResponse(response); d[i]->setOctave(octave); descriptorCtr[_SIFT]++; // Increment the count for this type of descriptor free(floatBuffer); i++; break; case _SURF: if((floatBuffer = (float*)malloc(_SURF_DESCLEN * sizeof(float))) == NULL) { cout << "ERROR: Unable to allocate SURF descriptor vector buffer." << endl; return false; } // Read in a descriptor-length's worth of floats fread(floatBuffer, sizeof(float), _SURF_DESCLEN, fp); d[i] = new SURFDesc(floatBuffer); // Create a new (SURF) descriptor d[i]->XYZ(x, y, z); // Save its 3D location d[i]->setSize(size); // Save its details d[i]->setAngle(angle); d[i]->setResponse(response); d[i]->setOctave(octave); descriptorCtr[_SURF]++; // Increment the count for this type of descriptor free(floatBuffer); i++; break; } } } fclose(fp); return true; } /************************************************************************************************** Write to file */ /* Write in the .3df format */ bool Signature::write(char* fname) const { FILE* fp; // .3df file unsigned char totalDesc = _DESCRIPTOR_TOTAL; unsigned char flagArray = 0; float x, y, z; // Temp storage unsigned char desc; unsigned char descLen; float size, angle, response; signed int octave; unsigned char* ucharBuffer; float* floatBuffer; unsigned int i; bool good; #ifdef __SIGNATURE_DEBUG cout << "Signature::write(" << fname << ")" << endl; #endif if((fp = fopen(fname, "wb")) == NULL) // Open file for writing { cout << "ERROR: Unable to create \"" << fname << "\"." << endl; return false; } good = ((fwrite(hdr, sizeof(char), 512, fp)) == 512); // Write the 512-byte header good = ((fwrite(&_numPoints, sizeof(int), 1, fp)) == 1); // unsigned int: Total number of feature-points good = ((fwrite(&_numMutex, sizeof(int), 1, fp)) == 1); // unsigned int: Total number of exclusivity-constraints if(descriptorCtr[_BRISK] > 0) flagArray |= 1; if(descriptorCtr[_ORB] > 0) flagArray |= 2; if(descriptorCtr[_SIFT] > 0) flagArray |= 4; if(descriptorCtr[_SURF] > 0) flagArray |= 8; good = ((fwrite(&totalDesc, sizeof(char), 1, fp)) == 1); // unsigned char: Total number of descriptors good = ((fwrite(&flagArray, sizeof(char), 1, fp)) == 1); // unsigned char: descriptor boolean array good = ((fwrite(&bboxminX, sizeof(float), 1, fp)) == 1); // Read bounding box min-min-min good = ((fwrite(&bboxminY, sizeof(float), 1, fp)) == 1); good = ((fwrite(&bboxminZ, sizeof(float), 1, fp)) == 1); good = ((fwrite(&bboxmaxX, sizeof(float), 1, fp)) == 1); // Read bounding box max-max-max good = ((fwrite(&bboxmaxY, sizeof(float), 1, fp)) == 1); good = ((fwrite(&bboxmaxZ, sizeof(float), 1, fp)) == 1); if(!good) { cout << "ERROR: Unable to write to \"" << fname << "\"." << endl; return false; } for(i = 0; i < _numPoints; i++) { desc = d[i]->type(); // Get the descriptor flag good = ((fwrite(&desc, sizeof(char), 1, fp)) == 1); // Write descriptor flag x = d[i]->x(); // Get the coordinates y = d[i]->y(); z = d[i]->z(); good = ((fwrite(&x, sizeof(float), 1, fp)) == 1); // Write feature-point coordinates good = ((fwrite(&y, sizeof(float), 1, fp)) == 1); good = ((fwrite(&z, sizeof(float), 1, fp)) == 1); size = d[i]->size(); // Get the interest point attributes angle = d[i]->angle(); response = d[i]->response(); octave = d[i]->octave(); good = ((fwrite(&size, sizeof(float), 1, fp)) == 1); // Write feature-point details good = ((fwrite(&angle, sizeof(float), 1, fp)) == 1); good = ((fwrite(&response, sizeof(float), 1, fp)) == 1); good = ((fwrite(&octave, sizeof(int), 1, fp)) == 1); descLen = d[i]->len(); good = ((fwrite(&descLen, sizeof(char), 1, fp)) == 1); // Write feature-point vector length if(good) { switch(desc) { case _BRISK: d[i]->vec(&ucharBuffer); // Copy i-th Descriptor (a BRISK) to uchar buffer good = ((fwrite(ucharBuffer, sizeof(char), _BRISK_DESCLEN, fp)) == _BRISK_DESCLEN); free(ucharBuffer); break; case _ORB: d[i]->vec(&ucharBuffer); // Copy i-th Descriptor (an ORB) to uchar buffer good = ((fwrite(ucharBuffer, sizeof(char), _ORB_DESCLEN, fp)) == _ORB_DESCLEN); free(ucharBuffer); break; case _SIFT: d[i]->vec(&floatBuffer); // Copy i-th Descriptor (a SIFT) to float buffer good = ((fwrite(floatBuffer, sizeof(float), _SIFT_DESCLEN, fp)) == _SIFT_DESCLEN); free(floatBuffer); break; case _SURF: d[i]->vec(&floatBuffer); // Copy i-th Descriptor (a SURF) to float buffer good = ((fwrite(floatBuffer, sizeof(float), _SURF_DESCLEN, fp)) == _SURF_DESCLEN); free(floatBuffer); break; } } if(!good) { cout << "ERROR: Write to file failed" << endl; return false; } } fclose(fp); return true; } /* Write as ASCII text. Signature file details will include the original file name, though this is written to a file under the given name. */ bool Signature::toText(char* fname) const { ofstream fh; // Output file handle unsigned int i, j; fh.open(fname); fh << _filename << endl; for(i = 0; i < filenameLen; i++) fh << "="; fh << endl << hdr << endl; fh << +_numPoints << " features" << endl; for(i = 0; i < _DESCRIPTOR_TOTAL; i++) { fh << " " << +descriptorCtr[i] << " "; switch(i) { case _BRISK: fh << "BRISK" << endl; break; case _ORB: fh << "ORB" << endl; break; case _SIFT: fh << "SIFT" << endl; break; case _SURF: fh << "SURF" << endl; break; } } fh << +_numMutex << " mutual exclusions" << endl; fh << "Bounding box: (" << bboxminX << ", " << bboxminY << ", " << bboxminZ << ")" << endl; fh << " to (" << bboxmaxX << ", " << bboxmaxY << ", " << bboxmaxZ << ")" << endl; for(i = 0; i < _numPoints; i++) { fh << "(" << d[i]->x() << ", " << d[i]->y() << ", " << d[i]->z() << ") "; switch(d[i]->type()) { case _BRISK: fh << "BRISK: "; break; case _ORB: fh << "ORB: "; break; case _SIFT: fh << "SIFT: "; break; case _SURF: fh << "SURF: "; break; } if(d[i]->type() == _BRISK || d[i]->type() == _ORB) { for(j = 0; j < d[i]->len(); j++) // Fetch and write uchars to file fh << d[i]->atu(j) << " "; fh << endl; } else { for(j = 0; j < d[i]->len(); j++) // Fetch and write floats to file fh << d[i]->atf(j) << " "; fh << endl; } } fh.close(); return true; } /************************************************************************************************** Descriptor collection */ /* Fill a buffer with concatenated vectors of the given descriptor type. Given 'type' in {BRISK, ORB, SIFT, SURF} write to a 1-dimensional buffer of length N x D, where N is the number of features in stored using descriptor 'type' and D is the length of that descriptor vector. That is, if this Signature stores features in both BRISK and SURF, then toBuffer(_BRISK) will fill (unsigned char*)'buffer' with N BRISK row-vectors, and toBuffer(_SURF) will fill (float*)'buffer' with N SURF row-vectors. */ unsigned int Signature::toBuffer(unsigned char type, void** buffer) const { unsigned int i, j; unsigned char k; unsigned int len = 0; unsigned char* ucharTmp; // Copy the vector from the Descriptor object float* floatTmp; #ifdef __SIGNATURE_DEBUG cout << "Signature::toBuffer(" << +type << ")" << endl; cout << " " << +descriptorCtr[type] << " feature vectors" << endl; #endif if(descriptorCtr[type] > 0) // Are there any descriptors of the given type? { if(type == _BRISK) // Allocate the right buffer, the right amount { len = descriptorCtr[type] * _BRISK_DESCLEN; if(((*buffer) = malloc(len * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate unsigned char buffer for BRISK output to void*." << endl; #endif return 0; } } else if(type == _ORB) { len = descriptorCtr[type] * _ORB_DESCLEN; if(((*buffer) = malloc(len * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate unsigned char buffer for ORB output to void*." << endl; #endif return 0; } } else if(type == _SIFT) { len = descriptorCtr[type] * _SIFT_DESCLEN; if(((*buffer) = malloc(len * sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate float buffer for SIFT output to void*." << endl; #endif return 0; } } else if(type == _SURF) { len = descriptorCtr[type] * _SURF_DESCLEN; if(((*buffer) = malloc(len * sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate float buffer for SURF output to void*." << endl; #endif return 0; } } j = 0; // Offset into the buffer for(i = 0; i < _numPoints; i++) // Now that we've allocated space, fill in that space { if(d[i]->type() == type) // If this is a Descriptor of the type we asked for... { if(type == _BRISK) { d[i]->vec(&ucharTmp); // Copy this descriptor to temp for(k = 0; k < _BRISK_DESCLEN; k++) // Copy the temp into the total buffer (*((unsigned char**)buffer))[j * _BRISK_DESCLEN + k] = ucharTmp[k]; free(ucharTmp); // Dump temp } else if(type == _ORB) { d[i]->vec(&ucharTmp); // Copy this descriptor to temp for(k = 0; k < _ORB_DESCLEN; k++) // Copy the temp into the total buffer (*((unsigned char**)buffer))[j * _ORB_DESCLEN + k] = ucharTmp[k]; free(ucharTmp); // Dump temp } else if(type == _SIFT) { d[i]->vec(&floatTmp); // Copy this descriptor to temp for(k = 0; k < _SIFT_DESCLEN; k++) // Copy the temp into the total buffer (*((float**)buffer))[j * _SIFT_DESCLEN + k] = floatTmp[k]; free(floatTmp); // Dump temp } else if(type == _SURF) { d[i]->vec(&floatTmp); // Copy this descriptor to temp for(k = 0; k < _SURF_DESCLEN; k++) // Copy the temp into the total buffer (*((float**)buffer))[j * _SURF_DESCLEN + k] = floatTmp[k]; free(floatTmp); // Dump temp } j++; // Increment offset into buffer } } } return len; } /* Export a cv::Mat using a specific descriptor type. Compare to Extractor::descMat(). Given 'type' in {BRISK, ORB, SIFT, SURF} return an N x D cv::Mat where N is the number of features in stored using descriptor 'type' and D is the length of that descriptor vector. That is, if this Signature stores features in both BRISK and SURF, then toMat(_BRISK, mat) will fill 'mat' with N BRISK row-vectors, and descMat(_SURF, mat) will fill 'mat' with N SURF row-vectors. */ void Signature::toMat(unsigned char type, cv::Mat* mat) const { unsigned char* ucharBuffer; // Accumulators float* floatBuffer; #ifdef __SIGNATURE_DEBUG cout << "Signature::toMat(" << +type << ")" << endl; cout << " " << +descriptorCtr[type] << " feature vectors" << endl; #endif if(descriptorCtr[type] > 0) // Are there any descriptors of the given type? { if(type == _BRISK) { toBuffer(_BRISK, (void**)(&ucharBuffer)); (*mat) = cv::Mat(descriptorCtr[_BRISK], _BRISK_DESCLEN, CV_8U); memcpy(mat->data, ucharBuffer, descriptorCtr[_BRISK] * _BRISK_DESCLEN * sizeof(char)); free(ucharBuffer); } else if(type == _ORB) { toBuffer(_ORB, (void**)(&ucharBuffer)); (*mat) = cv::Mat(descriptorCtr[_ORB], _ORB_DESCLEN, CV_8U); memcpy(mat->data, ucharBuffer, descriptorCtr[_ORB] * _ORB_DESCLEN * sizeof(char)); free(ucharBuffer); } else if(type == _SIFT) { toBuffer(_SIFT, (void**)(&floatBuffer)); (*mat) = cv::Mat(descriptorCtr[_SIFT], _SIFT_DESCLEN, CV_32F); memcpy(mat->data, floatBuffer, descriptorCtr[_SIFT] * _SIFT_DESCLEN * sizeof(float)); free(floatBuffer); } else if(type == _SURF) { toBuffer(_SURF, (void**)(&floatBuffer)); (*mat) = cv::Mat(descriptorCtr[_SURF], _SURF_DESCLEN, CV_32F, floatBuffer); memcpy(mat->data, floatBuffer, descriptorCtr[_SURF] * _SURF_DESCLEN * sizeof(float)); free(floatBuffer); } } return; } /* Write the i-th descriptor vector (of whatever type that is) to buffer */ unsigned char Signature::desc(unsigned int i, void** buffer) const { unsigned char len = 0; unsigned char j; if(i < _numPoints) { switch(d[i]->type()) { case _BRISK: len = d[i]->len(); if(((*buffer) = malloc(len * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate void* buffer for " << +i << "-th feature." << endl; #endif return 0; } for(j = 0; j < len; j++) (*((unsigned char**)buffer))[j] = d[i]->atu(j); break; case _ORB: len = d[i]->len(); if(((*buffer) = malloc(len * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate void* buffer for " << +i << "-th feature." << endl; #endif return 0; } for(j = 0; j < len; j++) (*((unsigned char**)buffer))[j] = d[i]->atu(j); break; case _SIFT: len = d[i]->len(); if(((*buffer) = malloc(len * sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate void* buffer for " << +i << "-th feature." << endl; #endif return 0; } for(j = 0; j < len; j++) (*((float**)buffer))[j] = d[i]->atf(j); break; case _SURF: len = d[i]->len(); if(((*buffer) = malloc(len * sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate void* buffer for " << +i << "-th feature." << endl; #endif return 0; } for(j = 0; j < len; j++) (*((float**)buffer))[j] = d[i]->atf(j); break; } } return len; } /* Write the i-th descriptor vector of GIVEN type to buffer */ unsigned char Signature::descType(unsigned int i, unsigned char type, void** buffer) const { unsigned int index; unsigned int j; if(descriptorCtr[type] > 0) // Are there ANY Descriptors of this type? { index = 0; j = 0; while(index < _numPoints && j != i) { if(d[index]->type() == type) j++; index++; } return desc(j, buffer); } return 0; } /************************************************************************************************** Details */ /* Return the count of features that use the given type of Descriptor */ unsigned int Signature::count(unsigned char type) const { if(type < _DESCRIPTOR_TOTAL) return descriptorCtr[type]; return 0; } /* Return a flag-array (uchar) indicating which descriptors are in this Signature */ unsigned char Signature::flags(void) const { unsigned char f = 0; if(descriptorCtr[_BRISK] > 0) f |= 1; if(descriptorCtr[_ORB] > 0) f |= 2; if(descriptorCtr[_SIFT] > 0) f |= 4; if(descriptorCtr[_SURF] > 0) f |= 8; return f; } /************************************************************************************************** Pack-up */ /* Return the number of bytes */ unsigned int Signature::writeByteArray(char** buffer) const { unsigned int len = 0; char* cast; unsigned int i, j; unsigned char k; float tmpFloat; int tmpInt; unsigned char* ucharBuffer; float* floatBuffer; #ifdef __SIGNATURE_DEBUG cout << "Signature::writeByteArray()" << endl; #endif len += SIGNATURE_HEADER_LENGTH; // Characters in the header len += (unsigned int)(sizeof(int) / sizeof(char)); // numPoints len += (unsigned int)(sizeof(int) / sizeof(char)); // numMutex len += filenameLen + 1; // filenameLen characters, plus the char for filenameLen // A count for each descriptor the system can handle len += (unsigned int)(sizeof(int) / sizeof(char)) * _DESCRIPTOR_TOTAL; len += (unsigned int)(sizeof(float) / sizeof(char)); // bboxminX len += (unsigned int)(sizeof(float) / sizeof(char)); // bboxminY len += (unsigned int)(sizeof(float) / sizeof(char)); // bboxminZ len += (unsigned int)(sizeof(float) / sizeof(char)); // bboxmaxX len += (unsigned int)(sizeof(float) / sizeof(char)); // bboxmaxY len += (unsigned int)(sizeof(float) / sizeof(char)); // bboxmaxZ len += (unsigned int)(sizeof(int) / sizeof(char)); // index for(i = 0; i < _numPoints; i++) { len += 2; // type and len len += (unsigned int)(sizeof(float) / sizeof(char)); // x len += (unsigned int)(sizeof(float) / sizeof(char)); // y len += (unsigned int)(sizeof(float) / sizeof(char)); // z len += (unsigned int)(sizeof(float) / sizeof(char)); // size len += (unsigned int)(sizeof(float) / sizeof(char)); // angle len += (unsigned int)(sizeof(float) / sizeof(char)); // response len += (unsigned int)(sizeof(int) / sizeof(char)); // octave len += (unsigned int)(sizeof(int) / sizeof(char)); // signature switch(d[i]->type()) // Add the descriptor lengths { case _BRISK: len += _BRISK_DESCLEN; break; // Characters case _ORB: len += _ORB_DESCLEN; break; // Characters // Floats case _SIFT: len += _SIFT_DESCLEN * (unsigned int)(sizeof(float) / sizeof(char)); break; // Floats case _SURF: len += _SURF_DESCLEN * (unsigned int)(sizeof(float) / sizeof(char)); break; } } if(((*buffer) = (char*)malloc(len * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate byte array for Signature." << endl; #endif return 0; } len = 0; // Reset for(i = 0; i < SIGNATURE_HEADER_LENGTH; i++) // Header (*buffer)[len + i] = hdr[i]; len += i; cast = (char*)(&_numPoints); // numPoints for(i = 0; i < (unsigned char)(sizeof(int) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; cast = (char*)(&_numMutex); // numMutex for(i = 0; i < (unsigned char)(sizeof(int) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; (*buffer)[len] = filenameLen; // filenameLen len++; for(i = 0; i < filenameLen; i++) // filename (*buffer)[len + i] = _filename[i]; len += filenameLen; for(i = 0; i < _DESCRIPTOR_TOTAL; i++) // Counts for each descriptor type { tmpInt = descriptorCtr[i]; cast = (char*)(&tmpInt); // descriptorCtr[i] for(j = 0; j < (unsigned char)(sizeof(int) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; } cast = (char*)(&bboxminX); // bboxminX for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; cast = (char*)(&bboxminY); // bboxminY for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; cast = (char*)(&bboxminZ); // bboxminZ for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; cast = (char*)(&bboxmaxX); // bboxmaxX for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; cast = (char*)(&bboxmaxY); // bboxmaxY for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; cast = (char*)(&bboxmaxZ); // bboxmaxZ for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; cast = (char*)(&_index); // index for(i = 0; i < (unsigned char)(sizeof(int) / sizeof(char)); i++) (*buffer)[len + i] = cast[i]; len += i; for(i = 0; i < _numPoints; i++) { (*buffer)[len] = d[i]->type(); len++; switch(d[i]->type()) { case _BRISK: (*buffer)[len] = _BRISK_DESCLEN; break; case _ORB: (*buffer)[len] = _ORB_DESCLEN; break; case _SIFT: (*buffer)[len] = _SIFT_DESCLEN; break; case _SURF: (*buffer)[len] = _SURF_DESCLEN; break; } len++; tmpFloat = d[i]->x(); // x cast = (char*)(&tmpFloat); for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; tmpFloat = d[i]->y(); // y cast = (char*)(&tmpFloat); for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; tmpFloat = d[i]->z(); // z cast = (char*)(&tmpFloat); for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; tmpFloat = d[i]->size(); // size cast = (char*)(&tmpFloat); for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; tmpFloat = d[i]->angle(); // angle cast = (char*)(&tmpFloat); for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; tmpFloat = d[i]->response(); // response cast = (char*)(&tmpFloat); for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; tmpInt = d[i]->octave(); // octave cast = (char*)(&tmpInt); for(j = 0; j < (unsigned char)(sizeof(int) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; tmpInt = d[i]->signature(); // signature cast = (char*)(&tmpInt); for(j = 0; j < (unsigned char)(sizeof(int) / sizeof(char)); j++) (*buffer)[len + j] = cast[j]; len += j; switch(d[i]->type()) { case _BRISK: d[i]->vec(&ucharBuffer); for(j = 0; j < _BRISK_DESCLEN; j++) (*buffer)[len + j] = ucharBuffer[j]; len += j; free(ucharBuffer); break; case _ORB: d[i]->vec(&ucharBuffer); for(j = 0; j < _ORB_DESCLEN; j++) (*buffer)[len + j] = ucharBuffer[j]; len += j; free(ucharBuffer); break; case _SIFT: d[i]->vec(&floatBuffer); for(j = 0; j < _SIFT_DESCLEN; j++) { cast = (char*)(&floatBuffer[j]); for(k = 0; k < (unsigned char)(sizeof(float) / sizeof(char)); k++) (*buffer)[len + k] = cast[k]; len += k; } free(floatBuffer); break; case _SURF: d[i]->vec(&floatBuffer); for(j = 0; j < _SURF_DESCLEN; j++) { cast = (char*)(&floatBuffer[j]); for(k = 0; k < (unsigned char)(sizeof(float) / sizeof(char)); k++) (*buffer)[len + k] = cast[k]; len += k; } free(floatBuffer); break; } } return len; } /* Update attributes according to the given byte array 'buffer' */ bool Signature::readByteArray(char* buffer) { unsigned int len = 0; unsigned int i, j; unsigned char k; char* cast; unsigned char tmp_type; float tmp_x, tmp_y, tmp_z; float tmp_size, tmp_angle, tmp_response; int tmp_octave, tmp_signature; unsigned char* ucharBuffer; float* floatBuffer; #ifdef __SIGNATURE_DEBUG cout << "Signature::readByteArray()" << endl; #endif if(filenameLen > 0) // Was there an existing file name? free(_filename); free(descriptorCtr); if(_numPoints > 0) // Were there any existing descriptors? free(d); for(i = 0; i < SIGNATURE_HEADER_LENGTH; i++) // header hdr[i] = buffer[len + i]; len += i; if((cast = (char*)malloc(sizeof(int))) == NULL) // numPoints { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.numPoints." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(int) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&_numPoints, cast, sizeof(_numPoints)); free(cast); len += i; if((cast = (char*)malloc(sizeof(int))) == NULL) // numMutex { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.numMutex." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(int) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&_numMutex, cast, sizeof(_numMutex)); free(cast); len += i; filenameLen = buffer[len]; // filenameLen len++; if((_filename = (char*)malloc((filenameLen + 1) * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate Signature.filename." << endl; #endif return false; } for(i = 0; i < filenameLen; i++) // filename _filename[i] = buffer[len + i]; _filename[i] = '\0'; len += i; if((descriptorCtr = (unsigned int*)malloc(_DESCRIPTOR_TOTAL * sizeof(int))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate Signature.descriptorCtr." << endl; #endif return false; } for(i = 0; i < _DESCRIPTOR_TOTAL; i++) // Load up descriptorCtr { if((cast = (char*)malloc(sizeof(int))) == NULL) // descriptorCtr[i] { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.descriptorCtr[" << +i << "]." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(int) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(descriptorCtr + i, cast, sizeof(int)); free(cast); len += j; } if((cast = (char*)malloc(sizeof(float))) == NULL) // bboxminX { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.bboxminX." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&bboxminX, cast, sizeof(bboxminX)); free(cast); len += i; if((cast = (char*)malloc(sizeof(float))) == NULL) // bboxminY { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.bboxminY." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&bboxminY, cast, sizeof(bboxminY)); free(cast); len += i; if((cast = (char*)malloc(sizeof(float))) == NULL) // bboxminZ { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.bboxminZ." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&bboxminZ, cast, sizeof(bboxminZ)); free(cast); len += i; if((cast = (char*)malloc(sizeof(float))) == NULL) // bboxmaxX { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.bboxmaxX." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&bboxmaxX, cast, sizeof(bboxmaxX)); free(cast); len += i; if((cast = (char*)malloc(sizeof(float))) == NULL) // bboxmaxY { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.bboxmaxY." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&bboxmaxY, cast, sizeof(bboxmaxY)); free(cast); len += i; if((cast = (char*)malloc(sizeof(float))) == NULL) // bboxmaxZ { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.bboxmaxZ." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(float) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&bboxmaxZ, cast, sizeof(bboxmaxZ)); free(cast); len += i; if((cast = (char*)malloc(sizeof(int))) == NULL) // index { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature.index." << endl; #endif return false; } for(i = 0; i < (unsigned char)(sizeof(int) / sizeof(char)); i++) cast[i] = buffer[len + i]; memcpy(&_index, cast, sizeof(_index)); free(cast); len += i; if((d = (Descriptor**)malloc(_numPoints * sizeof(Descriptor*))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate descriptor-pointer buffer from byte-array." << endl; #endif return false; } for(i = 0; i < _numPoints; i++) { tmp_type = buffer[len]; // Skip the length; we'll look it up len += 2; if((cast = (char*)malloc(sizeof(float))) == NULL) // x { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].x." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_x, cast, sizeof(tmp_x)); free(cast); len += j; if((cast = (char*)malloc(sizeof(float))) == NULL) // y { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].y." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_y, cast, sizeof(tmp_y)); free(cast); len += j; if((cast = (char*)malloc(sizeof(float))) == NULL) // z { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].z." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_z, cast, sizeof(tmp_z)); free(cast); len += j; if((cast = (char*)malloc(sizeof(float))) == NULL) // size { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].size." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_size, cast, sizeof(tmp_size)); free(cast); len += j; if((cast = (char*)malloc(sizeof(float))) == NULL) // angle { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].angle." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_angle, cast, sizeof(tmp_angle)); free(cast); len += j; if((cast = (char*)malloc(sizeof(float))) == NULL) // response { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].response." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_response, cast, sizeof(tmp_response)); free(cast); len += j; if((cast = (char*)malloc(sizeof(float))) == NULL) // octave { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].octave." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(float) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_octave, cast, sizeof(tmp_octave)); free(cast); len += j; if((cast = (char*)malloc(sizeof(int))) == NULL) // signature { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].signature." << endl; #endif return false; } for(j = 0; j < (unsigned char)(sizeof(int) / sizeof(char)); j++) cast[j] = buffer[len + j]; memcpy(&tmp_signature, cast, sizeof(tmp_signature)); free(cast); len += j; switch(tmp_type) { case _BRISK: if((ucharBuffer = (unsigned char*)malloc(_BRISK_DESCLEN * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary uchar array for reading Signature[" << +i << "] vector." << endl; #endif return false; } for(j = 0; j < _BRISK_DESCLEN; j++) ucharBuffer[j] = buffer[len + j]; len += j; d[i] = new BRISKDesc(ucharBuffer); d[i]->XYZ(tmp_x, tmp_y, tmp_z); d[i]->setSize(tmp_size); d[i]->setAngle(tmp_angle); d[i]->setResponse(tmp_response); d[i]->setOctave(tmp_octave); d[i]->setSignature(tmp_signature); free(ucharBuffer); break; case _ORB: if((ucharBuffer = (unsigned char*)malloc(_ORB_DESCLEN * sizeof(char))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary uchar array for reading Signature[" << +i << "] vector." << endl; #endif return false; } for(j = 0; j < _ORB_DESCLEN; j++) ucharBuffer[j] = buffer[len + j]; len += j; d[i] = new ORBDesc(ucharBuffer); d[i]->XYZ(tmp_x, tmp_y, tmp_z); d[i]->setSize(tmp_size); d[i]->setAngle(tmp_angle); d[i]->setResponse(tmp_response); d[i]->setOctave(tmp_octave); d[i]->setSignature(tmp_signature); free(ucharBuffer); break; case _SIFT: if((floatBuffer = (float*)malloc(_SIFT_DESCLEN * sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary float array for reading Signature[" << +i << "] vector." << endl; #endif return false; } if((cast = (char*)malloc(sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].response." << endl; #endif return false; } for(j = 0; j < _SIFT_DESCLEN; j++) { for(k = 0; k < (unsigned char)(sizeof(float) / sizeof(char)); k++) cast[k] = buffer[len + k]; memcpy(&floatBuffer[j], cast, sizeof(float)); len += k; } free(cast); d[i] = new SIFTDesc(floatBuffer); d[i]->XYZ(tmp_x, tmp_y, tmp_z); d[i]->setSize(tmp_size); d[i]->setAngle(tmp_angle); d[i]->setResponse(tmp_response); d[i]->setOctave(tmp_octave); d[i]->setSignature(tmp_signature); free(floatBuffer); break; case _SURF: if((floatBuffer = (float*)malloc(_SURF_DESCLEN * sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary float array for reading Signature[" << +i << "] vector." << endl; #endif return false; } if((cast = (char*)malloc(sizeof(float))) == NULL) { #ifdef __SIGNATURE_DEBUG cout << "ERROR: Unable to allocate temporary byte array for reading Signature[" << +i << "].response." << endl; #endif return false; } for(j = 0; j < _SURF_DESCLEN; j++) { for(k = 0; k < (unsigned char)(sizeof(float) / sizeof(char)); k++) cast[k] = buffer[len + k]; memcpy(&floatBuffer[j], cast, sizeof(float)); len += k; } free(cast); d[i] = new SURFDesc(floatBuffer); d[i]->XYZ(tmp_x, tmp_y, tmp_z); d[i]->setSize(tmp_size); d[i]->setAngle(tmp_angle); d[i]->setResponse(tmp_response); d[i]->setOctave(tmp_octave); d[i]->setSignature(tmp_signature); free(floatBuffer); break; } } return true; } /************************************************************************************************** Display */ void Signature::summary(void) const { unsigned int i; cout << _filename << endl; for(i = 0; i < filenameLen; i++) cout << "="; cout << endl << hdr << endl; cout << +_numPoints << " features" << endl; for(i = 0; i < _DESCRIPTOR_TOTAL; i++) { cout << " " << +descriptorCtr[i] << " "; switch(i) { case _BRISK: cout << "BRISK" << endl; break; case _ORB: cout << "ORB" << endl; break; case _SIFT: cout << "SIFT" << endl; break; case _SURF: cout << "SURF" << endl; break; } } cout << +_numMutex << " mutual exclusions" << endl; cout << "Bounding box: (" << bboxminX << ", " << bboxminY << ", " << bboxminZ << ")" << endl; cout << " to (" << bboxmaxX << ", " << bboxmaxY << ", " << bboxmaxZ << ")" << endl; return; } void Signature::print(void) const { unsigned int i; summary(); for(i = 0; i < _numPoints; i++) d[i]->print(); return; } void Signature::printFilename(void) const { cout << _filename; return; } /************************************************************************************************** Setters */ /* Sets attribute '_index' and '_signature' of all Descriptors */ void Signature::setIndex(signed int index) { unsigned int i; _index = index; // Set the Signature's '_index' for(i = 0; i < _numPoints; i++) // Set all Descriptors' '_signature's d[i]->setSignature(index); return; } void Signature::setXYZ(unsigned int i, float x, float y, float z) { if(i < _numPoints) d[i]->XYZ(x, y, z); return; } /************************************************************************************************** Getters */ /* Return the number of interest points in this signature */ unsigned int Signature::numPoints() const { return _numPoints; } /* Return the number of mutual exclusions in this signature */ unsigned int Signature::numMutex() const { return _numMutex; } /* Return the coord-th coordinate of this signature's minimum bounding box vertex. This method can receive characters (upper and lower case) and indices in {0, 1, 2}. */ float Signature::bboxMin(unsigned char coord) const { switch(coord) { case 0: case 'x': case 'X': return bboxminX; case 1: case 'y': case 'Y': return bboxminY; case 2: case 'z': case 'Z': return bboxminZ; } return -INFINITY; } /* Return the coord-th coordinate of this signature's maximum bounding box vertex. This method can receive characters (upper and lower case) and indices in {0, 1, 2}. */ float Signature::bboxMax(unsigned char coord) const { switch(coord) { case 0: case 'x': case 'X': return bboxmaxX; case 1: case 'y': case 'Y': return bboxmaxY; case 2: case 'z': case 'Z': return bboxmaxZ; } return INFINITY; } /* Copy this signature's file name to the given buffer and return the strings's length. */ unsigned char Signature::filename(char** buffer) const { unsigned char i; if(((*buffer) = (char*)malloc((filenameLen + 1) * sizeof(char))) == NULL) return 0; for(i = 0; i < filenameLen; i++) (*buffer)[i] = _filename[i]; (*buffer)[i] = '\0'; return filenameLen; } /* Build and return a string that is just the file name without the path or the extension. */ char* Signature::fileStem() const { char* ret; signed int i = (signed int)filenameLen - 1; signed int j; unsigned char k; while(i > 0 && _filename[i] != '.') // Find the '.' before the file extension i--; j = i; while(j > 0 && _filename[j] != '/') // Find the '/' before the file path (or the head of the string) j--; if((ret = (char*)malloc((i - j) * sizeof(char))) == NULL) return NULL; for(k = 0; k < (i - j - 1); k++) ret[k] = _filename[j + 1 + k]; ret[k] = '\0'; // NULL-cap return ret; } /* Copy this signature's header to the given buffer and return the header's length (which is always equal to SIGNATURE_HEADER_LENGTH). */ unsigned int Signature::header(char** buffer) const { unsigned int i = 0; if(((*buffer) = (char*)malloc(SIGNATURE_HEADER_LENGTH * sizeof(char))) == NULL) return 0; while(i < SIGNATURE_HEADER_LENGTH && hdr[i] != '\0') { (*buffer)[i] = hdr[i]; i++; } for(; i < SIGNATURE_HEADER_LENGTH; i++) (*buffer)[i] = '\0'; return SIGNATURE_HEADER_LENGTH; } /* A signature's 'index' should be equal to its position in the array of all signatures in the partent program. Unless this value is set, it is -1. */ signed int Signature::index(void) const { return _index; } /* Return {_BRISK, _ORB, _SIFT, _SURF} according to the type of the i-th Descriptor */ unsigned char Signature::type(unsigned int i) const { if(i < _numPoints) return d[i]->type(); return _DESCRIPTOR_TOTAL; } /* Return the length of the i-th feature descriptor vector. */ unsigned char Signature::len(unsigned int i) const { if(i < _numPoints) return d[i]->len(); return 0; } /* Return the i-th interest point's X coordinate */ float Signature::x(unsigned int i) const { if(i < _numPoints) return d[i]->x(); return INFINITY; } /* Return the i-th interest point's Y coordinate */ float Signature::y(unsigned int i) const { if(i < _numPoints) return d[i]->y(); return INFINITY; } /* Return the i-th interest point's Z coordinate */ float Signature::z(unsigned int i) const { if(i < _numPoints) return d[i]->z(); return INFINITY; } /* Return the i-th interest point's size */ float Signature::size(unsigned int i) const { if(i < _numPoints) return d[i]->size(); return INFINITY; } /* Return the i-th interest point's angle */ float Signature::angle(unsigned int i) const { if(i < _numPoints) return d[i]->angle(); return INFINITY; } /* Return the i-th interest point's response */ float Signature::response(unsigned int i) const { if(i < _numPoints) return d[i]->response(); return INFINITY; } /* Return the i-th interest point's octave */ signed int Signature::octave(unsigned int i) const { if(i < _numPoints) return d[i]->octave(); return INT_MAX; } /* Return the X-coordinate of the i-th (or last) interest point that is described using 'type'. If there are no interest points that use this type, return infinity. */ float Signature::x(unsigned int index, unsigned char type) const { unsigned int i, j; if(descriptorCtr[type] > 0) { i = 0; j = 0; while(i < _numPoints && !(j == index && d[j]->type() == type)) { if(d[j]->type() == type) j++; i++; } return d[j]->x(); } return INFINITY; } /* Return the Y-coordinate of the i-th (or last) interest point that is described using 'type'. If there are no interest points that use this type, return infinity. */ float Signature::y(unsigned int index, unsigned char type) const { unsigned int i, j; if(descriptorCtr[type] > 0) { i = 0; j = 0; while(i < _numPoints && !(j == index && d[j]->type() == type)) { if(d[j]->type() == type) j++; i++; } return d[j]->y(); } return INFINITY; } /* Return the Z-coordinate of the i-th (or last) interest point that is described using 'type'. If there are no interest points that use this type, return infinity. */ float Signature::z(unsigned int index, unsigned char type) const { unsigned int i, j; if(descriptorCtr[type] > 0) { i = 0; j = 0; while(i < _numPoints && !(j == index && d[j]->type() == type)) { if(d[j]->type() == type) j++; i++; } return d[j]->z(); } return INFINITY; } /* Return the size of the i-th (or last) interest point that is described using 'type'. If there are no interest points that use this type, return infinity. */ float Signature::size(unsigned int index, unsigned char type) const { unsigned int i, j; if(descriptorCtr[type] > 0) { i = 0; j = 0; while(i < _numPoints && !(j == index && d[j]->type() == type)) { if(d[j]->type() == type) j++; i++; } return d[j]->size(); } return INFINITY; } /* Return the angle of the i-th (or last) interest point that is described using 'type'. If there are no interest points that use this type, return infinity. */ float Signature::angle(unsigned int index, unsigned char type) const { unsigned int i, j; if(descriptorCtr[type] > 0) { i = 0; j = 0; while(i < _numPoints && !(j == index && d[j]->type() == type)) { if(d[j]->type() == type) j++; i++; } return d[j]->angle(); } return INFINITY; } /* Return the response of the i-th (or last) interest point that is described using 'type'. If there are no interest points that use this type, return infinity. */ float Signature::response(unsigned int index, unsigned char type) const { unsigned int i, j; if(descriptorCtr[type] > 0) { i = 0; j = 0; while(i < _numPoints && !(j == index && d[j]->type() == type)) { if(d[j]->type() == type) j++; i++; } return d[j]->response(); } return INFINITY; } /* Return the octave of the i-th (or last) interest point that is described using 'type'. If there are no interest points that use this type, return infinity. */ signed int Signature::octave(unsigned int index, unsigned char type) const { unsigned int i, j; if(descriptorCtr[type] > 0) { i = 0; j = 0; while(i < _numPoints && !(j == index && d[j]->type() == type)) { if(d[j]->type() == type) j++; i++; } return d[j]->octave(); } return INT_MAX; } #endif
36.793198
141
0.451606
167eb4423ad1ef0335b6313fd3767260e5cdbd81
6,749
lua
Lua
action_map.lua
thehunmonkgroup/jester
3ef650956b0b4eed7746a07800401528b113a8e0
[ "MIT" ]
37
2015-01-23T11:01:10.000Z
2021-11-20T14:44:34.000Z
action_map.lua
thehunmonkgroup/jester
3ef650956b0b4eed7746a07800401528b113a8e0
[ "MIT" ]
1
2021-04-08T10:47:31.000Z
2021-04-08T15:02:07.000Z
action_map.lua
thehunmonkgroup/jester
3ef650956b0b4eed7746a07800401528b113a8e0
[ "MIT" ]
9
2015-04-01T07:59:28.000Z
2021-08-21T17:50:15.000Z
-- TODO: What is this for? --- Table of Jester actions as extracted from Jester using ldoc. -- -- It is a simple map of all actions, their parameters (minus the action -- itself), and what value type the parameter accepts. -- -- @script action_map.lua -- @author Chad Phillips -- @copyright 2011-2015 Chad Phillips return { api_command = { command = "string", storage_key = "string", }, call_sequence = { sequence = "string", }, clear_storage = { data_keys = "tab", storage_area = "string", }, conditional = { compare_to = "string", comparison = "string", if_false = "string", if_true = "string", value = "string", }, copy_storage = { copy_to = "string", move = "bool", storage_area = "string", }, exit_sequence = { sequence = "string", }, load_profile = { profile = "string", sequence = "string", }, none = { }, set_storage = { data = "tab", storage_area = "string", }, set_variable = { data = "tab", }, wait = { keys = "tab", milliseconds = "int", }, couchdb_add_attachment = { attachment_name = "string", content_type = "string", database = "string", document_id = "string", document_rev = "string", file_path = "string", server = "tab", storage_area = "string", }, couchdb_create_document = { database = "string", document = "tab", document_id = "string", server = "tab", storage_area = "string", }, couchdb_delete_attachment = { attachment_name = "string", database = "string", document_id = "string", document_rev = "string", server = "tab", storage_area = "string", }, couchdb_delete_document = { database = "string", document_id = "string", document_rev = "string", server = "tab", storage_area = "string", }, couchdb_retrieve = { database = "string", path = "string", query_parameters = "tab", server = "tab", storage_area = "string", }, couchdb_retrieve_attachment = { attachment_name = "string", database = "string", document_id = "string", file_path = "string", server = "tab", storage_area = "string", }, couchdb_retrieve_document = { database = "string", document_id = "string", query_parameters = "tab", server = "tab", storage_area = "string", }, couchdb_update_document = { database = "string", document = "tab", document_id = "string", document_rev = "string", server = "tab", storage_area = "string", }, data_delete = { config = "tab", filters = "tab", }, data_load = { config = "tab", fields = "tab", filters = "tab", multiple = "bool", sort = "string", sort_order = "string", storage_area = "string", }, data_load_count = { config = "tab", count_field = "string", filters = "tab", storage_area = "string", storage_key = "string", }, data_query = { config = "tab", query = "string", return_fields = "bool", storage_area = "string", tokens = "tab", }, data_update = { config = "tab", fields = "tab", filters = "tab", update_type = "string", }, bridge = { channel = "string", extension = "string", hangup_after_bridge = "bool", multichannel_type = "string", variables = "tab", }, execute = { application = "string", data = "string", }, transfer = { context = "string", dialplan = "string", extension = "string", }, email = { attachments = "tab", email_templates = "tab", from = "string", headers = "tab", port = "int", server = "string", template = "tab", to = "tab", tokens = "tab", }, fire_event = { body = "string", event_type = "string", header_prefix = "string", headers = "tab", subclass = "string", }, create_directory = { directory = "string", }, delete_file = { file = "string", }, file_exists = { file = "string", if_false = "string", if_true = "string", }, file_size = { file = "string", }, move_file = { binary = "bool", copy = "bool", destination = "string", source = "string", }, remove_directory = { directory = "string", }, format_date = { format = "string", storage_key = "string", timestamp = "int", timezone = "string", }, format_string = { mask = "string", string = "string", storage_key = "string", }, flush_digits = { }, get_digits = { audio_files = "tab", bad_input = "string", digits_regex = "string", max_digits = "int", max_tries = "int", min_digits = "int", storage_key = "string", terminators = "string", timeout = "int", }, hangup = { play = "string", }, hangup_sequence = { sequence = "string", }, log = { file = "string", level = "string", message = "string", }, navigation_add = { sequence = "string", }, navigation_beginning = { }, navigation_clear = { }, navigation_previous = { }, navigation_reset = { }, play = { file = "tab", keys = "tab", repetitions = "int", wait = "int", }, play_keys = { key_announcements = "tab", keys = "tab", order = "tab", repetitions = "int", wait = "int", }, play_phrase = { keys = "tab", language = "string", phrase = "string", phrase_arguments = "string", repetitions = "int", wait = "int", }, play_valid_file = { files = "tab", keys = "tab", repetitions = "int", wait = "int", }, record = { append = "bool", filename = "string", keys = "tab", location = "string", max_length = "int", pre_record_delay = "int", pre_record_sound = "string", silence_secs = "int", silence_threshold = "int", storage_area = "string", }, record_merge = { base_file = "string", merge_file = "string", merge_type = "string", }, http_request = { fragment = "string", password = "string", path = "string", port = "int", query = "tab", response = "string", server = "string", storage_area = "string", user = "string", }, speech_to_text_from_file = { app_key = "string", app_secret = "string", filepath = "string", storage_area = "string", }, shell_command = { command = "string", storage_area = "string", }, shell_command_with_output = { command = "string", storage_area = "string", }, counter = { compare_to = "int", if_equal = "string", if_greater = "string", if_less = "string", increment = "int", reset = "bool", storage_key = "string", }, }
20.328313
72
0.552378
7b1701e0f9c55e57a5ef67cc4a5c3924a48d0e72
2,014
gemspec
Ruby
opds.gemspec
zetaben/opds
bd81bc90a3915f41fc802078f0cb1144f53e0426
[ "MIT" ]
1
2021-04-14T22:46:11.000Z
2021-04-14T22:46:11.000Z
opds.gemspec
zetaben/opds
bd81bc90a3915f41fc802078f0cb1144f53e0426
[ "MIT" ]
null
null
null
opds.gemspec
zetaben/opds
bd81bc90a3915f41fc802078f0cb1144f53e0426
[ "MIT" ]
1
2018-01-28T01:05:37.000Z
2018-01-28T01:05:37.000Z
# Generated by jeweler # DO NOT EDIT THIS FILE DIRECTLY # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{opds} s.version = "0.4.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Benoit Larroque"] s.date = %q{2011-12-23} s.description = %q{ruby lib to access OPDS feeds} s.email = %q{benoit dot larroque at feedbooks dot com} s.extra_rdoc_files = [ "LICENSE", "README.md" ] s.files = [ ".document", "LICENSE", "README.md", "Rakefile", "VERSION", "lib/opds.rb", "lib/opds/acquisition_feed.rb", "lib/opds/entry.rb", "lib/opds/feed.rb", "lib/opds/navigation_feed.rb", "lib/opds/opds.rb", "lib/opds/parser.rb", "lib/opds/support/browser.rb", "lib/opds/support/linkset.rb", "lib/opds/support/logging.rb", "opds.gemspec", "samples/acquisition.txt", "samples/acquisition_opds1_1.txt", "samples/entry.txt", "samples/navigation.txt", "spec/browser_spec.rb", "spec/entry_spec.rb", "spec/linkset_spec.rb", "spec/opdsparser_opds_1_1_spec.rb", "spec/opdsparser_spec.rb", "spec/spec.opts", "spec/spec_helper.rb" ] s.homepage = %q{http://github.com/zetaben/opds} s.require_paths = ["lib"] s.rubygems_version = %q{1.3.7} s.summary = %q{ruby lib to read OPDS feeds} if s.respond_to? :specification_version then current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then s.add_development_dependency(%q<rspec>, [">= 1.2.9"]) s.add_runtime_dependency(%q<nokogiri>, [">= 0"]) else s.add_dependency(%q<rspec>, [">= 1.2.9"]) s.add_dependency(%q<nokogiri>, [">= 0"]) end else s.add_dependency(%q<rspec>, [">= 1.2.9"]) s.add_dependency(%q<nokogiri>, [">= 0"]) end end
28.771429
105
0.637041
e760860988af67eb317e883192658dfb9db09f9b
329
php
PHP
app/Models/Information.php
tiennm54/voucher
daae4064cb157f30a6a89c24cf8efba32280118f
[ "MIT" ]
null
null
null
app/Models/Information.php
tiennm54/voucher
daae4064cb157f30a6a89c24cf8efba32280118f
[ "MIT" ]
null
null
null
app/Models/Information.php
tiennm54/voucher
daae4064cb157f30a6a89c24cf8efba32280118f
[ "MIT" ]
null
null
null
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use URL; class Information extends Model{ protected $table = 'information'; public $timestamps = false; public function getUrl(){ return URL::route('frontend.information.view',['id'=>$this->id,'url'=>$this->url_title.'.html']); } }
25.307692
105
0.668693
e75e280952d234931ed84b0fbc444ebad2984b7f
645
php
PHP
resources/views/client/app.blade.php
jeeckr/Ogi
2841a9af0e2c255b64fcec60741aedb6d33e2efc
[ "MIT" ]
null
null
null
resources/views/client/app.blade.php
jeeckr/Ogi
2841a9af0e2c255b64fcec60741aedb6d33e2efc
[ "MIT" ]
null
null
null
resources/views/client/app.blade.php
jeeckr/Ogi
2841a9af0e2c255b64fcec60741aedb6d33e2efc
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html lang=""> <head> @include('client.component.css') @yield('style_css') <style> body { overflow-x: hidden; } </style> </head> <body> @include('client.component.navbar') <div class="container"> <section id="topbar" class=""> <div class="container"> <a class="text-white">{{ __('navbar.topbar-title') }} </a> </div> </section> @yield('content') <a href="#" class="back-to-top"><i class="fa fa-angle-up"></i></a> </div> @include('client.component.js') </body> </html>
16.125
74
0.482171
32c0ac2363e5aaca58cf8989a07928a76732abe2
2,191
dart
Dart
lib/widgets/animationAndMotionWidgets/AMAnimatedOpacityScreen.dart
Bina-man/flutter_prokit_customization
51c00f4540fd30dcc045f2916c0bd28998ba6940
[ "Unlicense", "MIT" ]
null
null
null
lib/widgets/animationAndMotionWidgets/AMAnimatedOpacityScreen.dart
Bina-man/flutter_prokit_customization
51c00f4540fd30dcc045f2916c0bd28998ba6940
[ "Unlicense", "MIT" ]
null
null
null
lib/widgets/animationAndMotionWidgets/AMAnimatedOpacityScreen.dart
Bina-man/flutter_prokit_customization
51c00f4540fd30dcc045f2916c0bd28998ba6940
[ "Unlicense", "MIT" ]
null
null
null
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:nb_utils/nb_utils.dart'; import 'package:prokit_flutter/main/utils/AppWidget.dart'; import '../../main.dart'; class AMAnimatedOpacityScreen extends StatefulWidget { static String tag = '/AMAnimatedOpacityScreen'; @override AMAnimatedOpacityScreenState createState() => AMAnimatedOpacityScreenState(); } class AMAnimatedOpacityScreenState extends State<AMAnimatedOpacityScreen> { double opacityLevel1 = 1.0; double opacityLevel2 = 0.2; double opacityLevel3 = 0.5; @override void initState() { super.initState(); init(); } init() async { Future.delayed(const Duration(seconds: 2), () { setState(() { opacityLevel1 = opacityLevel1 == 0 ? 1.0 : 0.1; opacityLevel2 = opacityLevel2 == 0 ? 0.1 : 0.6; opacityLevel3 = opacityLevel3 == 0 ? 0.2 : 1.0; }); }); } @override void setState(fn) { if (mounted) super.setState(fn); } @override Widget build(BuildContext context) { return SafeArea( child: Scaffold( backgroundColor: appStore.scaffoldBackground, appBar: appBar(context, 'Animated Opacity'), body: Center( child: Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ AnimatedOpacity( opacity: opacityLevel2, duration: Duration(seconds: 3), child: FlutterLogo( size: 130, ), ), 16.height, AnimatedOpacity( opacity: opacityLevel1, duration: Duration(seconds: 3), child: FlutterLogo( size: 130, ), ), 16.height, AnimatedOpacity( opacity: opacityLevel3, duration: Duration(seconds: 3), child: FlutterLogo( size: 130, ), ), 16.height, ], ), ), ), ); } }
26.39759
79
0.549521