This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use App\Models\Foot; | |
Route::get('/footnote', function (Request $request) { | |
$fn = $request->fn; | |
// dd($fn); | |
// dd($request->search); | |
return Foot::where('foot_code', 'LIKE', '%'.$fn.'%')->first(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Modal = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | |
(function (global){(function (){ | |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t((window.React)):"function"==typeof define&&def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select legacy_url from dance_dancepage where legacy_url NOT LIKE ALL('{9/78/1952,3/82/2167,9/80/5563,9/80/5769,9/78/1930,9/77/1830,9/77/1819,3/82/2138,3/82/2172,9/80/5624,9/77/1808,9/80/5714,9/80/5524,3/15/2100,9/80/5503,9/77/1749,9/77/1734,9/80/5097,9/72/1542,9/80/5420,9/79/1999,9/80/5602,9/80/5280,5/35/788,9/80/5711,9/76/1634,3/82/2254,9/80/5609,9/80/5515,9/80/5388,9/77/1773,9/80/5208,9/77/1782,9/78/1963,9/78/1872,9/78/1890,9/80/5247,9/78/1892,9/76/1570,9/80/5112,9/80/5110,9/80/5296,9/73/1550,3/82/2198,9/77/1798,3/82/2146,9/80/5402,9/80/5263,9/79/2042,9/77/1693,9/80/5532,9/78/1956,3/82/2190,9/77/1770,9/80/5617,9/80/5763,3/82/2186,9/78/1978,9/80/5153,9/80/5228,3/82/2183,9/80/5718,9/80/5642,9/77/1818,5/42/3931,9/76/1640,9/80/5412,9/74/1567,3/15/2113,9/80/5243,9/80/5647,3/82/2161,9/72/1545,9/80/5797,9/80/5145,9/77/1781,9/80/5549,9/80/5002,9/78/1938,9/80/5089,9/77/1792,9/80/5458,9/80/5274,9/80/5636,3/15/2116,9/76/1592,9/80/5311,9/78/1904,9/80/5645,9/77/1711,9/80/5436,9/77/1744,9/77/1737,9/80/5435,9/80/5017,9/76 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const csv = require("csv-parser"); | |
const fs = require("fs"); | |
const results = []; | |
const createCsvWriter = require("csv-writer").createArrayCsvWriter; | |
const csvWriter = createCsvWriter({ | |
header: ["page_ptr_id", "legacy_url", "article"], | |
path: "mew.csv" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
colors := map[string]string{ | |
"red": "#ff0000", | |
"green": "#4bf745", | |
"white": "#ffffff", | |
} | |
printMap(colors) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--main-white-color: white; | |
--main-black-color: black; | |
} | |
* { | |
padding: 0; | |
margin: 0; | |
box-sizing: border-box; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setup/installation (dev,prod) | |
- software req | |
- hardware | |
cofiguration | |
- employee data | |
- rate | |
- holidays | |
database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MD5 = function(d){result = M(V(Y(X(d),8*d.length)));return result.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m,f,d[n+2],17,606105819),i,m,d[n+3],22,-1044525330),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+4],7,-176418897),f,r,d[n+5],12,1200080426),m,f,d[n+6],17,-1473231341),i,m,d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var grossNets = [ | |
{ type: "value", discount: 500 }, | |
{ type: "gross", discount: 5 }, | |
{ type: "gross", discount: 3 }, | |
{ type: "net", discount: 5 }, | |
{ type: "net", discount: 3 } | |
]; | |
var y = 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add make_response and Blueprint | |
from flask import Flask, Blueprint, request, jsonify, send_file, render_template, make_response | |
# import these 2 | |
import jinja2 | |
import pdfkit | |
pdf_api = Blueprint('pdf_api', __name__) | |
def split_dataframe_to_chunks(df, n): |
NewerOlder